Commit graph

97 commits

Author SHA1 Message Date
Filippos Karapetis
90d762c261 Wrapped more engine-specific code around appropriate ifdefs
svn-id: r35679
2009-01-02 19:10:51 +00:00
Filippos Karapetis
d5b6996c45 - Split the IHNM script functions into a different file
- Added two new defines, ENABLE_IHNM and ENABLE_SAGA2 (enabled by default), which can be used to remove the parts of the SAGA engine which are specific to IHNM and SAGA 2 games. Hopefully, this will reduce the size of the engine even more for platforms with little memory (e.g. the Nintendo DS)

svn-id: r35672
2009-01-02 16:52:38 +00:00
Filippos Karapetis
32f73fd34c Rewrote the SAGA script system to use an opcode table, like in other engines
svn-id: r35670
2009-01-02 13:59:34 +00:00
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
Filippos Karapetis
4d7a43734e Fixed bug #1970191 - "IHNM: Psychic Profile problem"
svn-id: r35495
2008-12-23 11:18:01 +00:00
Filippos Karapetis
9a57f42399 logicalWidth -> width
logicalHeight -> height

svn-id: r35488
2008-12-22 14:36:58 +00:00
Filippos Karapetis
437384a838 - Split the SAGA resource manager in 3 different ones, depending on the resource type (RSC for ITE, RES for IHNM and HRS for DINO/FTA2). The SAGA 2 HRS resource manager is still a stub
- Added detection for the voice file of FTA2

svn-id: r35484
2008-12-22 14:13:15 +00:00
Filippos Karapetis
2257db88d3 - Added some stubs for the SAGA2 games dino and fta2
- Stopped loading the isomap and puzzle game modules for IHNM, as they are not used for that game (this saves some memory for IHNM)
- Removed getDisplayWidth() and getDisplayHeight()

svn-id: r35473
2008-12-21 22:52:44 +00:00
Filippos Karapetis
d0f4f97ea9 Cleaned up the mess with game IDs and game types: removed game types, reduced the game IDs and added game features where necessary
svn-id: r35467
2008-12-21 15:59:05 +00:00
Filippos Karapetis
cfa939d151 - Stop passing the scene clip rectangle around for no reason
- More changes for dirty rectangle handling
- Stop adding dirty rectangles that cover the whole screen for no reason
- Dirty rectangle handling is still very buggy, so it's still disabled

