Commit Graph
86814 Commits
Author SHA1 Message Date
Willem Jan Palenstijn 078e3b43be GUI: Fix crash after empty debugger command 2017-09-29 18:11:10 +02:00
Paul Gilbert 74f69ef400 DEVTOOLS: Added German bot word lists to create_titanic 2017-09-29 07:33:46 -04:00
Martin Kiewitz 6f163b9325 SCI: Add script patch for QfG2 Jackalmen Oops - bug #10218
Was a game bug, finally fixed.
This was a combined effort of wjp and myself. Thanks to wjp.
We both don't own QfG2 1.000 atm, so we could not try it for that
version.
2017-09-28 23:51:35 +02:00
Thierry Crozat c8e7a59d6f I18N: Update translations templates 2017-09-28 21:59:03 +02:00
Colin Snover f570e4b351 SCI32: Disable change directory button in original save/load in RAMA 2017-09-28 14:58:18 -05:00
Colin Snover 7de9c1682b SCI32: Allow save games to be deleted from original save/restore in RAMA 2017-09-28 14:58:18 -05:00
Colin Snover c81348e3fe SCI32: Block RAMA from creating PREF.DAT file
This file normally stores brightness, music volume, and most
recently used save game directory. Since we store the music volume
ourselves and don't use the save game directory, the only
potentially useful information is the brightness level, and that
is fine to just restore from the save games.
2017-09-28 14:58:18 -05:00
Colin Snover 81d6706cf4 SCI: Remove resolved TODO 2017-09-28 14:58:17 -05:00
Colin Snover cd6130cdd6 SCI32: Add audio volume sync support for RAMA 2017-09-28 14:58:17 -05:00
Colin Snover 1351189575 SCI: Add SQ3 1.0P 720K to detection table
Fixes Trac#10245.
2017-09-27 21:40:45 -05:00
Paul Gilbert e047bc1479 DEVTOOLS: Added German tag mappings to create_titanic 2017-09-27 22:20:18 -04:00
Colin Snover a4eb6a5ca5 SCI: Remove old SCI32 view scaling code from SCI16 graphics code 2017-09-27 20:27:34 -05:00
Colin Snover 7a41b6f023 SCI: Add support for keyup events
Basic keyup event support appears to have been added in the SCI1.1
IBM keyboard driver, and more robust support was provided in SCI32
which actually gets used by at least Lighthouse. This patch adds
support for keyup events in SCI1.1+.

Fixes Trac#10242.
2017-09-27 20:27:34 -05:00
Colin Snover 4bd31dae9b SCI: Fix use-after-free when kernel call debugging is active during a save game restore 2017-09-27 20:27:33 -05:00
Colin Snover 9a8070da3c SCI: Do some clean-up of event handling system
Convert macros and vars to enums, rename keyboard events in
preparation for adding key up events, clean up unnecessary nested
conditionals, add TODOs for potential future work.
2017-09-27 20:27:33 -05:00
David Fioramonti c88d5519c2 SCI: Add uninitialized read workaround for shoplifting in SQ4CD
When in Galaxy Galleria, going into the software store and trying
to shoplift the SQ4 Hintbook will crash the game after you leave
and are electrocuted.

