Commit Graph

7334 Commits

Author SHA1 Message Date
Kari Salminen
efd4a7a72f Made loadResourcesFromSave internally use the loadResource-function.
Fixes Operation Stealth savegame loading! HURRAH! FINALLY!

svn-id: r33530
2008-08-02 15:59:38 +00:00
Kari Salminen
6307c46604 - Combined loadAbs and loadResource into one function.
- Made resource loading functions (loadSpl, loadMsk etc)
  return the number of the animDataTable entry right after
  the loaded data.
- Made resource loading functions always load multiframe
  data into directly sequential animDataTable entries
  (Hopefully this won't break anything).

svn-id: r33529
2008-08-02 15:47:25 +00:00
Johannes Schickel
64fe71fed3 Added a member function loadSoundFile to Sound which accepts a filename string instead of a filename list id.
svn-id: r33527
2008-08-02 15:05:19 +00:00
Johannes Schickel
6e9bbd7348 Fixed yet another crash in kyra1 amiga.
svn-id: r33526
2008-08-02 14:42:44 +00:00
Travis Howell
2d647afbbf Detect both HOF non-interactive demos.
svn-id: r33525
2008-08-02 14:37:10 +00:00
Johannes Schickel
2e65c05991 Add warning when a voc file is not found.
svn-id: r33524
2008-08-02 14:35:43 +00:00
Florian Kagerer
b58beb242f HOF: bug fix for FM-Towns music when using output rates other than 22050 khz
svn-id: r33523
2008-08-02 14:35:38 +00:00
Johannes Schickel
a023dba941 Fixed regressions in kyra1 amiga.
svn-id: r33522
2008-08-02 14:32:05 +00:00
Johannes Schickel
0cbaaf736b Proper fix for bug #2035459 "KYRA1: long savegame names cause garbage".
svn-id: r33519
2008-08-02 11:57:06 +00:00
Johannes Schickel
8c5360c833 Fix for bug #2035459 "KYRA1: long savegame names cause garbage".
svn-id: r33518
2008-08-02 11:40:09 +00:00
Nicola Mettifogo
c349a8dcd9 * Increasing max number of allowed token on one line.
* Increasing buffer size to match old parser.

svn-id: r33512
2008-08-02 03:19:45 +00:00
Nicola Mettifogo
86079c20f5 Fixed issues detected by DrMcCoy's obnoxious compiler. ;)
svn-id: r33511
2008-08-02 02:43:05 +00:00
Nicola Mettifogo
3ec28ce42c Removed debug code I forgot a long time ago ;)
svn-id: r33510
2008-08-02 02:26:09 +00:00
Nicola Mettifogo
15aada52c4 * Added a preprocessor to deal with the crappy location scripts in BRA.
* Added some comments on how the parser and related code should be changed to make things smoother.

svn-id: r33509
2008-08-02 02:24:36 +00:00
Filippos Karapetis
3f56ff8742 Fixed crash on exit from commit #32742 - the memory leak was only in IHNM, not ITE (in ITE, the 4 sprite lists are actually one)
svn-id: r33492
2008-08-01 14:27:40 +00:00
Filippos Karapetis
0145dd38d9 Added load confirmation dialog for IHNM, like in the original.
Fixes bug #1971699 - "IHNM: No Load Game Confirmation"

svn-id: r33490
2008-08-01 14:03:20 +00:00
Nicola Mettifogo
f5b7004fae * Removed references to the current _backgroundInfo from parser code.
* Re-enabled masks (in BRA DOS).

svn-id: r33474
2008-07-31 15:15:42 +00:00
Nicola Mettifogo
0679889d98 Disabled masks in BRA Amiga, because the decoding is not known yet.
svn-id: r33473
2008-07-31 14:20:51 +00:00
Torbjörn Andersson
b79f069c58 Applied my patch #2030058 ("Workaround for incorrectly compressed FotAQ"), and
made a mention in NEWS that speech is played correctly now. Of course, we
should still provide a correctly compressed version at some point.

svn-id: r33471
2008-07-31 13:45:58 +00:00
Nicola Mettifogo
6ed4beb1bf Made changing of background more flexible, in that the engine can now configure its BackgroundInfo before passing it to Gfx.
svn-id: r33469
2008-07-31 12:50:43 +00:00
Nicola Mettifogo
591973c827 Changed Gfx::_backgroundInfo to be a pointer. This temporarily kills all z-buffering.
svn-id: r33468
2008-07-31 12:26:12 +00:00
Nicola Mettifogo
538fdcc61a Set correct font for dialogues in BRA Amiga.
svn-id: r33467
2008-07-31 11:29:37 +00:00
Johannes Schickel
eb9462c1a0 Removed debugging leftover.
svn-id: r33464
2008-07-31 10:52:29 +00:00
Johannes Schickel
5e0df8ad8e Committed slightly modified patch #2029395 "KYRA: Lands of Lore Intro + Character selection".
svn-id: r33463
2008-07-31 10:47:15 +00:00
Kari Salminen
81cb493158 Debug printing a couple more relevant variables in addAni.
svn-id: r33446
2008-07-30 11:36:14 +00:00
Kari Salminen
4210defa29 Added some debug aids related to addAni and the processSeqList crashing.
svn-id: r33444
2008-07-30 11:03:52 +00:00
Filippos Karapetis
8941a96bf0 Make sure that save game descriptions are 0-terminated
svn-id: r33438
2008-07-30 08:23:04 +00:00
Nicola Mettifogo
3dbeeaf8a1 * Unified implementation of flow control opcodes in NS and BRA
* Simplified script execution loop and context

