Commit Graph
689 Commits
Author SHA1 Message Date
sluicebox 50fec97f8a SCI32: Fix LSL6HIRES phone crash
Fixes bug #13554
2022-06-08 09:03:39 -04:00
sluicebox 9558095053 SCI: Remove trailing array commas 2022-06-06 17:55:50 -04:00
sluicebox a100e03663 SCI: Fix SQ4 Skate-O-Rama chase timing
- Skate-O-Rama (CD version) can now be completed at all game speeds.
- Removed the extra speed throttling on Skate-O-Rama. Floppy doesn't
  have the timing bugs and now both versions run at normal speeds.
- Fixed the coordinate bug that made the west exit impossible at
  certain game speeds.

Bugs #5514 and #11038
2022-06-06 17:30:47 -04:00
sluicebox ea48986006 SCI: Disable speed tests with script patches
Disables SCI16 speed tests with generic script patches.

- All games now pass their speed tests, and consistently.
- Handles games/versions that the benchmarking heuristic misses.
- Fixes bug #13529 (speed test overflow on fast CPUs) on all games.
- Replaces most game-specific patches.

I've left the benchmarking heuristic so that any game or version that
still needs patching will still be handled with unthrottling.
2022-06-06 17:20:58 -04:00
sluicebox 3c3ed549f1 SCI: Disable JONES speed test
Fixes bug #13529
2022-06-03 12:00:58 -04:00
sluicebox dffe39a91c SCI: Disable LSL2 speed test 2022-05-28 03:49:45 -04:00
sluicebox 5b3adb4407 SCI: Fix some script patch typos 2022-05-27 02:38:47 -04:00
sluicebox 1c2e1bc54f SCI32: Fix LSL6HIRES delay when guard presses button
Fixes bug #13501
2022-05-27 02:07:37 -04:00
sluicebox 6e743a97ef SCI: Fix QFG3 event bugs at the Laibon's hut
Fixes some well known deadend bugs in the original game:
- Not being able to give the Laibon the horn
- Not being able to enter the Laibon's hut

Bug #11425
2022-05-24 17:05:27 -04:00
sluicebox f45a5eff90 SCI: Fix QFG3 ring rope uninit read with script patch
Restores original behavior. The workaround caused the player to
always win and receive points even if they lost.
2022-05-24 16:57:45 -04:00
Filippos Karapetis 34007cb7c2 SCI: Clean up script patches for Hoyle Bridge and Children's Collection
For Hoyle Bridge, we jump directly to the Bridge screen, and it's not
possible to go back to the game selection screen, so we don't need
patches for that version.
For Children's Collection, we now use enablePatch(), which results in
cleaner code.
2022-05-22 19:37:51 +03:00
sluicebox 5e03f7a688 SCI: Fix LONGBOW Amiga when saving peasant woman 2022-05-14 19:57:37 -04:00
sluicebox 0d16892c1d SCI32: Fix GK2 lockups when music volume is turned off
Fixes a bug in the original that locks up many scenes and room
transitions if the music volume slider is lowered all the way
2022-05-12 14:59:53 -04:00
sluicebox 5fa0168e88 SCI32: Fix KQ7 wooden nickel hotspot in Faux Shop 2022-05-09 12:31:04 -04:00
sluicebox 2029c31e2b SCI: Fix QFG3 dropped events during vendor barter
Fixes bug #11422

Thanks to @lwcorp for reporting this
2022-04-27 01:33:19 -04:00
sluicebox 37b90c0ca4 SCI: Fix FPFP Mac easter egg view placement 2022-04-16 13:29:59 -04:00
Filippos Karapetis ec16ebbf96 Revert "SCUMM: Refactor the workaround for the broken sample in Indy4"
This reverts commit c59df76164.
2022-04-16 14:25:51 +03:00
Filippos Karapetis c59df76164 SCUMM: Refactor the workaround for the broken sample in Indy4
This makes the workaround code more self-contained
2022-04-16 14:23:02 +03:00
sluicebox 2c912be553 SCI32: Fix RAMA Demo crash when clicking on controls
Fixes bug #10344
2022-04-09 22:42:56 -04:00
sluicebox 4035e20b11 SCI: Fix SQ3 navigation message not displaying
Fixes bug #13114
2022-04-08 22:57:29 -04:00
sluicebox 437c80e382 SCI: Add delay between LSL2 lottery ticket messages
Thanks to @eriktorbjorn for noticing this
2022-04-08 22:56:39 -04:00
sluicebox 6abb9c6061 SCI: kScummVMSleep is now available in SCI16 2022-04-08 22:42:04 -04:00
sluicebox 0d4771c838 SCI32: Fix LSL6 oil lamp lockup when missing PATCHES
Bug #10484
2022-03-29 09:31:40 -04:00
sluicebox 9afafb700c SCI: Fix SQ4 CD speed throttle in laser hallway
Thanks to AdmiralJay for reporting this!
2022-03-20 17:08:38 -04:00
sluicebox 3ac7b9c67c SCI: Fix SQ4 CD laser beam messages 2022-03-18 20:25:33 -04:00
sluicebox 45c5cf6639 SCI: Fix KQ5 PC-98 Japanese bandit's campfire 2022-03-12 16:45:01 -05:00
sluicebox 13fbaf794c SCI32: Fix QFG4 crashes when pressing direction keys
Now that we correctly pass direction key events to QFG4,
we need to patch the script bugs that they trigger.
These crashes also occur in the original game.

