81303 Commits

Author SHA1 Message Date
Paul Gilbert
4c15303971 TITANIC: Implement German parser preprocessing 2017-06-22 20:52:39 -04:00
Paul Gilbert
ef52dc283f TITANIC: Fix German strings array size in getSuffixedWord 2017-06-22 19:06:58 -04:00
Paul Gilbert
007776ba16 TITANIC: Add German handling to getSuffixedWord 2017-06-22 06:48:23 -04:00
Paul Gilbert
0f084fb703 TITANIC: Fix getting Titania's eye from light fixture 2017-06-21 21:50:27 -04:00
Paul Gilbert
69c74685c3 TITANIC: Renamings for room flags sublevel methods 2017-06-21 19:48:03 -04:00
Paul Gilbert
44f0a19062 TITANIC: Fix 2nd class room flags calculation 2017-06-21 19:37:14 -04:00
Paul Gilbert
deab63fbdd TITANIC: Fix resetting _movieRoom when changing views 2017-06-20 21:55:52 -04:00
Paul Gilbert
c9b5c524ca TITANIC: Show GUI error dialog if titanic.dat is missing 2017-06-20 19:52:11 -04:00
Thierry Crozat
4a22c085b9 I18N: Update translations templates 2017-06-20 22:32:48 +02:00
Ivan Lukyanov
c8643d7df4 I18N: Update translation (Russian)
Currently translated at 99.0% (948 of 957 strings)
2017-06-20 22:32:41 +02:00
Ivan Lukyanov
a914c305b8 I18N: Update translation (Belarusian)
Currently translated at 95.4% (913 of 957 strings)
2017-06-20 22:32:41 +02:00
Thierry Crozat
3213c426a5 GUI: Separate bevel and shadow effect when extending widget rect
When widget::draw() is called it asks the ThemeEngine to redraw the background
first and then the widget gets redrawn in drawWidget(). The ThemeEngine uses
an extended rect to restore the background to include bevel and shadow effects.
However if this extended rect overlaps with other widgets, since those other
widgets are not redrawn, a part of those will be missing. See for example
bug #6394: GUI: List View save page drawns over font.

In case we get overlap we might need to change the way widgets are drawn so
that all widgets intersecting the area where the backgroud is restored are
redrawn. This commit simply seperate the bevel and shadow effects, and uses
the shadow offset only to extend the bottom and right sides of the rectangle
(while the bevel offset is still used to extend all four sides). This
results in a smaller extended rectangle (if the shadow offset is bigger than
the bevel offset, which is the case of the list view) and thus decrease the
risk of the issue happening. The particular cases described in bug #6394
are all fixed with this change.
2017-06-20 19:36:56 +01:00
Paul Gilbert
9f055d4ba1 TITANIC: Set SGT TV Magazine announcement to use speech sound type 2017-06-19 21:53:34 -04:00
Colin Snover
a3824d0f39 SCI32: Create Torin-specific save game count limitation remover
Fixes Trac#9840.
2017-06-19 20:45:43 -05:00
Paul Gilbert
5a512c1c2c TITANIC: Fix exiting elevator 3 on floor 28 2017-06-19 21:14:28 -04:00
Colin Snover
dcc4a1bc67 SCI32: Add workaround for invalid kFrameOut call in PQ4
Fixes Trac#9848.
2017-06-19 19:56:48 -05:00
Colin Snover
71e2f9d6fb SCI32: Add workaround for uninitialised read in PQ4
Fixes Trac#9847.
2017-06-19 19:56:48 -05:00
Colin Snover
5d04679124 SCI32: Add workaround for invalid kPalVarySetStart call in PQ4
Fixes Trac#9845.
2017-06-19 19:56:48 -05:00
Paul Gilbert
6ccbdf78e5 TITANIC: Fix Bellbot walking off during checkin 2017-06-19 20:43:50 -04:00
Paul Gilbert
ec4550fae5 TITANIC: Fix NPC data copying/clearing in copyData 2017-06-19 18:59:57 -04:00
Thierry Crozat
64c82e7e0e I18N: Regenerate translations data file 2017-06-19 05:05:03 +02:00
Thierry Crozat
a08378a41d I18N: Update translations templates 2017-06-19 04:43:38 +02:00
Colin Snover
02a7f331b1 SCI32: Remove Windows platform from GK1 German
This entry was added by a batch change operation in
f7a72c897a9657320ccd6a32873b364f77412e98, but the German version
of GK1 does not support Windows.
2017-06-18 21:42:59 -05:00
Colin Snover
f3c452c31e SCI32: Forward OLDDPCM8 parameter instead of using an if-else
Thanks @OmerMor for pointing out this improvement.
2017-06-18 21:42:59 -05:00
Colin Snover
87895b97f7 SCI: Fix looping of sounds that are not initialized yet
This fixes at least the character selection screen in QFG4CD,
where the sound for the torches is supposed to loop, but wasn't
because kDoSoundSetLoop would bail out before setting the loop
property on the soundObj.
2017-06-18 21:42:58 -05:00
Colin Snover
d556dcc57b SCI: Switch SCI2 games to use Audio32
Upon investigation of Sound code across SCI32 games, it was
determined that there are actually (at least) 3 different
revisions, not just a single SCI2.1 version. This patch only
changes the parts of Sound code that are relevant to the correct
use of Audio32.

