aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/script.cpp
AgeCommit message (Collapse)Author
2011-05-25ALL: initialise -> initializeMatthew Hoops
2011-05-13SCI: Avoid incrementing lockers of deleted scriptWillem Jan Palenstijn
Having a deleted script with non-zero lockers had the side effect of making the deleted script re-appear in the GC's work list, including any (deleted) objects in the script. This should be the root cause of bugs #3299458 and #3295849, so also delete the workaround added for that in 35086fe1.
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-20SCI: Fix precedence (bug #3087872)Willem Jan Palenstijn
2011-03-14SCI: Got rid of VERIFY() and removed some newlines in error messagesmd5
2011-03-02SCI: Fixed script bug #3059871 - "SCI Fanmade - Ocean Battle: Crash while ↵md5
playing"
2011-01-04SCI: CleanupFilippos Karapetis
svn-id: r55123
2011-01-04SCI: Fixed part of bug #3150767 - "KQ5 French crash on startup, only partial ↵Filippos Karapetis
English text" This is a regression from r54510 svn-id: r55122
2011-01-01SCI: debugC calls no longer require a debug level of 2 to show outputFilippos Karapetis
svn-id: r55086
2010-12-21Simplify SCI3 relocation code, also making it correct.Lars Skovlund
svn-id: r54985
2010-11-27SCI: Fixed bug #3034713 - "ICEMAN Demo: Fails to find base object"Filippos Karapetis
This could happen because objects in scripts can be in the wrong order. Same thing happens in the French and German version of KQ5 (bug #3035396). Removed the scriptObjRemove() method, which is in fact a hack. svn-id: r54510
2010-11-24SCI: Some slight changes to get the "find_callk" console command working in KQ5Filippos Karapetis
- Ignore invalid object in KQ5 script 784 - Script 980 looks to be an unused leftover, as its object contain references to classes placed in script 988, which is missing svn-id: r54455
2010-11-18SCI: Slight formatting fix.Johannes Schickel
svn-id: r54330
2010-11-18SCI3: Add proper support for the calle instructionLars Skovlund
svn-id: r54327
2010-11-18Fix operator precedence problemLars Skovlund
svn-id: r54324
2010-11-17SCI: Added sanity checks for SCI3 scripts bigger than 64KBFilippos Karapetis
- Extended the "verify_scripts" console command for SCI3 scripts - Added a check for such large scripts when scripts are loaded, with an error for now, till a mechanism to support such scripts with a 16-bit addressing scheme is in place (e.g. overlaying, or splitting scripts). Either way, such scripts should span over more than one segment svn-id: r54304
2010-11-17SCI3: Handle script exports correctlyLars Skovlund
svn-id: r54302
2010-11-17SCI: Make class table size OB1 workaround slightly more readableMax Horn
svn-id: r54290
2010-11-17SCI: More work on SCI3, based on a patch by lskovlunFilippos Karapetis
- Added SCI3 equivalents for access to object selectors - Added SCI3 implementation of object relocation - Added SCI3 implementation of Script::initialiseClasses() svn-id: r54283
2010-11-17SCI: Some more work on SCI3, based on a patch by lskovlunFilippos Karapetis
- Added a SCI3 implementation of Script::load() - Added a SCI3 implementation of Script::initialiseClasses() - Removed some duplicate code svn-id: r54282
2010-11-17SCI: Added the SCI3 equivalent of initialiseObjects(), from a patch by lskovlunFilippos Karapetis
svn-id: r54281
2010-11-17SCI: Some restructuring. Added some SCI3 placeholders/stubsFilippos Karapetis
svn-id: r54280
2010-11-17SCI: The heap was a separate resource in SCI1.1 - SCI2.1 games only. It was ↵Filippos Karapetis
later merged into the script files again in SCI3 svn-id: r54279
2010-11-04SCI: Renamed findBlock() to findBlockSCI0()Filippos Karapetis
svn-id: r54077
2010-09-13SCI: Proper fix for bug #3038837 - "HOYLE3: EGA/VGA Crashes" and some cleanupFilippos Karapetis
System scripts (i.e. 0 and 900-999) are now protected and never destroyed during a game svn-id: r52702
2010-09-12SCI: Bugfix for rev #52688.Filippos Karapetis
We can't just set the lockers of script 0 to 1, as at that point the objects associated with the script are marked to be deleted, thus we need to reload the script svn-id: r52693
2010-09-12Workaround for bug #038837: HOYLE3: EGA/VGA Crashes. Needs furtherLars Skovlund
investigation and a proper fix post-release svn-id: r52688
2010-09-04SCI: Janitorial - fixed spaces and typosFilippos Karapetis
svn-id: r52527
2010-09-04SCI: Don't try to initialize non-existent scripts, error out instead Filippos Karapetis
(Invalid scripts may be requested to be loaded when warping to an incorrect room) svn-id: r52524
2010-09-04SCI: Fixed bug #3037595 - "KQ4: Crash reading message in the bottle (whale ↵Filippos Karapetis
mouth)" svn-id: r52516
2010-08-18SCI: Resolved a FIXME concerning scripts with more than one export table (it ↵Filippos Karapetis
only makes sense for SCI0-SCI1 games) svn-id: r52179
2010-08-11SCI: making camelot fix camelot-only for nowMartin Kiewitz
fixes kq6 getting assert as well (bug 3042866) svn-id: r51970
2010-08-10SCI: adding patch for eq1cdMartin Kiewitz
fixes ego swimming left/right of room 660 and getting a "message not found" error and a GE? signature mismatch - in sierra sci this also resulted in "message not found" and a hang afterwards - bug #3038387 svn-id: r51951
2010-08-06SCI: Split the new script patch code in a separate fileFilippos Karapetis
svn-id: r51810
2010-08-06SCI: fixing typoMartin Kiewitz
svn-id: r51809
2010-08-06SCI: adding patch for lsl6 issueMartin Kiewitz
fixes crashing when dieing at least in german lsl6, caused by temp memory space corruption. Also happened in sierra sci. svn-id: r51807
2010-08-06SCI: Added support for scripts that have more than one export table. Fixes ↵Filippos Karapetis
bug #3039785 - "Conquests of Camelot: Crash in Glastonbury Tor" svn-id: r51805
2010-08-06SCI: adjusting patch to write 0 instead of 1Martin Kiewitz
patch still worked, but 0 was meant to be there thx to lskovlun to point this out svn-id: r51796
2010-08-06SCI: adding script patchingMartin Kiewitz
including a patch for hoyle 4 and commenting out the workaround code inside kDisposeWindow svn-id: r51795
2010-08-06SCI: fix warningsMartin Kiewitz
svn-id: r51788
2010-08-06SCI: some work on the script patcherMartin Kiewitz
signature matching is working (added hoyle 4 signature) svn-id: r51787
2010-07-29SCI: Removed the language check from the Filippos Karapetis
KQ5 workaround, as there could be an issue with other non-English versions, too (e.g. the Spanish floppy version) svn-id: r51472
2010-07-29Extended the workaround for KQ5 French floppy for the German floppy too. ↵Filippos Karapetis
Fixes bug #3035396 - "KQ5: Crash when start the game" svn-id: r51471
2010-07-21SCI: fix initializing script 99 of sq3Martin Kiewitz
svn-id: r51097
2010-07-21SCI: adding workaround for sq3Martin Kiewitz
fixing off-by-one error when initializing script 93 svn-id: r51091
2010-07-18SCI: add script number to r51008 changeMartin Kiewitz
svn-id: r51009
2010-07-18SCI: add workaround for script 500 lsl3Martin Kiewitz
svn-id: r51008
2010-06-28SCI: stupid oversight fix r50446, too hot here :PMartin Kiewitz
svn-id: r50447
2010-06-28SCI: fixing valgrind issue in Script::initialiseClasses thx to wjp for ↵Martin Kiewitz
valgrind testing svn-id: r50446
2010-06-28SCI: Move a few remaining Script methods to engine/script.cppMax Horn
svn-id: r50441