Commit Graph
7940 Commits
Author SHA1 Message Date
Matthew Hoops 92a8d1360a kLocalToGlobal has a 'Plane' variant in SCI32 like its kGlobalToLocal sibling. The restore menu is now slightly navigatable.
svn-id: r46790
2009-12-31 05:30:25 +00:00
Matthew Hoops 7d131627fe Overload the = operator for SciArray which fixes the setType errors in GK1. Some other cleanup too. GK1 can now access the restore menu and get a bit further in the game (until a segfault in the Decompressor code).
svn-id: r46789
2009-12-31 05:11:58 +00:00
Martin Kiewitz c27c9a84c2 SCI/newmusic: cmdSendMidi / removed weird midiCmd code - fixes lsl5 des revers records piano session
svn-id: r46783
2009-12-30 23:13:49 +00:00
Max Horn d083e02215 Rename Common::Stream::readLine_NEW to readLine
svn-id: r46779
2009-12-30 23:00:55 +00:00
Martin Kiewitz dc5524bda5 SCI: palette merging / comment addition
svn-id: r46776
2009-12-30 21:54:45 +00:00
Martin Kiewitz 046d44ebe0 SCI: fix palette merging (fixes lsl1demo right at the beginning and sq5 wilco on title screen)
svn-id: r46775
2009-12-30 21:43:57 +00:00
Martin Kiewitz c71fc9130d SCI/newmusic: fix loop logic
svn-id: r46774
2009-12-30 21:22:00 +00:00
Martin Kiewitz ce88f5fb01 SCI/newmusic: update loop selector when track is finished (fixes hq1 ending, letting one save the character data for qfg2)
svn-id: r46769
2009-12-30 19:59:18 +00:00
Filippos Karapetis d4556f5a26 SCI32: Added sanity checks to kAddScreenItem and kUpdateScreenItem, so that they don't try and draw cels outside the screen
svn-id: r46767
2009-12-30 18:33:03 +00:00
Filippos Karapetis 1e4a775241 SCI/new sound code:
- call cmdDisposeHandle() instead of soundKill when a track is being replaced
- Added information about cmdReverb

svn-id: r46766
2009-12-30 17:59:31 +00:00
Matthew Hoops 5382aa1ab0 SCI32:
- Set signature for Array/String
	- Add the kernel table differences for the GK2 demo
	- Implement kMessage changes in SCI32
	- Use an empty string as the default path for all games now (and modify kValidPath to accept that only as valid)
	- Add dereferencing for Arrays

