Commit Graph
762 Commits
Author SHA1 Message Date
sluicebox d2efce1c64 SCI: Fix LSL5 TPrint script patch
The patch altered the frame size of a call instruction, but I failed
to update the matching argument count on the stack.

This caused Print to receive an incorrect argc and crash the
gymnastics scene in room 920.

See: 4a40ac92ea

Fixes bug #14791

Thanks to @EricTSten for reporting this
2024-01-02 00:17:23 -08:00
sluicebox a26252fadf SCI: Fix PQ3 wrong ending 2023-12-21 13:19:42 -08:00
sluicebox 9a9a13605f SCI: Fix SQ1VGA buckazoid inventory crash
Big thank you to @codengine for discovering this script bug, performing
the script analysis, and developing the initial script patch.
2023-12-14 16:26:00 -08:00
sluicebox 6ee2a62779 SCI: Fix BRAIN2 art puzzle lockup
Fixes bug #14543
2023-12-12 21:55:06 -08:00
sluicebox b7522b2bb9 SCI: Fix BRAIN2 crash in robot maze
Fixes bug #14556

Thanks to @eriktorbjorn for finding this
2023-12-12 12:05:19 -08:00
sluicebox c59521f979 SCI32: Fix PHANT1 crash when leaving Harriet in the barn
Thanks to speedrunner @hitmarty for discovering this.

Thanks to @deckarep for the recent `errorString` feature that
helped diagnose this script bug from a screenshot.
2023-11-13 12:59:36 -08:00
sluicebox c241f21baa SCI: Reduce scope of variables 2023-11-03 15:12:40 -07:00
sluicebox d2b85bf473 SCI32: Update HOYLE5 Solitaire workarounds for Mac 2023-09-17 15:34:21 -07:00
sluicebox 49da510f80 SCI32: Fix PHANT1 dragon passage lockup
Fixes bug #14568

Thanks to @DustyShinigami for reporting this
2023-09-17 15:34:19 -07:00
sluicebox 2c7803d711 SCI32: Fix SQ6 trash can priority 2023-07-28 14:05:24 -07:00
sluicebox f16f8c792f SCI32: Fix SQ6 demo inventory crash
Fixes bug #14547
2023-07-18 11:46:38 -07:00
sluicebox 6a83bcbd95 SCI32: Fix SQ6 broken walk icon
Fixes bug #14537

Thanks to @Twixxi691 for reporting this
2023-07-15 12:18:25 -07:00
sluicebox 7cee0a5480 SCI: Update speed test overflow fix for more versions 2023-07-13 16:34:37 -07:00
sluicebox ddb0ef1de5 SCI: Fix overflow in SCI0 speed test script
Fixes a long delay on a black screen at the end of KQ4 introduction.

Thanks to @eriktorbjorn for reporting and reproducing this
2023-07-13 14:56:24 -07:00
sluicebox 0243c1f775 SCI: Update LSL5 palette animation patch 2023-07-12 21:57:00 -07:00
Torbjörn Andersson 636e2d341d SCI: Speed up the palette animation for Mr. Bigg's closeup in LSL5
This happens during the first meeting in the LSL5 intro. There is no
consensus on how fast this animation should run, but ScummVM runs it
extremely slow, possibly due to speed throttling. This speeds it up
by updating the animation ever 6th time the doit script is run,
rather than the original every 32nd time.
2023-07-12 21:57:00 -07:00
sluicebox 811033288e SCI32: Add compatibility with GK1 CD Italian fan translation
Fixes errors when displaying text and using the Walkman.
2023-05-24 13:49:50 -07:00
sluicebox 036c390478 SCI: Update LSL1 elevator polygon patch
The patch is now only applied to versions with the script bug
2023-04-28 13:39:32 -07:00
sluicebox 0c91983ee9 SCI: Update QFG2 patch notes for saurus freeze
I confirmed that the potential conflict identified in the notes
is not an issue, but added an alternate approach if needed.
2023-04-26 10:13:45 -07:00
sluicebox 6fe44fcbbf SCI: Update ECO1 stayAndHelp script patch
Simplifies the patch
2023-04-24 16:38:15 -07:00
sluicebox 9b6d2314dc SCI: Fix QFG2 visa crash 2023-04-24 15:41:30 -07:00
sluicebox 88242bc57e SCI: Fix LB2 dinosaur bone verb handler 2023-04-08 15:41:24 -07:00
sluicebox 591d2a801e SCI32: Fix PHANT1 basement fast-forward lockup
Fixes bug #14368
2023-04-05 16:07:59 -07:00
sluicebox 2f5b5b4e28 SCI32: Show all PHANT1 saves on delete screen
Fixes a script bug that crashes when all 10 saves are in
the chapter 7 chase, and makes saves easier to manage.

Fixes bug #14361