See: 1b4660a508
2022-03-07 17:06:17 -05:00
sluicebox e1c749adc6 SCI: Update SQ1VGA script patch notes 2022-03-03 22:26:09 -05:00
sluicebox cd16390198 SCI: Fix SQ3 ScumSoft announcements never appearing
Fixes bug #13318

Thanks to @Doomlazer for reporting this!
2022-03-02 01:15:43 -05:00
sluicebox e0a7df681d SCI32: Fix LSL7 Peggy crash in Russian version
Fixes bug #13209
2022-01-13 19:35:48 -05:00
sluicebox 4e865e945e SCI: Fix build when SCI32 is disabled. again. 2022-01-09 21:31:22 -05:00
sluicebox 87afecfe13 SCI: Fix QFG1 death message when picking safe 2022-01-09 14:19:25 -05:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
sluicebox f0e7fb8a7a SCI32: Fix LIGHTHOUSE compass-in-submarine error 2021-12-18 21:53:45 -05:00
sluicebox 5063bc2288 SCI: Fix PQ3 lockup when showing judge evidence 2021-12-16 21:31:19 -05:00
sluicebox 0f54e7d358 SCI: Fix SQ3 end credits in version 1.0P 2021-12-09 00:22:42 -07:00
Orgad Shaneh 940c7bfc14 SCI: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
sluicebox e57a0adf57 SCI: Fix KQ6 Mac inconsistent timing in opening movie 2021-11-13 04:07:55 -06:00
Orgad Shaneh 3919f53326 ENGINES: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
sluicebox cc714bd292 SCI: Only throttle kGameIsRestarting from game loops
Prevents extra speed throttling from being applied when a script queries
the restart flag. Some rooms such as the KQ6 caves and the QFG4 caves do
this on every game cycle. In practice, this extra throttling didn't seem
to have much effect, but the intent is to only throttle game loops and
the script patches that fix inner loops.

Updated script patches to call kGameIsRestarting like game loops.
2021-10-30 13:19:09 -05:00
sluicebox 72bdc5eab0 SCI: Fix HOYLE4 Gin Rummy undercut sound 2021-10-29 14:50:51 -05:00
sluicebox dc70198c28 SCI32: Fix QFG4 upgraded inventory views
Fixes script bugs where items are upgraded but their graphics aren't
2021-10-29 03:51:31 -05:00
sluicebox 27195a1b0a SCI32: Fix GK2 "bad" cursor not appearing 2021-10-19 08:43:45 -05:00
sluicebox ff11be91c3 SCI32; Improve KQ7 cursor script patch
Removes a jump to an unverified offset
2021-10-19 08:40:33 -05:00
sluicebox 388f3a02ef SCI32: Create kScummVMSleep for script patches
We have several SCI32 script patches that replace kGetTime spin loops
with calls to kWait for the intended delay. This prevents blocking
the main thread and allows ScummVM to be responsive and update the
screen. But kWait isn't a simple sleep, it's a throttling function,
and the duration that it sleeps (if any) is determined by the time
since it was last called. kWait was only in SCI16 interpreters so it
had to be restored to SCI32 and this required a further workaround
for Phant2 compatibility.

Now we have a dedicated custom kernel function, kScummVMSleep, which
does a simple sleep so that SCI32 script patch delays are consistent
and the Phant2 workaround isn't needed. This approach is similar to
kScummVMSaveLoad.
2021-10-19 08:40:33 -05:00
sluicebox 6ef5aaec6e SCI: Fix QFG3 crash when angering the guardian
Fixes bug #12968

Unrelated to bd992479b3
2021-09-29 04:45:30 -05:00
sluicebox 4be3f914b2 SCI: Replace QFG1VGA fetch workaround with script patch
Spell animation now travels towards the intended plant as in the
original, and also fixes Mac version
2021-09-09 12:39:17 -05:00
Filippos Karapetis df062c6baa SCI32: Fix game options crash in non-English PQ4 versions - bug #12901
Only enable the speech+subs toggle in the English version of PQ4.
French and German versions feature localized text with English voices.
Also, our injected speech+subtitles view is currently only in English.
2021-09-08 22:45:42 +03:00
sluicebox 21b6ea143f SCI32: Delete Mother Goose Banbury Cross script patch
This script patch caused the bug it claimed to fix.

It appears that during SCI32 development in 2017, a bug sent the horse
at Banbury Cross on an incorrect path behind the fountain instead of in
front of it. This would have looked glitchy since the horse has a higher
priority than the fountain. But this was misdiagnosed as a priority bug,
even though the original doesn't have any problems, and the script was
patched to set the horse to a lower priority. The real ScummVM bug was
fixed some time later, and ever since the horse has taken the correct
path and looked glitchy due to the patch setting the wrong priority.
2021-09-07 14:57:23 -05:00
sluicebox 46771958fa SCI: Fix SQ5 cursor when pressing Tab for inventory
Fixes bug #11619
2021-08-25 03:30:34 -05:00