Commit Graph

26264 Commits

Author SHA1 Message Date
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
Johannes Schickel
a1f48b91ea Formatting.
svn-id: r33401
2008-07-29 09:23:54 +00:00
Johannes Schickel
290f76a623 Added a reset method to SharedPtr, which allows NULLifying it.
svn-id: r33400
2008-07-29 09:16:53 +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
Max Horn
e5c09b018a BASE: in runGame, do not set addDefaultDirectory() the game path before invoking createInstance() -- detectors must use FSNode for detection, not rely on File::open
svn-id: r33389
2008-07-29 00:54:28 +00:00
Max Horn
d848543ee4 Changed advanced detector to *always* use the FSNode API for detection (i.e. killed second code path which used File::open trial&error directory 'scanning')
svn-id: r33388
2008-07-29 00:50:12 +00:00
Max Horn
e1520c6462 Changed output of --test-detector: multiple hits with same gameid now only are a warning, not a failure
svn-id: r33387
2008-07-29 00:49:44 +00:00
Max Horn
4a9104515c SDL: Properly init vars related to mixer double buffering
svn-id: r33385
2008-07-29 00:02:06 +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
Nicola Mettifogo
f4ef55a2e5 Tiny readability aid for parser code.
svn-id: r33369
2008-07-28 11:47:03 +00:00
Kari Salminen
b08288c1cd Added remaining load functions needed for the Operation Stealth savegame format loading (loadSeqList and loadZoneQuery). Not used yet.
svn-id: r33367
2008-07-28 10:54:53 +00:00
Kari Salminen
c23f805a7f Cut Future Wars savegame loading routine into parts that can be reused when loading the Operation Stealth savegame format.
svn-id: r33366
2008-07-28 10:44:54 +00:00
Kari Salminen
50088df80f Now detects temporary Operation Stealth savegame format and saves it. No loading yet.
svn-id: r33365
2008-07-28 10:09:00 +00:00
Nicola Mettifogo
5d2e25ee11 Preliminary code for traps.
svn-id: r33364
2008-07-28 09:00:00 +00:00
Nicola Mettifogo
c6cbf1f144 Added a post processing step to runScripts, so that Animation can be validated after buggy scripts have been executed.
svn-id: r33363
2008-07-28 08:56:37 +00:00
Kari Salminen
16fe053ab4 Made the savegame loading routine choose between loading a Future Wars or an Operation Stealth savegame format.
Added a stub for loading the Operation Stealth's temporary savegame format (Not yet implemented).
Made mouse cursor change to a disk icon when loading a savegame and back to normal after its done.

svn-id: r33362
2008-07-28 08:44:49 +00:00
Travis Howell
b5a7735ffc Correct character name set by character location parser.
svn-id: r33361
2008-07-28 08:44:14 +00:00
Nicola Mettifogo
356adc5e09 Added support for text in BRA DOS demo.
svn-id: r33360
2008-07-28 08:25:52 +00:00
Nicola Mettifogo
8d59006bd7 Some instrumentation for script debugging.
svn-id: r33359
2008-07-28 08:25:06 +00:00
Travis Howell
533dbfd756 Add basic support for running Amiga and PC demos of BRA.
svn-id: r33357
2008-07-28 07:20:55 +00:00
Travis Howell
258f1e8fe6 There is no mask or path directories for part0 of BRA (Amiga), so always check whether they exist.
svn-id: r33356
2008-07-28 06:18:39 +00:00
Nicola Mettifogo
df50b8ee68 Inventory is now properly rendered. Item selection is not yet working.
svn-id: r33355
2008-07-28 06:06:35 +00:00
Travis Howell
1d1fc64c66 Fix compile.
svn-id: r33354
2008-07-28 05:38:24 +00:00
Nicola Mettifogo
7173aa2e3a Some unneeded references slipped in with the last commit.
svn-id: r33353
2008-07-28 05:21:11 +00:00
Nicola Mettifogo
03ffd60054 * Changed Disk code in BRA to use FilesystemNode (duplication has become truly visible!).
* Fixed Inventory items loading.

svn-id: r33352
2008-07-28 05:18:23 +00:00
Nicola Mettifogo
b0e2cd5967 Fixed constructor for WindowsFilesystemNode. On Windows, trailing slashes can be added only to directory names.
svn-id: r33350
2008-07-28 02:56:17 +00:00
Kari Salminen
06a45c49c7 Added a preliminary saving routine for Operation Stealth (Disabled by default, needs more work still. WIP!).
Added backgrounds' name saving (8 names in Operation Stealth instead of just 1 like in Future Wars).
Added 256 color palette saving and restoring (One of the palettes isn't properly handled yet though).

svn-id: r33349
2008-07-27 22:50:36 +00:00
Lars Persson
2f0a40a697 Fixed the Symbian default savepath, but adding the needed \ at the end and now as a string.
svn-id: r33347
2008-07-27 21:37:47 +00:00
Lars Persson
e93fb5fe80 Fixed the Symbian default savepath, but adding the needed \ at the end.
svn-id: r33345
2008-07-27 21:35:39 +00:00
Eugene Sandulenko
4a245208c0 Patch from bugreport #2020561: "MMNES : Incorrect detection (US/GB)"
svn-id: r33342
2008-07-27 21:14:31 +00:00
Lars Persson
ff64eb3756 Fix for ftell error when caching. HOF now starts properly
svn-id: r33340
2008-07-27 18:22:23 +00:00
Kari Salminen
cedbb6b2b2 Clear the confusing usage of NUM_MAX_VAR (It's 255 actually, not 256).
svn-id: r33339
2008-07-27 14:36:53 +00:00
Kari Salminen
955d0700f5 Cut savegame loading into smaller functional parts (resetEngine, loadPlainSave etc).
svn-id: r33338
2008-07-27 14:33:37 +00:00
Nicola Mettifogo
387134a16a Moved inventory cursor drawing code to InventoryRenderer.
svn-id: r33337
2008-07-27 14:21:16 +00:00
Nicola Mettifogo
d223e90002 Inventory icons are now loaded correctly (not yet displayed). BRA doesn't crash anymore when pressing the right button. :)
svn-id: r33335
2008-07-27 13:43:40 +00:00
Johannes Schickel
7e7468b322 - Fixed fadePalette for HoF and Kyra3
- Fixed bug in wsaFrameAnimationStep

svn-id: r33334
2008-07-27 12:12:40 +00:00
Johannes Schickel
b95c05c384 Fixed typo.
svn-id: r33333
2008-07-27 12:09:10 +00:00
Johannes Schickel
bd5cac4e2e Fixed macro.
svn-id: r33332
2008-07-27 12:05:40 +00:00