svn-id: r33437
2008-07-30 07:58:25 +00:00
Nicola Mettifogo
8bdbbaf413 Reordered initialization lists to silence warning.
svn-id: r33432
2008-07-30 06:25:17 +00:00
Max Horn
0be985ce83 Changed class File (and derived classes) to only support read-only access; added a new class DumpFile for writing
svn-id: r33412
2008-07-29 16:09:10 +00:00
Kari Salminen
c9051fcfbd Make sure processSeqList and purgeSeqList are only called in the main loop when running Operation Stealth. Mostly a precaution as the seqList should be totally empty when running Future Wars as it doesn't use it.
svn-id: r33410
2008-07-29 13:46:42 +00:00
Kari Salminen
d83c6d7d68 Added purgeSeqList function (Used in mainloop now). Let's see if this helps any...
Renamed functions:
* addScriptToList0 -> addScriptToGlobalScripts
* executeList0     -> executeGlobalScripts
* executeList1     -> executeObjectScripts
* purgeList1       -> purgeObjectScripts (Also added a clarifying TODO to this function)
* purgeList0       -> purgeGlobalScripts (Also added a clarifying TODO to this function)

svn-id: r33409
2008-07-29 13:44:14 +00:00
Nicola Mettifogo
f46ee2b70c * Implemented pause/resume of command execution
* Implemented command opcode MOVE (not the script instruction).

svn-id: r33408
2008-07-29 12:59:55 +00:00
Kari Salminen
52700d59fd Added a debug message to loadTempSaveOS's to check whether we loaded the whole savefile. Made objectStruct's clearing also clear x and y member variables in resetEngine.
svn-id: r33407
2008-07-29 12:56:32 +00:00
Nicola Mettifogo
f31cf5d94c * Added flexible verb configuration for both NS and BRA.
* Objects can now be really opened and closed in BRA.

svn-id: r33405
2008-07-29 10:22:50 +00:00
Kari Salminen
0365c45b8c Rearranged parts of the Operation Stealth savegame loading routine.
- Emulating the Future Wars savegame loading routine and hoping for the best.
- Fixes an array out of bounds access when loading the global scripts.
Now the loading crashes in the mainloop in processSeqList!
But at least we got a bit farther this time. More fixing to come...

svn-id: r33404
2008-07-29 10:13:53 +00:00
Nicola Mettifogo
884b753c73 Added dialogue text rendering for BRA.
svn-id: r33402
2008-07-29 09:44:05 +00:00
Travis Howell
598394e5b8 Mask files don't always exist in Amiga version of BRA, in paricular NULL.msk.
svn-id: r33394
2008-07-29 04:06:10 +00:00
Travis Howell
fd40cb4342 Add check common directories, in loadScenery() for Amiga version of BRA.
svn-id: r33393
2008-07-29 04:00:07 +00:00
Nicola Mettifogo
c8400e9725 * Fixed positioning of balloons and faces in BRA (dos, at least).
* Adapted loading of faces.

svn-id: r33392
2008-07-29 03:14:35 +00:00
Nicola Mettifogo
7baf727790 Enforcing use of nullZonePtr only for nulling out pointers, as it is useless for comparisons.
svn-id: r33384
2008-07-28 23:21:03 +00:00
Max Horn
09f70b6408 Fixing 'warning: comparison of unsigned expression < 0 is always false'
svn-id: r33383
2008-07-28 22:21:11 +00:00
Kari Salminen
d2639f0c84 Fixed crash when running Operation Stealth introduced in r33339 (There are actually 256 global variables although only 255 of them are saved and loaded from savegames. The last one is VAR_BYPASS_PROTECTION and it is written to in the mainLoop so that's why there was a crash).
svn-id: r33380
2008-07-28 16:46:20 +00:00
Kari Salminen
add07fceaa Added loading of temporary Operation Stealth savegames. Needs testing!
- Music related settings and adBgVar0 & adBgVar1 aren't loaded currently.
Modified resetEngine to also reset more of the Operation Stealth specific variables.
Added getter for background scrolling value.
Changed additional background indices 1 & 2 from byte to uint16.
Made savegame loading functions return !in.ioFailed() as return value instead of true as previously.

svn-id: r33379
2008-07-28 16:02:40 +00:00
Nicola Mettifogo
ec04a81e81 Yet another hack to deal with labels... Must rethink this crap from scratch.
svn-id: r33377
2008-07-28 14:23:49 +00:00
Nicola Mettifogo
30d943fe2f Moved validation step from revision 33363, so that it is executed for all animations.
svn-id: r33376
2008-07-28 14:22:44 +00:00
Nicola Mettifogo
a5d225d438 Fixed loading of static items.
svn-id: r33375
2008-07-28 14:02:46 +00:00
Filippos Karapetis
b67db7baf5 Cleanup
svn-id: r33373
2008-07-28 12:46:30 +00:00
Nicola Mettifogo
a1557bd776 Pick up/drop/open/close actions are now available in game.
svn-id: r33371
2008-07-28 11:50:36 +00:00
Nicola Mettifogo
fb388deb99 Implemented opcodes for picking up/dropping/opening/closing items.
svn-id: r33370
2008-07-28 11:48:04 +00:00