Commit Graph

50 Commits

Author SHA1 Message Date
Andrew Kurushin
573da1e79c - opCCall* on debuglevel==9 shows script function name
svn-id: r16289
2004-12-24 11:11:01 +00:00
Andrew Kurushin
53852dd52d - fix of 8 to 4 direction conversion
- added sfSetActorState function

svn-id: r16288
2004-12-24 10:22:01 +00:00
Andrew Kurushin
3d9784f94d - rewriten actors action handling (now uses all original flags etc)
- added some script functions (swapactors...)
- many things were renamed according scummvm covention
- resource id definintions should begin with "RID_" prefix

- intro temporary broken - work in progress
todo:
- walking hanling also should be rewriten
- timings for speech and actor cycling should be more accurate

svn-id: r16263
2004-12-22 21:04:50 +00:00
Andrew Kurushin
ea3b0d1100 - rewritten actors speech engine :
1) there are three types of speech: one acor, multiple actor, non actor
  2) slow speech implemented
  3) uses native engine flags (async,noanimate...) instead of semaphores
- proper timings implemented

svn-id: r16237
2004-12-21 06:49:07 +00:00
Andrew Kurushin
79ce4de942 - all actors creates on start
- many parts renamed to proper names

regression: unexpected actor apeared while intro is played

svn-id: r16104
2004-12-17 20:38:17 +00:00
Andrew Kurushin
28e5422fd8 actors rearrangement bugfix
svn-id: r16094
2004-12-17 11:18:56 +00:00
Torbjörn Andersson
c64c7eb4d4 First pass at migrating from the old Reinherit console to the ScummVM
console.

Some things are likely to have broken. For instance, I believe the old
console was could be visible during gameplay, while ScummVM's is modal. So
any place where we output something to the console during gameplay should
probably be removed.

Some things I've stubbed out. Basically any code that registers a variable.

Most of the debugging commands are untested.

Syntax may have changed because of different command-line parsing. (I never
actually used the old console, so I don't know for sure. :-)

Actually, I'm not that interested in reproducing the old console commands
faithfully. What we should do now is to make the immediately useful console
stuff work. Anything that remains unimplemented should probably be removed.

svn-id: r15976
2004-12-03 19:15:44 +00:00
Torbjörn Andersson
66b8bcd7eb Added looping background noise to the IHNM intro. I don't know if it's the
correct sound or the correct volume, but the small extension to allow the
engine to start looping sounds is worthwhile enough in itself, I think.

svn-id: r15895
2004-11-26 13:28:00 +00:00
Torbjörn Andersson
057cec5a05 Slight renaming
svn-id: r15796
2004-11-12 15:32:42 +00:00
Torbjörn Andersson
e583efe1ad Better names.
svn-id: r15795
2004-11-12 15:19:32 +00:00
Torbjörn Andersson
073d0680e1 Renamed SF_getObjName() to SF_getObjImage() and unstubbed it. (Untested)
svn-id: r15728
2004-11-07 15:35:42 +00:00
Torbjörn Andersson
d6cfbdad21 Unstubbed SF_setObjImage(). (Untested)
svn-id: r15727
2004-11-07 15:28:20 +00:00
Torbjörn Andersson
ebb77764c6 Unstubbed SF_putString(). (Untested, but appears to be just for debugging.)
svn-id: r15726
2004-11-07 15:23:00 +00:00
Torbjörn Andersson
24f8bdf679 Unstubbed SF_sceneID(). (Untested)
svn-id: r15725
2004-11-07 15:16:57 +00:00
Torbjörn Andersson
18abe168ce Unstubbed SF_dropObject(). (Untested)
svn-id: r15724
2004-11-07 15:11:04 +00:00
Torbjörn Andersson
c55ff57fc6 Initial inventory support.
svn-id: r15723
2004-11-07 14:15:41 +00:00
Eugene Sandulenko
74704a4d95 Add stub for every script function
svn-id: r15722
2004-11-06 22:33:08 +00:00
Torbjörn Andersson
1af83b0c96 Renamed the "unknown" parameters. I hope I didn't make too many errors.
svn-id: r15707
2004-11-01 10:49:21 +00:00
Torbjörn Andersson
a2d000b267 Renamed an "unknown" variable.
svn-id: r15705
2004-10-31 13:51:28 +00:00
Eugene Sandulenko
213c4093ba Implement some script functions and report stubs.
svn-id: r15691
2004-10-27 22:17:11 +00:00
Paweł Kołodziejski
c7e5ab1f2d removed R_ prefix with few r_ too
svn-id: r15690
2004-10-27 21:32:28 +00:00
Eugene Sandulenko
b4df9bb2c1 Started to rework script threads. Partially moved to thread flags.
Scene skipping now works, but scripts aren't chained yet.

svn-id: r15688
2004-10-27 02:27:54 +00:00
Torbjörn Andersson
1e062a6d89 A bunch of mostly panel-related fixes for the ITE intro. Apart from the
numerous animation glitches, it's looking almost like the real thing now.

It's no longer possible to walk away during the intro. This should provide
a great incentive to implement the "Escape" feature. ;-)

svn-id: r15626
2004-10-21 06:49:11 +00:00
Eugene Sandulenko
e58a097acf FX_CROWD constants are correct.
Add some simple stub.

svn-id: r15621
2004-10-20 22:38:24 +00:00
Torbjörn Andersson
f4443646e5 Oops, now it plays the correct music again, I hope. The sound effects seem
a bit better now, too. At least the crowd is no longer cheering when the
fair is closed.