svn-id: r46756
2009-12-30 16:00:56 +00:00
Johannes Schickel fd2d0fc718 Formatting.
svn-id: r46755
2009-12-30 15:48:43 +00:00
Filippos Karapetis a314df52df Switched to the new pathfinding code, after talking with waltervn
svn-id: r46752
2009-12-30 15:38:50 +00:00
Filippos Karapetis 6305dde687 Fixed warnings
svn-id: r46747
2009-12-30 15:01:54 +00:00
Filippos Karapetis 17454ee80f Initial implementation of the SCI21 kList kernel function (which calls all the other list-related functions), thanks to the help of waltervn
svn-id: r46744
2009-12-30 14:31:00 +00:00
Martin Kiewitz dde1f2931e SCI: support for uncompressed sci1 views (fixes qfg3 demo)
svn-id: r46743
2009-12-30 14:13:25 +00:00
Filippos Karapetis d8b67ed7c6 SCI32: Moved all the list related kernel functions inside klists.cpp, and implemented kListAllTrue with the help of waltervn
svn-id: r46742
2009-12-30 14:00:30 +00:00
Filippos Karapetis bbc52c13ab Implemented ListFirstTrue(), thanks to the help of waltervn. Now, buttons can be highlighted and clicked when the control panel is shown in GK1, and the options dialog pops up when the options button is selected
svn-id: r46741
2009-12-30 13:43:17 +00:00
Filippos Karapetis 5430de7931 SCI32: added handling of variable selectors in kListEachElementDo() and silenced some annoying warnings
svn-id: r46740
2009-12-30 13:19:52 +00:00
Filippos Karapetis 0e63912970 SCI32: added some of clone2727's changes to kArray and kString, and implemented kListIndexOf
svn-id: r46739
2009-12-30 12:55:24 +00:00
Filippos Karapetis dbfdd74426 Updated documentation of the VMD decoder to indicate which SCI32 games used VMD videos
svn-id: r46738
2009-12-30 10:42:52 +00:00
Filippos Karapetis bcc33871c1 The wrapper for the VMD decoder is only used in the SCI engine for SCI32 games, so moved it inside the engine, instead of common code. Added support for VMD video playing from the "play_video" console command
svn-id: r46737
2009-12-30 10:09:48 +00:00
Martin Kiewitz 2576f4b0bd SCI/newmusic: fixed fading (fixes gk1 demo, park area)
svn-id: r46730
2009-12-29 23:25:24 +00:00
Martin Kiewitz c992cd018c SCI: returning back raw == 0, when script trying to access invalid memory
svn-id: r46720
2009-12-29 22:26:09 +00:00
Martin Kiewitz 3e5d8280fa SCI: dont crash when scripts are trying to access invalid memory (fixes intro of lb2cd)
svn-id: r46718
2009-12-29 21:37:26 +00:00
Martin Kiewitz ef0f485847 SCI/newmusic: Removed playlist-feature from cmdResumeHandle cause that is sci0 only
svn-id: r46714
2009-12-29 18:28:26 +00:00
Martin Kiewitz 0fb1c8b106 SCI/newmusic: dont do pause/resume on the whole playlist prior sci1late (soundversion)
svn-id: r46713
2009-12-29 18:17:14 +00:00
Martin Kiewitz b7206b048c SCI/newmusic: changed pauseCounter again ;)
svn-id: r46707
2009-12-29 12:25:53 +00:00
Martin Kiewitz e44cc2c72d SCI/newmusic: changed pausecounter behaviour within resume
svn-id: r46706
2009-12-29 09:28:05 +00:00
Filippos Karapetis dabfe53c66 Reverted rev #46647 - the title music in Codename: Iceman works correctly again
svn-id: r46701
2009-12-29 02:21:04 +00:00
Filippos Karapetis dbbe7fd7f8 SCI/new music code: Fixed loading of saved games. Also, stopped sounds are no longer paused
svn-id: r46700
2009-12-29 01:36:54 +00:00
Filippos Karapetis a6aa3d6363 Better checking for the cmdMuteSound and cmdVolume special cases
svn-id: r46699
2009-12-29 01:27:15 +00:00
Filippos Karapetis 53068b9e42 Removed leftover debug output
svn-id: r46698
2009-12-29 01:24:02 +00:00
Filippos Karapetis ac4551a39f SCI/new music code: cmdPauseHandle/cmdResumeHandle now work for SCI0 games
svn-id: r46697
2009-12-29 00:22:39 +00:00
Martin Kiewitz b65e4a8f74 SCI/newmusic: Added pausecounter cause sierra sci also does this
svn-id: r46693
2009-12-28 22:57:43 +00:00
Filippos Karapetis dd1fc9c14b SCI/new music code: Implemented cmdSendMidi, and removed access to _argc from sound commands
svn-id: r46692
2009-12-28 22:52:07 +00:00
Martin Kiewitz faff5b2123 SCI/newmusic: Added comment about weird sierra sci behaviour
svn-id: r46691
2009-12-28 22:45:26 +00:00
Martin Kiewitz f8abf06276 SCI/newmusic: Accept object 0:0 in cmdPauseHandle, pause the whole playlist then (fixes castle of dr. brain during intro)
svn-id: r46690
2009-12-28 22:35:53 +00:00
Max Horn 34e21c3767 SCI: Further objectify MusicEntry
svn-id: r46689
2009-12-28 21:06:44 +00:00
Max Horn 81a1d45821 SCI: Start objectifying MusicEntry
svn-id: r46687
2009-12-28 21:03:13 +00:00
Max Horn 594e202683 cleanup
svn-id: r46686
2009-12-28 21:00:59 +00:00
Max Horn 3aded71f55 SCI: Make some code comply to our naming conventions
svn-id: r46685
2009-12-28 20:58:00 +00:00
Filippos Karapetis 5cb5fe22ea SCI/new sound code:
- Made the SciMusic class private, and added wrapper functions for invoking specific methods of SciMusic from outside the SoundCommandParser class
- Many SCI games keep creating and destroying sound effects constantly (i.e. many times per second). Therefore, another scheme has been devised, which replaces the mutex that was in place. Whenever a sound command is run which operates on a specific object in the play list, we disallow onTimer() from kicking in. This isn't ideal, but it does stop random deadlocks because of locked mutexes without any noticeable side effects

svn-id: r46681
2009-12-28 20:10:15 +00:00
Filippos Karapetis 871d5c534d Moved the OLD_PATHFINDING define inside sci.h, together with the others
svn-id: r46679
2009-12-28 17:17:22 +00:00
Filippos Karapetis 0a6e2127ac SCI/new music code: Added a workaround for a music-related game bug in Castle of Dr. Brain
svn-id: r46678
2009-12-28 16:23:00 +00:00
Filippos Karapetis 3c6b7ce3b5 Fixed music pausing
svn-id: r46677
2009-12-28 16:21:59 +00:00
Filippos Karapetis 2973862488 Added a workaround for an off-by-one invalid species access bug in the LSL2 demo
svn-id: r46673
2009-12-28 14:22:11 +00:00
Filippos Karapetis 62c1c2633d SCI/new music code: Implemented the "songlib" debug command
svn-id: r46670
2009-12-28 11:23:20 +00:00
Filippos Karapetis f41674fd51 SCI/new music code: Hanging notes now stop when a sound is paused/stopped
svn-id: r46669
2009-12-28 10:42:14 +00:00
Filippos Karapetis f93537b2e5 SCI/new music code: Fixed a race condition when removing a sound from the playlist
svn-id: r46668
2009-12-28 10:27:56 +00:00