svn-id: r35314
2008-12-12 14:23:02 +00:00
Filippos Karapetis
065694dbb1 - Prevented direct reference to the back buffer in many cases (apart from a few, where it's modified directly)
- Added skeleton code for dirty rectangle handling (still unfinished and non-working)
- Added wrapper functions to access the back buffer, which add the appropriate dirty rectangles automatically

svn-id: r35264
2008-12-06 18:23:34 +00:00
Filippos Karapetis
f3a60a8c96 Cleanup
svn-id: r35259
2008-12-06 13:35:27 +00:00
Filippos Karapetis
6d4900ad06 Hopefully fixed the chaos with the SAGA volume values. This also fixes the broken volume introduced with the introduction of the RTL code in the engine
svn-id: r34349
2008-09-05 13:02:03 +00:00
Max Horn
2a06141644 Merging more of the GSoC 2008 RTL branch: SAGA
svn-id: r34252
2008-09-01 20:19:28 +00:00
Filippos Karapetis
c89281e4a3 Fix for bug #2057200 - "IHNM: Invisible inventory objects"
svn-id: r34189
2008-08-26 14:26:43 +00:00
Christopher Page
cbadb51ce7 SAGA works with new GMM implementation
svn-id: r33000
2008-07-11 01:09:48 +00:00
Filippos Karapetis
966239fc52 Code cleanup:
- Removed sagaresnames.h
- Moved all special scenes to scene.h, and named them consistently (e.g. RID_ITE_OVERMAP_SCENE -> ITE_SCENE_OVERMAP)
- Moved all resources which were used by the ITE intro into ite_introproc.cpp
- Removed several defines which were only used once (e.g. the SFX names)
- Reordered the GameResourceDescription resources so that ITE and IHNM specific resources are placed in the end
- Updated the comment about the IHNM Mac music
- Changed the callocs in loadPalAnim to mallocs, like in the rest of the code
- Removed the MEM error

svn-id: r32282
2008-05-26 11:10:46 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Paul Gilbert
6eb64102a4 Fix to remove a tab character from the GPL header
svn-id: r30238
2008-01-05 12:45:14 +00:00
Filippos Karapetis
2bb81e2d20 Properly fixed bug #1861863 - "ITE: Crash when using Eeah with Eeah"
svn-id: r30195
2008-01-03 10:42:18 +00:00
Filippos Karapetis
6ed43e7505 Fix for bug #1861863 - "ITE: Crash when using Eeah with Eeah"
svn-id: r30181
2008-01-03 07:29:13 +00:00
Filippos Karapetis
a8d3967f63 Fix for bug #1861126 - "IHNM: Crash when Gorrister cuts sheet in the mooring ring"
svn-id: r30109
2007-12-31 22:45:30 +00:00
Filippos Karapetis
c84d9c1588 Fix to prevent having an incorrect sprite assigned to some objects in IHNM when those objects are dropped in the scene
svn-id: r29796
2007-12-09 15:43:08 +00:00
Filippos Karapetis
bf75630b42 Fixed the font height of the text in the help screens of the IHNM demo. Clean-up of some opcodes
svn-id: r28940
2007-09-18 16:46:32 +00:00
Max Horn
80386fbb02 Turn off unused code (fixing a compiler warning)
svn-id: r28925
2007-09-16 12:16:28 +00:00
Eugene Sandulenko
9778bec419 Fix bug when some animations were playing too fast.
svn-id: r28924
2007-09-16 11:37:14 +00:00
Filippos Karapetis
5fa2b1a3c5 Palette fade in when a cutaway starts in IHNM is working now. Also, the fade mode is properly set in all cases where palette fadeout is used. Some code formatting
svn-id: r28904
2007-09-15 12:09:56 +00:00
Filippos Karapetis
1fa1b64984 Some more opcode simplifications
svn-id: r28902
2007-09-14 12:49:09 +00:00
Filippos Karapetis
c84ff65720 Removed the RF_PLACARD flag. Also, simplified sfPlaceActor and removed a non needed check
svn-id: r28901
2007-09-14 12:42:47 +00:00
Filippos Karapetis
9d85371aa0 Cleanup and simplification of several of the script opcodes used in ITE and IHNM
svn-id: r28899
2007-09-13 17:55:00 +00:00
Filippos Karapetis
84393ab95e The early ITE demos were not interactive
svn-id: r28897
2007-09-13 11:21:23 +00:00
Filippos Karapetis
a8149227bf The actors in Nimdok's part of the IHNM demo are shown correctly now
svn-id: r28758
2007-08-27 14:22:24 +00:00
Filippos Karapetis
b39c4cbdba Added some skeleton code for the IHNM credits movie. Also, changed the location of the RF_DISABLE_ACTORS is set from loadScene to endScene
svn-id: r28757
2007-08-27 13:04:35 +00:00
Filippos Karapetis
4e5d819732 IHNM's ending is shown correctly now (but the credits still aren't). Slight update on the music of chapter 6
svn-id: r28753
2007-08-27 09:30:23 +00:00
Filippos Karapetis
6358d6bb07 One more place where music for chapter 6 shouldn't be played for now
svn-id: r28745
2007-08-26 05:03:59 +00:00
Filippos Karapetis
a6048447fc Don't play a music track when loading a saved game from chapter 6 in IHNM for now either, until the cause for the incorrect music table for that chapter is found
svn-id: r28744
2007-08-26 03:32:18 +00:00
Filippos Karapetis
c51fb71f05 The music table loaded for chapter 6 (final chapter) in IHNM is problematic, so don't load any music for that chapter until the cause is found
svn-id: r28743
2007-08-26 03:24:39 +00:00
Filippos Karapetis
f7439d884e Implemented some differences of IHNM in sfScriptDoAction. Now, some actions on objects (like using the sarcophagus in Ellen's chapter) are done correctly
svn-id: r28740
2007-08-26 01:29:35 +00:00
Filippos Karapetis
30a82f1879 When sfMainMode is set, overwrite the stored panel mode
svn-id: r28731
2007-08-25 19:21:43 +00:00
Filippos Karapetis
79eb157fef The palette is set correctly now when chapter points change and a cutaway is up
svn-id: r28730
2007-08-25 18:24:32 +00:00
Filippos Karapetis
57ee1e15be Stop showing actors before a scene's background is shown. Removed a relevant hack
svn-id: r28725
2007-08-25 16:02:48 +00:00
Filippos Karapetis
e156f0ff87 The frame count needs to be updated for cutaways without an animation bit as well. Removed a hack for the nightfall scene in Benny's chapter
svn-id: r28709
2007-08-24 13:40:03 +00:00
Filippos Karapetis
ef7c66893a Updated some comments
svn-id: r28706
2007-08-24 11:44:18 +00:00
Filippos Karapetis
1c065b1e14 Added skeleton code for sfScriptFade. Work is still needed in Gfx::palFade though, so it still doesn't work
svn-id: r28702
2007-08-23 13:56:25 +00:00
Filippos Karapetis
769dd1d7a2 Several bugfixes:
- The spiritual barometer display in IHNM is now updated only when necessary, to speed drawing up. This also corrects an issue where the spiritual barometer display was updated only after changing a scene
- sf92 is sfDemoSetInteractive
- It's now possible to use dashes and underscores in savegames
- Screen fading when changing scenes is now done correctly: the interface will no longer be incorrectly briefly shown while the screen is fading to black
- The interface mode is now correctly set in the non-interactive part of the IHNM demo
- sfScriptGotoScene does not have a transition parameter, therefore that parameter has been removed

svn-id: r28643
2007-08-17 06:08:18 +00:00
Filippos Karapetis
f3158075bb The sprite set by sfSetObjImage is assigned correctly now for IHNM. This fixes several cases where objects with more than one frame were incorrectly displayed
svn-id: r28571
2007-08-13 01:20:42 +00:00
Filippos Karapetis
742d503b92 Removed an obsolete TODO
svn-id: r28570
2007-08-13 01:09:48 +00:00
Filippos Karapetis
ccc9359181 Text is cleared correctly in the IHNM demo help screen, when waiting for the game to change the page automatically
svn-id: r28407
2007-08-02 14:57:18 +00:00
Filippos Karapetis
3e9c4be280 The help screen in the IHNM demo is shown correctly now
svn-id: r28406
2007-08-02 14:43:10 +00:00
Filippos Karapetis
ec4a240b50 The help screens in the IHNM demo are shown a bit more correctly now, though they're still buggy
svn-id: r28399
2007-08-02 01:56:45 +00:00