svn-id: r15617
2004-10-19 18:45:42 +00:00
Torbjörn Andersson
20e57d8bd5 Cleanup. No need to have a lookup table for something that can be expressed
by simple arithmetics.

svn-id: r15615
2004-10-19 18:11:50 +00:00
Torbjörn Andersson
82b6902b56 Initial, and slightly buggy, support for sound effects.
svn-id: r15614
2004-10-19 17:12:53 +00:00
Torbjörn Andersson
ec413cc8f9 Added support for digitized music, plus some other music-related fixes.
Note that I've only tried this with the music.rsc file from the full Linux
version. It seems likely that the Mac version uses the same file format,
but I have no way of verifying this. I'm told the demos use compressed
audio, so the music files from them probably won't work yet.

svn-id: r15527
2004-10-12 11:45:53 +00:00
Eugene Sandulenko
8b7740d8af R_POINT -> Common::Point, R_RECT -> Common::Rect. Less R_ prefixes.
svn-id: r15414
2004-10-04 23:09:38 +00:00
Torbjörn Andersson
ff1cf82089 A few, mostly untested, fixes to the SAGA script engine:
* The frame pointer is updated. This won't make any difference since we
  don't actually *use* the frame pointer yet.
* Return values from script functions are handled like in the original now,
  i.e. the function sets thread->retVal and lets the call instruction push
  it onto the stack. (There are two call instructions, one that handles
  return values and one that doesn't, so the script function doesn't know
  if it should push or not.)
* Script return values are handled.

None of this makes any noticeable difference to the ITE intro.

svn-id: r15393
2004-10-03 17:11:23 +00:00
Torbjörn Andersson
05829b6edb Enough stubs and pops to make the intro scene script finish properly.
svn-id: r15263
2004-09-25 10:11:17 +00:00
Torbjörn Andersson
caed46c816 Added support for scene music and the music-playing opcode to make the
opening scene a bit nicer.

svn-id: r15241
2004-09-23 06:53:46 +00:00
Torbjörn Andersson
c7338cccdb Replaced the standard stack with a custom-made. In the original SAGA engine
it appears that scripts are allowed to access the stack like any other
memory area, so it's probably important that our stacks behave as closely
to the original as possible.

I don't know if this implementation does that yet, but it's a start.

svn-id: r15240
2004-09-23 06:46:44 +00:00
Torbjörn Andersson
d49f0b90a0 The TourneySetup script now runs and finishes cleanly. However, this is not
as exciting as it first sounds, because even before this patch the script
would run in its entirety - it just didn't know when to stop.

I guess the exciting things don't happen until the next script is triggered
(TorneyScene?). I think it will be easier to start fixing the numerous
deficiencies (stack handling, SData, missing script functions, etc.) when
we have something more concrete to work with.

svn-id: r15215
2004-09-21 06:35:00 +00:00
Eugene Sandulenko
3fe739efb2 Merge SDEBUG_*, SF_* and STHREAD_* into Script class.
svn-id: r14568
2004-08-12 23:57:45 +00:00
Eugene Sandulenko
ec5d498703 Drop SSTACK_ in favor of common/stack.h implementation.
svn-id: r14566
2004-08-12 21:39:11 +00:00
Eugene Sandulenko
632042dae4 Move CON_* to a class.
svn-id: r14538
2004-08-10 18:31:33 +00:00
Eugene Sandulenko
602cd289f3 Move INTERFACE_ to class.
svn-id: r14478
2004-08-06 01:39:17 +00:00
Eugene Sandulenko
415400f24e Move TEXT_* to SagaEngine class.
svn-id: r14450
2004-08-03 00:40:16 +00:00
Eugene Sandulenko
166b05aed4 Fix #include paths.
svn-id: r14443
2004-08-02 16:20:35 +00:00
Eugene Sandulenko
98816ad3ae Objectize actor.cpp
svn-id: r14441
2004-08-02 15:47:42 +00:00
Joost Peters
48cddda4b9 move SDATA_* into seperate class
svn-id: r14424
2004-08-01 19:53:29 +00:00
Jonathan Gray
0bbeb61f5e merge gfx_mod.h into gfx.h and stick functions into a class
svn-id: r14419
2004-08-01 11:48:53 +00:00
Jonathan Gray
182dd48bd4 merge reinherit.h into saga.h and gfx_mod.h, note the error loading animations wasn't caused by this commit :)
svn-id: r14405
2004-08-01 01:56:22 +00:00
Jonathan Gray
59c88e428b merge animation.h and animation_mod.h into a class
svn-id: r14388
2004-07-31 13:34:43 +00:00
Jonathan Gray
c7d6425a38 remove YS_IGNORE_PARAM macro and some uneeded yslib.h includes
svn-id: r14385
2004-07-31 12:37:36 +00:00
Eugene Sandulenko
1b78dc468f Added more stubs from script fucntions, some renames for consistency with
disassembly.

svn-id: r13835
2004-05-13 01:41:23 +00:00
Paweł Kołodziejski
3ad363a274 indent
svn-id: r13713
2004-05-01 14:34:00 +00:00
Eugene Sandulenko
1353e2d2dc Move from custom unsigned types to those provided by main config.h
svn-id: r13687
2004-04-30 23:02:23 +00:00
Eugene Sandulenko
f3d340fb0c WIP for SAGA engine.
o text formatting is not consistent with rules, just indent utility is too
   dumb for that
 o it does not use OSystem, i.e. it runs on direct SDL calls
 o it may not even compile on your box
 o if you enable it, expect zillions of warnings
 o no sound

Now it runs ITE intro as reinherit did

svn-id: r13564
2004-04-12 21:40:49 +00:00