Fixes Trac#10229. Closes gh-1031.
2017-09-27 20:27:33 -05:00
Colin Snover 7feccaaa98 SCI32: Implement SCI3-variant volume handling
Trying to find differences in Lighthouse's audio sample playback,
I discovered that SCI3 had its own variant of handling volumes and
sending this volume information back to game scripts. It is not
known if this fixes any sound bug.
2017-09-27 20:27:33 -05:00
Paul Gilbert b98d44ca0b TITANIC: DE: Changes for DoorbotScript::chooseResponse 2017-09-27 21:24:42 -04:00
Paul Gilbert 4a0a3c121f TITANIC: Fix leak of wave file audio streams 2017-09-27 21:11:32 -04:00
Colin Snover 9e0f23aabb SCI32: Fix backwards palette check 2017-09-27 12:02:01 -05:00
Paul Gilbert c86e7e4f3f TITANIC: Fix memory leak in CStarView 2017-09-27 07:40:28 -04:00
Paul Gilbert a6cba7b6ba DEVTOOLS: Added German bot response lists to create_titanic 2017-09-26 22:37:03 -04:00
Paul Gilbert a65a0c4768 TITANIC: DE: Fix switch in DeskbotScript::doSentenceEntry 2017-09-26 21:08:06 -04:00
Paul Gilbert bd388fed62 TITANIC: Convert some remaining strings to use their titanic.dat entries 2017-09-26 20:41:35 -04:00
Paul Gilbert 82d69c6075 TITANIC: Fix exit crash freeing wave files whilst still playing 2017-09-26 20:39:02 -04:00
Paul Gilbert c92e41052f TITANIC: Add missing CSound destructor 2017-09-26 20:32:58 -04:00
Paul Gilbert 4927369987 TITANIC: Fix loop limit in TTsentenceConcept destructor 2017-09-25 21:25:26 -04:00
Paul Gilbert c188fd9130 TITANIC: Add missing destructor for TTsentenceConcept 2017-09-25 20:45:27 -04:00
Paul Gilbert 90636b367e TITANIC: Free wave files on game exit like original does 2017-09-25 19:41:46 -04:00
Colin Snover ba380ac28e SCI32: Dummy kPlayVMDSetFrameRate
This subop is used only by RAMA.