Thanks to @darkshoxx for reporting this!
2023-03-25 19:55:10 -07:00
sluicebox 238acfebfe SCI: Fix LSL5 warnings when printing messages 2023-03-20 11:58:28 -07:00
sluicebox c7743b3422 SCI: Fix LSL5 Hollywood sign 2023-03-20 10:58:11 -07:00
sluicebox 67712218bd SCI: Fix LONGBOW emerald lockup 2023-03-12 17:48:06 -07:00
sluicebox 69071f0a28 SCI: Fix LONGBOW crash during pub party 2023-02-22 13:40:43 -08:00
sluicebox 62ca8c9cf1 SCI: Fix KQ5 sinking boat position
Fixes bug #14218
2023-02-20 12:39:31 -08:00
sluicebox 0ffcd593b1 SCI: Fix early KQ4 saves when a dialog is on screen 2023-01-26 21:05:53 -08:00
UrQuan1 431f288742 SCI: Amend CAMELOT script patch description
(cherry picked from commit c9d2fad29d795f038899f12f321d398e7fb98224)
2023-01-24 13:34:06 -08:00
sluicebox dd4a024245 SCI: Fix LONGBOW v1.0 Abbey bugs 2023-01-23 02:00:42 -08:00
sluicebox 89dd781e23 SCI32: Disable speed test in RAMA Demo 2023-01-19 13:50:54 -08:00
sluicebox 51f1d4dc73 SCI: Fix LB2 reporter message 2023-01-10 14:50:51 -08:00
sluicebox 046356c85a SCI: Convert LSL1 polygon workaround to script patch 2023-01-08 17:01:01 -08:00
sluicebox 47fbb31c08 SCI: Disable LSL1 speed test
This was missing from: ea48986006

Fixes bug #14004
2023-01-02 01:16:06 -08:00
sluicebox d10fd9f124 SCI: Revert disabling LB2 control panel in tunnel
These rooms disabled the control panel to prevent the player from
accessing the game's speed setting. Ego is set to a fixed speed and
the timing of the room scripts depend on that speed.

See: 11ca903f60
2022-12-21 12:26:52 -08:00
sluicebox 2c01722f9b SCI: Fix QFG1VGA Sierra logo animation speed
The previous commit fixed inconsistent animation speed in
this room due to our throttling.

This patch fixes slow animation due to Sierra's throttling.
2022-12-21 12:26:51 -08:00
sluicebox ae5db52c2e SCI: Remove speed test detector
This heuristic was originally how all SCI16 speed tests were handled.
It has been gradually replaced with script patches, until all games
were patched in: ea48986006

At the time, I left this in because it had the benefit of speeding up
the SCI11 test variants so that they didn't produce a startup delay.
Now we know that this heuristic has been identifying regular rooms as
speed tests and unthrottling them too, causing unintended effects.
Some of this behavior was masked by fast-cast throttling occurring
everywhere, until: e09010f7d8

For example, the QFG1VGA Sierra logo animation changes speed and runs
very fast as soon as the sparkle is finished. The Longbow map rooms
were also detected as speed test rooms and animated too fast. Cast-less
rooms like LB2's title screen run unthrottled and consume CPU.

There are only a few SCI11 speed test rooms, so now they're explicitly
unthrottled in kGameIsRestarting with the other throttling exceptions.
2022-12-21 12:26:51 -08:00
sluicebox e46767b8f8 SCI: Fix LONGBOW map animation speed
Speed throttling was disabled on LONGBOW maps because they were treated
as speed tests by the heuristic in GfxAnimate::throttleSpeed. This bug
was masked by fast-cast throttling being applied everywhere, but that
was changed in e09010f7d8

Now the map rooms trigger throttling so that they don't run too fast.
But the game scripts also attempt to throttle the animations based on
speed test results, causing them to run too slow, so that's patched out.

Fixes bug #13966
2022-12-14 05:00:42 -08:00
sluicebox 032afca6cb SCI: Fix LB2 CD hands-off cursor 2022-12-09 23:31:17 -08:00
sluicebox 11ca903f60 SCI: Fix LB2 disabled control panel icon
Now that we allow arbitrary saving via the Global Main Menu,
we can remove the buggy restrictions that prevented saving
and restoring
2022-12-09 23:31:16 -08:00
sluicebox 2e7c3e4f7d SCI: Update LB2 Act 5 script patch for wired door
Fixes the remaining edge cases with this buggy door
2022-12-07 16:26:09 -08:00
sluicebox e2d216013d SCI: Fix LB2 Act 5 transom bugs 2022-12-07 16:26:08 -08:00
sluicebox 334191f636 SCI: Add PATCH_GETORIGINALBYTES to script patcher
Script patches often involve moving entire sequences of existing
instructions. Now that can be done with a smaller patch definition.
2022-12-07 16:26:07 -08:00
sluicebox 903498b6dc SCI: Fix LB2 Act 5 broken timers 2022-12-07 16:26:07 -08:00
sluicebox 9641a3608b SCI Fix LB2 Act 5 trigger 2022-12-02 16:11:34 -08:00
sluicebox 60f04d4e7c SCI: Fix LB2 Act 5 timer crash 2022-12-02 16:11:34 -08:00
sluicebox 1c64c0c4c4 SCI: Fix LB2 CD mummy coffin animation glitch 2022-12-02 16:11:33 -08:00
sluicebox b9df07b465 SCI: Fix LB2 Act 5 mummy coffin lockup 2022-12-02 16:11:33 -08:00