aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sci.cpp
AgeCommit message (Collapse)Author
2010-11-19SCI: Moved the Object class in a separate fileFilippos Karapetis
svn-id: r54361
2010-11-17SCI: Allow SCI3 game scripts to runFilippos Karapetis
SCI3 scripts do start up now, however they stop quite early, as there is still missing functionality which prevents them from running fully. This will be useful for debugging, though svn-id: r54292
2010-11-11SCI: Added the "DUK" video folder to the Search managerFilippos Karapetis
The DUK folder contains all of the recently supported Duck videos in Phantasmagoria 2. play_video works now with the videos of Phantasmagoria 2 :) svn-id: r54208
2010-11-10SCI: Some SCI3 changesFilippos Karapetis
- Extended the SCI2.1 kernel function signatures for SCI3, as they share the same kernel table - All the engine parts are now initialized in SCI3 games, apart from the VM svn-id: r54178
2010-11-09SCI: Some slight work on SCI3Filippos Karapetis
- Enabled the SCI3 game entries for testing purposes - The resource manager is initialized fully now (with a slight hack) - Added a hack for the demo of Shivers 2 (which seemingly has no scripts or vocabularies) - The engine will stop before parsing any game scripts in SCI3 games, and opens the console for resource manager-related functionality svn-id: r54167
2010-11-05COMMON/GUI/SCI: Changes to the EGA dithering checkboxFilippos Karapetis
- Changed the new dithering checkbox to be more generic (i.e. relevant for all engines that may support such a feature in the future) - Changed the checkbox to be unchecked by default. As discussed on -devel, game enhancements in ScummVM should be off by default, and opt-in - Changed the option from "sci_undither" to "disable_dithering" - Changed theme version style to X.Y.Z and bumped it to 0.8.2 svn-id: r54090
2010-11-04SCI: Set undither to on by default again, like it was. Filippos Karapetis
From our current stance, this is a game enhancement, and should be on by default, like the rest of the game enhancements (AGI mouse, save/load replacement etc) svn-id: r54070
2010-11-04SCI/SCUMMVM: Added an option to enable the dithering removal algorithm (so ↵Filippos Karapetis
called "undithering") in the graphics options tab. The algorithm is now disabled by default, after popular demand. In retrospect, we really shouldn't have made it default, in order to preserve the authenticity of the graphics in early SCI EGA games, and allow the user to opt in and enable the option if needed. Unfortunately, the lack of an easy way to modify the option made it hard to do so. svn-id: r54066
2010-11-01COMMON: Rename String::printf() to String::format()Max Horn
This is a first step towards getting rid of all uses of regular printf, fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase. The name format() reflects the purpose of the function, and parallels String.format() in Java, boost::format, and others. svn-id: r54004
2010-10-31SCI: Play time related changesFilippos Karapetis
- Added support for savegame play time - Removed obsolete variables for calculating the play time (EngineState::gameStartTime and Console::_enterTime) - Renamed some variables to camelCase svn-id: r53974
2010-10-30SCI: Fixed detection of fan made script patches for LSL1Filippos Karapetis
svn-id: r53940
2010-10-29SCI: Remove unused variable + some formatting fixes.Johannes Schickel
svn-id: r53921
2010-10-29SCI: Added detection of some fan made script patches.Filippos Karapetis
When such a script patch is found, a dialog pops up at the beginning of the game, asking the user to remove it. The issues that these script patches fix have already been fixed in ScummVM, thus these patches aren't necessary, plus they can lead to crashes, freezes, buggy behavior and/or unexpected errors, thus it is better if they aren't used at all, if possible svn-id: r53920
2010-10-27SCI: Proper pausing/resuming of MIDI music in ↵Filippos Karapetis
SciEngine::pauseEngineIntern(), Console::preEnter() and Console::postEnter() and added a sanity check in SciEngine::getDebugger() svn-id: r53886
2010-10-13SCI: Add detection for Hoyle4 MacMatthew Hoops
svn-id: r53397
2010-09-08SCI: dont replace save/restore in hoyle2 tooMartin Kiewitz
svn-id: r52636
2010-09-08SCI: don't replace save/restore in hoyle1Martin Kiewitz
fixes hoyle1 not starting anymore svn-id: r52635
2010-09-07SCI: Now distinguishing between native MT-32 MIDI from GM devices when checkingFilippos Karapetis
for the existence of after market GM patches svn-id: r52620
2010-09-02SCI: Show a warning window regarding GM in some games.Filippos Karapetis
Sierra has released a patch adding after market General MIDI support for 8 SCI1 games (LSL1, LSL5, Hoyle 3, SQ1, SQ4, Eco1 floppy, Longbow and Fairy Tales). If the user has selected the General MIDI music driver in one of these games and no associated MIDI patch is found, show an informational dialog on game startup in order to inform the user to download Sierra's MIDI patch, together with some short instructions. svn-id: r52500
2010-09-01SCI: set master volume correctlyMartin Kiewitz
and merge it together with global volume, fixes bug #3053104) svn-id: r52484
2010-09-01SCI: disable dialog replacement for jonesMartin Kiewitz
fixes odd crash right at the start, although you can't save/restore in jones o_O (fixes bug #3057080) svn-id: r52479
2010-08-31SCI: renaming fb01-enable to "native_fb01"Martin Kiewitz
svn-id: r52471
2010-08-31SCI: renaming config-variablesMartin Kiewitz
"sci_dither" got removed, "undither" renamed to "sci_undither". Also changed logic for handling "sci_originalsaveload" svn-id: r52469
2010-08-31SCI: Remove duplicate comment line.Johannes Schickel
svn-id: r52468
2010-08-31SCI: enable new kDoBresen/InitBresenMartin Kiewitz
enable replacement of save/load dialogs per default add config-var "sci_originalsaveload" for not replacing dialogs add config-var "sci_dither" for enabling dithering in EGA games new kDoBresen fix qfg2 walk against wall bug (#3053131) and hoyle3 unreadable dice bug (#3036922) svn-id: r52467
2010-08-29SCI: adding virtual lists for qfg-import roomsMartin Kiewitz
now lists import files of all possible games, adds game title before that, removes game prefixes for all files svn-id: r52441
2010-08-29SCI: Added proper handling of QFG exported character files.Filippos Karapetis
Now, QFG2, 3 and 4 may read exported characters from all other QFG games, like the originals did. Fixes bug #3054692 - "QFG2/QFG3 Import issues". svn-id: r52430
2010-08-27SCI: Fixed bug #3054613, "QFG character saves, naming convention"Filippos Karapetis
svn-id: r52419
2010-08-25SCI: making loading from ScummVM menu work correctlyMartin Kiewitz
using a trick for indirectly calling GameObject::init and then restoring, fixes text color/font code issues, also removing all the hackery svn-id: r52379
2010-08-24SCI: replacing save dialog as wellMartin Kiewitz
experimental feature - enable by putting "scireplacedialog=true" inside scummvm section of scummvm.ini LSL6 currently loses the ability to quicksave, when using the feature. Although i don't see it as a huge loss. That way it's now possible to save to up to 100 slots instead of just 20. svn-id: r52345
2010-08-24SCI: Check for the existence of script 180 before accessing it.Filippos Karapetis
Fixes the Longbow demo svn-id: r52344
2010-08-24SCI: more work on replacing save dialogMartin Kiewitz
also removing some previous code, because it wont work that way svn-id: r52342
2010-08-24SCI: some work on replacing save dialogMartin Kiewitz
svn-id: r52341
2010-08-24SCI: fixing const cast warningMartin Kiewitz
making clone happy :D svn-id: r52339
2010-08-24SCI: changing signature of kRestoreGameMartin Kiewitz
and changing patch code accordingly svn-id: r52320
2010-08-24SCI: now pausing/unpausing music in replaced restore dialogMartin Kiewitz
dialog will not get replaced in sci32, nor in mother goose. Enable by adding "scireplacedialog" inside scummvm section of scummvm.ini file. Note: this feature is experimental svn-id: r52318
2010-08-24SCI: bit more work on restore dialog replacingMartin Kiewitz
(works now, if enabled - but music isn't yet paused) svn-id: r52317
2010-08-23SCI: some more work on replacing restore dialogMartin Kiewitz
svn-id: r52314
2010-08-23SCI: storing game super class address now inside SciEngineMartin Kiewitz
svn-id: r52311
2010-08-17SCI: Added a warning dialog on game startup for versions of Longbow with ↵Filippos Karapetis
known buggy scripts (containing game stopping bugs), which have been patched by Sierra svn-id: r52172
2010-08-07SCI: Added support for the inbuilt leftover parser in XMAS1990Filippos Karapetis
svn-id: r51829
2010-08-05SCI: Fixed bug #3039477 - "KQ5CD: No speech after restoring from ScummVM" ↵Filippos Karapetis
and added a TODO for loading through the game launcher svn-id: r51755
2010-08-04SCI: Add 'movie' subdirectory for VMD'sMatthew Hoops
The Torin's intro movie now plays. Minor kPlayVMD cleanup. svn-id: r51739
2010-08-02SCI: fixing getting selected languageMartin Kiewitz
for multilingual games svn-id: r51608
2010-08-01SCI: honoring english selection for multilingual gamesMartin Kiewitz
svn-id: r51598
2010-08-01SCI: adding "audiosfx" to directoriesMartin Kiewitz
svn-id: r51579
2010-08-01SCI: adding audio directory searching for patchesMartin Kiewitz
fixes bug #3037768 svn-id: r51570
2010-07-31SCI: kGameIsRestarting returns 2 when we restoredMartin Kiewitz
fixes castle of dr. brain save issue in puzzle room, fixes island of dr. brain save issue when saving in first room svn-id: r51538
2010-07-30SCI: Switch to Common::RandomSource.Johannes Schickel
Since I got no response to my mail to -devel, I just assume that there is no specific reason for using rand() in SCI. As explained in my mail to -devel about why SCI uses rand, this might allow SCI to work with our event recording, when that ever gets finished. I adapted kRandom so that it also supports negative random numbers. And furthermore that the toNumber argument is smaller than the fromNumber argument. I am not sure whether that really happens though, but it should be safer to have this. I marked that place with an TODO/CHECKME. svn-id: r51521
2010-07-28SCI: Add 'robots' subdirectory (PQSWAT demo stores them there)Matthew Hoops
svn-id: r51405