The VMD objects in RAMA's game code contain a frame rate field,
which is usually -1, but occasionally is not. In the cases where
it is not -1, it appears to be either set for a video with sound
(so the value doesn't do anything to that video), or it is just
resetting back to the baked-in frame rate of the video file (so
it doesn't need to exist, except to fix videos broken by earlier
played videos with explicit frame rates).

Since this is a global state flag that does not get reset in SSCI,
the ultimate effect of kPlayVMDSetFrameRate in RAMA is that it does
nothing to any of the videos where the explicit frame rate is set,
but it does inadvertently cause *other* videos with no sound and no
explicit frame rate to have a different frame rate depending upon
what was played earlier in the game (and whether or not the engine
was restarted in the meantime).

This bad transferring of frame rates is most noticeable with the
exit-video of the vidmail player, which is played when you back out
after selecting a vidmail. Its nominal framerate is 10fps, but it
will play at whatever frame rate was last set by some other video
that happened to have an explicit frame rate, even if that frame
rate was bogus.

So, just ignore all calls to this subop, as it is fatally buggy.
2017-09-24 23:49:37 -05:00
Thierry Crozat ceb987c5f2 I18N: Update translations templates 2017-09-25 06:04:31 +02:00
Colin Snover 24c8a26c75 SCI32: Remove unnecessary negative assertion check on unsigned integer
Fixes CID 1381416.
2017-09-24 22:56:59 -05:00
Colin Snover 743082ac8c SCI32: Disable all SCI32 Mac code
This code is currently untestable and is almost certainly at least
partly based on guesswork & not actual reverse-engineering (as was
the case for all other pre-2015 SCI32 code), so future developers
interested in adding SCI32 Mac support should use it only as an
intermediate reference rather than as known good code.
2017-09-24 22:56:59 -05:00
Colin Snover 5bb3ca5a6b SCI32: Fix bad cursor outlines in RAMA 2017-09-24 22:56:58 -05:00
Colin Snover 76806732e0 SCI: Remove Mac SCI32 code from SCI16 code 2017-09-24 22:56:58 -05:00
Colin Snover d935ea80c3 SCI32: Correct RAMA detection table entries
There seems to be no difference between DOS and Windows versions
of the game from what I could see in the game code (it checks
platform but only seems to just set a global which is never used),
and from what I could tell online they are all DOS/Windows hybrids,
so just simplify life and make them all DOS platform versions.
2017-09-24 22:56:58 -05:00
Colin Snover 663d845d63 SCI32: Add workarounds for uninitialized reads in RAMA 2017-09-24 22:56:58 -05:00
Colin Snover 3e107c1eb0 SCI32: Allow invalid references to be passed to kFileIO
Near the end of the game, RAMA will start trying to store some
invalid references. This does not affect the save game negatively
in any way, but it was causing the kernel to assert a signature
failure.
2017-09-24 22:56:58 -05:00
Colin Snover f42480d7cd SCI32: Support palette-inverting SCI3 variant of kPalVary
This is used by RAMA in room 6201, after eating the alien fruit.
2017-09-24 22:56:58 -05:00
Colin Snover 817887216d SCI32: Fix RAMA auto-save game
Despite what game script disassembly lead me to believe, the game
seems to create only one auto-save, which ends up being saved as
911.sg (not autorama.sg). This save file is created just before
entering the underground Avian Lair in New York, and seems to be
designed as some emergency backup since entering the Avian Lair is
a one-way trip.
2017-09-24 22:56:58 -05:00
Colin Snover 21337e4cf6 SCI32: Implement per-channel audio panning
Used by RAMA, in various places, starting with the refrigerator
at base camp after the cable car at the beginning of the game.
2017-09-24 22:56:57 -05:00
Martin Kiewitz d9dfca2fcb SCI: SQ4: Now using additional and enhanced Win3.11 samples
Which were originally only played, when using the Windows interpreter.
Afaik the DOS interpreter was incapable of playing more than 1
sample at a time, which was probably the reason why Sierra only
added these for the Windows interpreter.

For example a sample is now played, when points are awarded.

Those samples are currently used all the time and will also
enhance the game, when platform DOS is chosen.
In case someone wishes to opt-out of this, we could add a game
specific option.

We do something like this for Space Quest 3 already,
that's why I don't see a reason to add a game option right now.
2017-09-25 00:44:04 +02:00
Colin Snover 53dd55ebf2 SCI32: Fix bad palettes in Lighthouse when HQ video is enabled
In a couple of places, Lighthouse updates the renderer with screen
items for the next room before the room transition video plays.
This is normally fine when using the compositing video renderer
because the videos are drawn into new planes which occlude the
screen items, so the screen items are culled from the draw list
and do not submit their palettes. However, when in HQ video mode,
we currently force the overlay renderer, which was not blocking
screen items before forcing a frameOut, so the screen items'
palettes got submitted prematurely in this case and caused bad
rendering after the video finished playback.

Now, if we are forcing into the overlay code path, we still create
a blank plane behind the overlay before the forced frameOut in
order to correctly occlude screen items and keep them from
participating in rendering before they normally would.

Fixes Trac#10233, Trac#10235.
2017-09-24 16:22:40 -05:00
Colin Snover 56cc138e58 IMAGE: Remove unnecessary heap allocation in BitmapRawDecoder 2017-09-24 16:22:40 -05:00
Paul Gilbert f806b95eda TITANIC: DE: Properly implement CArboretumGate changes 2017-09-24 14:33:54 -04:00
Paul Gilbert 65811506f8 TITANIC: Don't launch further bot speeches when exiting game
Previously, notifying bots to the end of a speech fragment was
done in ~TTtalker. Which caused problems when in progress talkers
were freed when exiting the game with a speech was in progress,
since it would try to start the next following speech fragment.
2017-09-24 14:09:24 -04:00
Martin Kiewitz 26183f7289 SCI: Add SQ4CD script patch to add audio for universal remote control
for Hk So Good store catalog.
Implements enhancement #10227
2017-09-24 19:00:12 +02:00
Paul Gilbert 5ab826f135 TITANIC: Add some guards against using the game manager during game exit 2017-09-24 12:46:32 -04:00
Paul Gilbert a6026fc1fc TITANIC: Fix crash if you exit the game whilst a bot is talking 2017-09-24 12:39:39 -04:00
Paul Gilbert d9eebaf787 TITANIC: Fix leak of vocab synonyms on exit 2017-09-24 12:26:43 -04:00