Fixes Trac#9736, Trac#9756, Trac#9767, Trac#9791.
2017-06-18 21:42:58 -05:00
Colin Snover
733eaeb499 SCI32: Minor tweaks to improve code clarity & consistency 2017-06-18 21:42:58 -05:00
Colin Snover
dc9522eae0 SCI32: Fix Audio32 mix volumes
The previous code for attenuating audio channels was not accurate,
so samples were quieter than they were supposed to be when mixed
together. Robots were also being mixed without attenuation, which
was incorrect.
2017-06-18 21:41:48 -05:00
Paul Gilbert
eb68a94527 TITANIC: Fix empty holes appearing in room transition videos 2017-06-18 22:09:24 -04:00
Paul Gilbert
f3c7aa9774 DEVTOOLS: Fix incorrect argc checks in create_titanic 2017-06-18 20:38:58 -04:00
Paul Gilbert
c92e1ec0f4 TITANIC: Fix tearing/incorrect blocks in starship crash cutscene 2017-06-18 20:29:40 -04:00
Paul Gilbert
fd51315dd0 DEVTOOLS: Yet another Superst correction in create_titanic 2017-06-18 17:14:24 -04:00
Paul Gilbert
7c654278a7 DEVTOOLS: Further minor German fixes to create_titanic, thanks to Lightkey 2017-06-18 17:09:41 -04:00
Paul Gilbert
44336945c7 DEVTOOLS: Further minor German fixes to create_titanic, thanks to Lightkey 2017-06-18 17:01:40 -04:00
Paul Gilbert
f827e27bfb TITANIC: Fix crash clicking mouse when copyright dialog is showing 2017-06-18 15:49:19 -04:00
Paul Gilbert
ec9351bdb6 DEVTOOLS: Added extra German NPC data to create_titanic 2017-06-18 10:59:38 -04:00
Paul Gilbert
3d932e4b89 TITANIC: Change of resource names from titanic.dat 2017-06-17 18:29:24 -04:00
Paul Gilbert
2cdb81482c DEVTOOLS: Add extra German EXE resources to create_titanic 2017-06-17 18:27:24 -04:00
Thierry Crozat
cc35a79301 COMPOSER: Use Magic Tales prefix for two more game names
This is done for consistency so that all the games in the Magic Tales
series are named in a consistent way. This is also how they are named
on the wiki (and on amazon).
2017-06-17 22:52:59 +01:00
Paul Gilbert
21f30b83d2 DEVTOOLS: Added Bellbot common phrases to create_titanic 2017-06-17 17:41:45 -04:00
Paul Gilbert
a1b4b017f8 TITANIC: Further fix for tracking total play time 2017-06-17 16:43:44 -04:00
Paul Gilbert
d7ba14cca8 TITANIC: Fix missing transition in ship crash cutscene 2017-06-17 16:04:37 -04:00
Colin Snover
832cd25ef1 SCI32: Avoid out-of-bounds read of pixel data in kIsOnMe
Fixes Trac#9761, Trac#9844, Trac#9850, Trac#9851.
2017-06-17 14:35:42 -05:00
Colin Snover
0d63d2a7ad VIDEO: Wrap out-of-range VMD audio samples instead of clipping
The 16-bit DPCM decompressors in SSCI and Urban Runner use a 16-bit
register to store sample data, without any special handling of
overflow. As such, out-of-range samples simply wrap around, rather
than getting clipped.

It is not totally clear if the wrapping behaviour was intentionally
exploited to handle extreme transients, but in any case, videos
like GK2 5280.VMD that generate samples outside the signed 16-bit
range cause a loud pop when using clipping, but play back correctly
when wrapping.
2017-06-17 13:09:27 -05:00
Colin Snover
12afcaec49 SCI32: Support old-format 8-bit DPCM coding for SCI2 2017-06-17 13:09:27 -05:00
Colin Snover
e69507cc28 SCI32: Implement engine-accurate DPCM overflow behaviour
DPCM decompression algorithms in SSCI operate directly on 8- and
16-bit registers, so any sample that ends up being out-of-range
during decompression gets wrapped by the CPU, not clipped.

This does not fix any known problem with AUD files, but there are
some VMDs (e.g. GK2 5280.VMD) which are known to contain OOR
samples. Making this code more accurate should prevent trouble
with any other similar files.
2017-06-17 13:09:27 -05:00
Colin Snover
7334f33a3d SCI: State SCI version in error if kernel subop detection fails 2017-06-17 13:09:27 -05:00
Paul Gilbert
9dbd9c567e TITANIC: Fix maintaining total playtime for savegames 2017-06-17 13:39:13 -04:00
Paul Gilbert
9b09900a07 TITANIC: Minor cleanups, comments, and feature flags to meta engine 2017-06-17 13:15:23 -04:00
Paul Gilbert
99eba44150 DEVTOOLS: Added German MissiveOMat data to create_titanic 2017-06-17 10:03:52 -04:00