aboutsummaryrefslogtreecommitdiff
path: root/saga
AgeCommit message (Collapse)Author
2004-10-12Added support for digitized music, plus some other music-related fixes.Torbjörn Andersson
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-10Added missing word in subtitle.Torbjörn Andersson
svn-id: r15509
2004-10-10Fixed the nasty "pop" when playing the standalone VOC file in the intro.Torbjörn Andersson
Fixed the overlap when playing the standalone IAF file in the intro. svn-id: r15508
2004-10-10The thread variables I added yesterdays will be accessed by scripts, soTorbjörn Andersson
byte order will matter. svn-id: r15507
2004-10-09Initial attempt at fixing the SData problem. I'm still not sure exactly howTorbjörn Andersson
to fix the script "static" area, though. In addition, initialise a few variables, and test for NULL-ness of a few pointers. This fixes a few crashes I saw with yesterday's CVS snapshot. There's still an unexpected scene change in the intro (I think it triggers on Rhene walking too close to the exit), but at least it no longer crashes. svn-id: r15484
2004-10-08pass arguments by reference-to-const rather than by value, it's usually more ↵Gregory Montoir
efficient... svn-id: r15477
2004-10-08Prevent double slash in pathChris Apers
svn-id: r15473
2004-10-08Implement scene change via exits. You still cannot leave first sceneEugene Sandulenko
because it goes to now buggy isometric level. Use debugger to switch to some word, say, in Dog Castle and there you may go between rooms. svn-id: r15462
2004-10-07More de-C'fying. Pass Point object instead of direct reference.Eugene Sandulenko
svn-id: r15458
2004-10-07Turn ObjectMap into real object.Eugene Sandulenko
svn-id: r15457
2004-10-07Remove duplicated code in actor walk code.Eugene Sandulenko
Turn ActionMap into real object. Rename ActionMap variables to conform our code guidelines. svn-id: r15456
2004-10-05o Convert some objectMap methods to more C++-like.Eugene Sandulenko
o Add stubs for unhandled scene resources in first scene o Fix object map entry structure o Fix bug with objject_info() debug command All this was done in attempt to make room exits work until I realized that they are different hit zone list which is activate at end of walk sequence. svn-id: r15416
2004-10-04Fix button clicking. Now actor walks to correct spot and interface buttonsEugene Sandulenko
work. svn-id: r15415
2004-10-04R_POINT -> Common::Point, R_RECT -> Common::Rect. Less R_ prefixes.Eugene Sandulenko
svn-id: r15414
2004-10-03A few, mostly untested, fixes to the SAGA script engine:Torbjörn Andersson
* 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-01Set up file paths to handle the differences between the file layout of theTorbjörn Andersson
Windows and Linux versions. (TODO: Handle game detection.) Added preliminary support for the P2_A.aif file that the Linux version uses, where the Windows version uses p2_a.voc. Someone will have to verify the actual format of it, and we have a silly bug in playVoice() which will have to be fixed before things work properly. svn-id: r15365
2004-09-28Rename remaining OSystem methods to match our coding guidelinesMax Horn
svn-id: r15332
2004-09-25Fix doxygen warningsMax Horn
svn-id: r15277
2004-09-25Enough stubs and pops to make the intro scene script finish properly.Torbjörn Andersson
svn-id: r15263
2004-09-23Added support for scene music and the music-playing opcode to make theTorbjörn Andersson
opening scene a bit nicer. svn-id: r15241
2004-09-23Replaced the standard stack with a custom-made. In the original SAGA engineTorbjörn Andersson
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-22Start the scene script as well, just to make things more interesting. ThisTorbjörn Andersson
doesn't do anything to fix any of the underlying problems, but it still runs pretty well. svn-id: r15232
2004-09-21The TourneySetup script now runs and finishes cleanly. However, this is notTorbjörn Andersson
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-19Update the script's program counter in a more sane way. The opening scriptTorbjörn Andersson
runs for much longer now, but - unsurprisingly - it doesn't work yet. svn-id: r15192
2004-08-27R_GAMETYPE -> GID, remove unused supported flag and trim some unused bits of ↵Jonathan Gray
GAME svn-id: r14793
2004-08-26add some comments about unimplemented opcodesJonathan Gray
svn-id: r14790
2004-08-22 o Eliminate all structure _tags.Eugene Sandulenko
o Fix RSCFile on MSVC8. o Started fixing script opcodes. svn-id: r14686
2004-08-14fixed warningsPaweł Kołodziejski
svn-id: r14603
2004-08-12Merge SDEBUG_*, SF_* and STHREAD_* into Script class.Eugene Sandulenko
svn-id: r14568
2004-08-12Drop SSTACK_ in favor of common/stack.h implementation.Eugene Sandulenko
svn-id: r14566
2004-08-12Launch scene start script.Eugene Sandulenko
svn-id: r14561
2004-08-11Move ITE_* and IHNM_* to Scene class.Eugene Sandulenko
svn-id: r14560
2004-08-11Start animations too.Eugene Sandulenko
svn-id: r14559
2004-08-11Handle fades in scene load routine.Eugene Sandulenko
Introduce immediate events. svn-id: r14558
2004-08-11Fix scene description structure data types and rename it.Eugene Sandulenko
svn-id: r14556
2004-08-11Move SYSINPUT_* and TRANSITION_* to SagaEngine classEugene Sandulenko
svn-id: r14555
2004-08-11Move CF_ commands to class and call them from wrappers. This will let usEugene Sandulenko
remove global _vm later. svn-id: r14552
2004-08-11Correct ESC key behaviour.Eugene Sandulenko
svn-id: r14551
2004-08-10Correct scene transitions. Now intro seems to be complete.Eugene Sandulenko
svn-id: r14548
2004-08-10oopsEugene Sandulenko
svn-id: r14545
2004-08-10Improved intro. Now it correctly shows game title.Eugene Sandulenko
svn-id: r14544
2004-08-10Moved PALANIM_* to a class.Eugene Sandulenko
svn-id: r14540
2004-08-10Move EVENT_* to a class.Eugene Sandulenko
svn-id: r14539
2004-08-10Move CON_* to a class.Eugene Sandulenko
svn-id: r14538
2004-08-08Initialise variables to stop the ITE intro from crashing.Torbjörn Andersson
svn-id: r14520
2004-08-06No longer needed.Eugene Sandulenko
svn-id: r14479
2004-08-06Move INTERFACE_ to class.Eugene Sandulenko
svn-id: r14478
2004-08-04Move SCENE_* to class.Eugene Sandulenko
svn-id: r14463
2004-08-04Move state static variable to appropriate classEugene Sandulenko
svn-id: r14462
2004-08-03Rename some class variables in Font class.Eugene Sandulenko
Fix compilation. svn-id: r14452