Commit Graph

53 Commits

Author SHA1 Message Date
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
Filippos Karapetis
63f3d5b253 Partially implemented opcodes 87, 88 and 89, used in the help system of the IHNM demo. It's still buggy, though
svn-id: r28398
2007-08-02 01:04:44 +00:00
Filippos Karapetis
6a82a3fbfc The text of the psychic profile in IHNM is shown correctly now
svn-id: r28397
2007-08-01 23:38:31 +00:00
Filippos Karapetis
b58d259f7e The psychic profile background is displayed correctly again
svn-id: r28380
2007-08-01 02:37:29 +00:00
Travis Howell
d5e10d1d56 Fix compiler warnings.
svn-id: r28378
2007-08-01 01:21:03 +00:00
Filippos Karapetis
03d7990a34 Some updates to the psychic profile in IHNM. sfPsychicProfileOff has been enabled again
svn-id: r28361
2007-07-31 17:41:10 +00:00
Filippos Karapetis
c596fba864 sfPsychicProfileOff is not used, therefore disable it to prevent it from trying to clear the psychic profile again
svn-id: r28359
2007-07-31 15:40:08 +00:00
Filippos Karapetis
32d0070868 Play MIDI music at the volume specified in the options screen
svn-id: r28348
2007-07-31 01:21:25 +00:00
Filippos Karapetis
a09a95c99a sf92 is not null in the demo version of IHNM
svn-id: r28343
2007-07-30 23:30:08 +00:00
Filippos Karapetis
1856a0f11b Correct the object sprites only in Ted's part of the IHNM demo
svn-id: r28339
2007-07-30 21:13:51 +00:00
Filippos Karapetis
7498c6b43e It's now possible to exit from the psychic profile screen in IHNM
svn-id: r28325
2007-07-30 14:22:53 +00:00
Filippos Karapetis
ba44fcbf6b Some corrections for the psychic profile screen in IHNM. The psychic profile background drawing has been turned into an event, so actors and animations will no longer be incorrectly shown. Also, the incorrect text color has been fixed. The text position is still wrong, though, and it's currently not possible to exit the psychic profile screen
svn-id: r28324
2007-07-30 13:19:46 +00:00
Filippos Karapetis
653cf4c971 Initial support of the psychic profile in IHNM (still buggy)
svn-id: r28323
2007-07-30 11:55:11 +00:00
Filippos Karapetis
36496dd467 The actors at the end of Benny's part in the IHNM demo are no longer incorrectly shown
svn-id: r28322
2007-07-30 10:33:17 +00:00
Filippos Karapetis
bb22e22050 Inventory icons in the IHNM demo are displayed correctly now
svn-id: r28313
2007-07-29 19:06:17 +00:00
Filippos Karapetis
994a191858 IHNM: Narrowed down the places where the actors stop being drawn when changing scenes
svn-id: r28022
2007-07-11 03:21:29 +00:00
Filippos Karapetis
697f945e00 Reverted commit 27948. Cutaways in sfScriptGotoScene are cleared by calling clearcutaway directly again, as calling it using an event does not clear the cutaway when it should (which caused problems in the character selection screen)
svn-id: r27976
2007-07-08 20:46:21 +00:00
Filippos Karapetis
a43eb567cc Clear the cutaway via an event in sfScriptGotoScene, instead of calling the function directly
svn-id: r27948
2007-07-07 01:11:43 +00:00
Filippos Karapetis
c72633b539 IHNM: Benny will no longer start walking backwards for a bit after talking with the child via the monitor. This glitch occurs with the original interpreter as well
svn-id: r27947
2007-07-07 00:53:16 +00:00
Filippos Karapetis
3efcdd7a43 Modified ticksToMSec in IHNM, so that it waits for the correct amount of time. Many animations which were not displayed quite right are fixed now, including some small syncing issues with video and sound in some places
svn-id: r27939
2007-07-06 13:21:43 +00:00
Filippos Karapetis
38f3b09e58 IHNM: sf103 is sfQueueMusic. Now, when doing a good/bad deed in IHNM, the music changes correctly
svn-id: r27936
2007-07-06 12:39:00 +00:00
Filippos Karapetis
8d81d720d3 Implemented the rest of the differences of the sfScriptGotoScene opcode in IHNM
svn-id: r27916
2007-07-05 03:37:23 +00:00
Filippos Karapetis
5624ba23d0 Added a workaround in IHNM for the compact disk in Ellen's chapter
svn-id: r27557
2007-06-20 16:36:29 +00:00
Filippos Karapetis
4ffd38a199 When saving the game in IHNM after a chapter point change, the chapter point change music will no longer be incorrectly saved, and the normal chapter music will be saved instead
svn-id: r27545
2007-06-19 11:23:20 +00:00
Filippos Karapetis
8bc226b0e5 The correct music track is now played when loading a game in IHNM. The save/load mechanism in IHNM seems to be working correctly now (although it needs testing), however there are still some graphical glitches with the save/load dialogs. Also, moved some unfinished code for returning to the chapter selection screen to a more appropriate place
svn-id: r27542
2007-06-19 02:42:59 +00:00
Filippos Karapetis
3c424d98cd Removed obsolete comment
svn-id: r27541
2007-06-19 01:41:10 +00:00
Filippos Karapetis
6dc0a1b234 Some more updates for saving/loading in IHNM
svn-id: r27512
2007-06-17 15:45:09 +00:00
Eugene Sandulenko
f7b28b95ad More efforts to implement proper fade after cutaway. One little glitch is left.
svn-id: r27502
2007-06-17 01:00:06 +00:00
Filippos Karapetis
b37161bafd IHNM: Added a temporary workaround for the nightfall scene in Ben's chapter
svn-id: r27438
2007-06-16 01:58:03 +00:00
Filippos Karapetis
8565809552 IHNM: Fixed sfSetSpeechBox, now the dialog of Nimdok and Mengele will show up correctly. Also, done some preliminary work on sfScriptGotoScene and changeScene to return to the character selection screen, but it's not right yet
svn-id: r27385
2007-06-13 13:00:25 +00:00
Filippos Karapetis
a121e4ce05 Fixed an incorrect check in Script::finishDialog
svn-id: r27274
2007-06-10 03:21:16 +00:00
Filippos Karapetis
3fd5347421 Fixed conversations in IHNM. Now, when a dialog option is selected, the protagonist will say it out properly before we hear the other character's reply. Also, added some more code for sfScriptFade and made it a stub for now, as it still needs work
svn-id: r27264
2007-06-10 00:36:01 +00:00
Filippos Karapetis
7bd240ea8f Implemented video playing for IHNM (still needs work). Also, updated a comment regarding the intro
svn-id: r27166
2007-06-07 12:11:33 +00:00
Filippos Karapetis
9b14f5faed Implemented the sfGetMouseClicks and sfResetMouseClicks opcodes and created the skeleton for sfScriptStartVideo, sfScriptReturnFromVideo and sfScriptEndVideo opcodes
svn-id: r27145
2007-06-06 19:46:10 +00:00
Filippos Karapetis
5d46606bb0 Fixed the parameter order in sfScriptFade
svn-id: r27143
2007-06-06 18:09:52 +00:00
Filippos Karapetis
00dac8c10f Implemented the sfScriptFade opcode
svn-id: r27142
2007-06-06 18:04:25 +00:00
Filippos Karapetis
a265844351 Added sanity checks for hitzones in SAGA, after discussing with h00ligan and sev. Removed a hack for IHNM which is not needed anymore and removed a redundant check for zero object types
svn-id: r27140
2007-06-06 16:37:10 +00:00
Travis Howell
248d527a56 Avoid compiler warnings.
svn-id: r27118
2007-06-05 22:38:43 +00:00
Filippos Karapetis
158193fe51 Add the hack for the staircase in the zeppelin in IHNM once more, apparently the cause for it is different than what I thought
svn-id: r27109
2007-06-05 16:29:15 +00:00
Filippos Karapetis
2f033e7a4c Check if a zone type is NULL for both ITE and IHNM, as it's done in the original. This fixes the crash in IHNM when entering the second floor of the zeppelin and the crash in ITE when interacting with the bowl in the tunnel, outside the prison. Removed the two relevant hacks
svn-id: r27108
2007-06-05 15:04:25 +00:00
Filippos Karapetis
2b593f30a1 IHNM: Add a temporary hack for the crash that occurs when climbing the staircase to the second floor of the zeppelin in chapter 1
svn-id: r27094
2007-06-04 23:10:59 +00:00
Filippos Karapetis
7201437206 The animation frame counter is updated correctly now, so all animations in IHNM where the engine is waiting are displayed fully. Big thanks to sev, once again :)
svn-id: r27070
2007-06-03 19:15:59 +00:00
Filippos Karapetis
89b80a3f8b Opcode 11 is sfLockUser. Also updated Scene::getHeight() for this change. Now, the interface is locked when the scripts lock it. This prevents erroneous actor movement when skipping speech by left clicking, and other incorrect behavior. Special thanks to h00ligan for all his help
svn-id: r27064
2007-06-03 15:50:25 +00:00
Filippos Karapetis
f4299e81c1 Implemented the sfWaitFrames script function for IHNM. Many animations should display more correctly now (e.g. actor "zapping" animations, Ben falling off the stairs). They're still not correct, as frameCount is not updated properly
svn-id: r27055
2007-06-02 15:26:05 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00