6533 Commits

Author SHA1 Message Date
Filippos Karapetis
7379e531c7 Merge pull request #644 from csnover/sci32-kPalCycle
SCI32: palette management (full kPalCycle, partial kSetPalStyleRange and kPalFade)
2016-01-08 10:58:03 +02:00
Colin Snover
275db1f7f2 SCI: Remove unused member property _palCycleToColor 2016-01-07 16:35:09 -06:00
Colin Snover
8a1d48fc03 SCI32: Add kFrameOut stub code 2016-01-07 16:35:09 -06:00
Colin Snover
70d89b3e39 SCI32: Add kSetPalStyleRange stub code 2016-01-07 16:35:09 -06:00
Colin Snover
aeee621e44 SCI32: Add initial support for palette cycling (kPalCycle) and fading (kPalFade)
Graphics palette code was rewritten between SCI1 and SCI2, so
SCI32 palette engine code has been moved to a separate GfxPalette32
class.
2016-01-07 16:35:09 -06:00
Martin Kiewitz
7b1df2174d SCI: fix compatibility issue in kFileIO
Allow 0xFFFF as invalid file handle again for kFileIO calls
Fan game "Dating Pool" opens a non-existant file at the start
and tries to read it, even though it shouldn't do the latter.
The sciAudio adjustments changed our behavior to error() out in
such a case. This commit changes it back to our old behavior to
only print out a warning.
2016-01-05 19:44:45 +01:00
Martin Kiewitz
0b5a09f836 SCI32: fix kString calling from within kArray
(didn't work since the introduction of kString signatures and the
kString split-up)
2016-01-04 14:58:02 +01:00
Martin Kiewitz
453afd7bbc SCI: kGetEvent modifiers bug was fixed in SCI1
- SCI1 EGA QfG2 keyboard driver resets AH

In the original commit I forgot to mention:
- thanks to lskovlun for figuring out that bit 9 is checked/set
- thanks to wjp for checking SCI32
2016-01-03 18:32:25 +01:00
Martin Kiewitz
f9459656f5 SCI: implement kGetEvent modifiers DOS bug
Will fix darts minigame in the fan game "Betrayed Alliance"
This bug in the original interpreter/keyboard driver seems to have
been fixed in SCI32.
2016-01-03 18:09:06 +01:00
Martin Kiewitz
4a63352462 SCI: sciAudio support for .wav + .aiff files 2016-01-03 00:27:42 +01:00
Martin Kiewitz
30b554d694 SCI: sciSound: check compression type 2016-01-03 00:07:05 +01:00
Martin Kiewitz
4892bd8066 SCI: fix sciAudio not doing loops correctly 2016-01-02 22:43:27 +01:00
Martin Kiewitz
9d5ee9cba0 SCI: fix sciAudio support on some platforms
The old code expected sciAudio FOpen calls to fail, because they
contained a directory name. On AmigaOS those calls succeeded.
Because of that at least on AmigaOS, sciAudio support didn't
work at all.

We now detect sciAudio FOpen calls and return a proper virtual file
handle. This should fix it on all platforms.

Also moved the SCI32 virtual save file handle from 200 to 32100.
2016-01-02 21:50:35 +01:00
Ori Avtalion
85fa44c32d JANITORIAL: Remove #includes of list_intern.h 2016-01-02 15:32:38 +02:00
Martin Kiewitz
63b66b23aa SCI32: version detection - don't remove const
don't remove const during cast
2015-12-29 02:35:07 +01:00
Martin Kiewitz
0dd760724e SCI32: split up SCI2.1 into EARLY/MIDDLE/LATE
- Detection works via signatures (couldn't find a better way)
- new kString subcalls were introduced SCI2.1 LATE
- kString now has signatures and is split via subcall table
- kString fix, so that KQ7 doesn't crash, when starting a chapter
- Sci2StringFunctionType removed, because no longer needed
2015-12-29 01:44:11 +01:00
Lars Skovlund
54acbdccc6 SCI: Fix obsolete comment 2015-12-28 10:28:27 +01:00
Lars Skovlund
9a3084d320 SCI: Fix when more than 10 font codes are used 2015-12-28 05:50:26 +01:00
Johannes Schickel
d2d700e086 SCI: Remove superflous default value registration for extra GUI options. 2015-12-28 00:14:11 +01:00
Martin Kiewitz
b0587f6af8 SCI32: add code for torin+sq6 audio+subtitles mode
also add comments about other SCI32 games
set global 90 only for lsl6 sci1.1
2015-12-22 01:53:19 +01:00
Martin Kiewitz
d0d1d6e921 SCI32: add code for kq7 audio+subtitles mode
also enables it for gk1 and qfg4 (CD versions)
2015-12-21 23:25:58 +01:00
Martin Kiewitz
431d33b119 SCI: use diff. PC98 word wrap tables for SCI0/01/1
also added even more comments about details of word wrapping
SCI0 (PQ2) and SCI1 (Brain/KQ5/SQ4) got their own table now
2015-12-14 00:20:56 +01:00
Martin Kiewitz
1161e3e89d SCI: add difference for SCI1 PC-98 word-wrapping
fixes small issue in Castle of Dr. Brain PC-98 Japanese
room 120, when looking at the table
Also added a few comments to Japanese word wrapping code
2015-12-13 22:56:42 +01:00
Martin Kiewitz
f9085aca06 SCI: detection for Castle of Dr. Brain PC-9801 JP
also known as Dr. Brain Puzzle no Shiro
2015-12-13 19:19:40 +01:00
Martin Kiewitz
7e44493fe8 SCI: add another Torin's Passage version
German 1.0
2015-11-11 13:31:20 +01:00
Willem Jan Palenstijn
7f9a2c5c82 SCI: Remove non-ascii character 2015-10-16 16:05:30 +02:00
Martin Kiewitz
d43c593e2e SCI: implement frame skipping for all transitions
should hopefully fix transitions being too slow on some systems
2015-08-02 01:32:26 +02:00
Filippos Karapetis
3a29dfaebf SCI: Fix object init in SCI3 scripts which are larger than 64kb 2015-07-13 01:35:26 +03:00
Martin Kiewitz
5a29797735 SCI: add Japanese Lighthouse SCI3 detection entry 2015-07-10 15:02:20 +02:00
Filippos Karapetis
138ec332d2 SCI: Fix wording for commit fc14641 2015-07-10 14:25:35 +03:00
Filippos Karapetis
fc1464155a SCI: Enable the save game menu option when dying in PQ2 - bug #6875
This uses the same hack as the one used to reset the menus in Jones.
I've tested some more SCI games, and they don't disable menu entries
when loading a game. Hopefully, Jones and PQ2 are the only ones
2015-07-10 14:13:18 +03:00
Walter van Niftrik
56c0238f9b SCI: Delete OPL when init fails 2015-07-07 20:19:48 -04:00
Walter van Niftrik
82f585871b SCI: Check OPL init return code 2015-07-07 20:19:48 -04:00
Matthew Hoops
bed9da8b9d AUDIO: Remove all AudioStream access to OPL 2015-07-07 20:19:47 -04:00
Matthew Hoops
24add3c745 SCI: Use the built-in OPL timer 2015-07-07 20:19:43 -04:00
Matthew Hoops
2e8f9dcec9 AUDIO: Remove the sample rate configuration from the OPL code 2015-07-07 20:19:42 -04:00
Martin Kiewitz
8bfb268eb2 SCI: rename GAMEOPTION_EGA_UNDITHER name + desc
Original name + description were inaccurate. We don't actually
do undithering (besides the view undithering), but we instead
skip the EGA dithering code.
2015-06-15 17:37:33 +02:00
Matthew Hoops
b6fdc7be88 AUDIO: Make makeAIFFStream return a RewindableAudioStream
All callers requiring SeekableAudioStream have been adapted by using dynamic_cast
2015-06-06 17:20:41 -04:00
Matthew Hoops
c76e30d01c SCI: Only use makeAIFFStream instead of loading the sound twice 2015-06-04 19:47:23 -04:00
Martin Kiewitz
c64652bbb6 SCI: sq4cd: extend skateorama workaround bug #6853 2015-05-18 19:38:44 +02:00
Martin Kiewitz
f0ccd3f91a SCI: sq4cd scriptpatch clothes change points #6866
script patch, so that points are awarded, when
changing back clothes. You have to clean out the
bank account again, because that's the problematic
script. Also happened in original interpreter.
Only happened for Space Quest 4 CD
worked in floppy
2015-05-18 19:15:35 +02:00
Martin Kiewitz
158f491b44 SCI: add game & int version to hoyle 1 amiga 2015-05-18 10:52:37 +02:00
Filippos Karapetis
994195befa SCI: Reenable an English Amiga version of Hoyle 1 (bug #6870) 2015-05-18 11:46:14 +03:00
Martin Kiewitz
3b092e5d60 SCI: identifyOffsets() counter variables 2015-05-17 18:51:22 +02:00
Martin Kiewitz
a6ceee0d67 SCI: qfg1vga: fix script patch sneak into castle
The original script patch only worked when speed
slider was all the way up.
2015-05-17 11:54:27 +02:00
Martin Kiewitz
3698ca8cf7 SCI: adjust SCI3 offset identify thx lskovlun 2015-05-15 23:46:25 +02:00
Martin Kiewitz
c787560acb SCI: add SCI3 support for debug cmd scro 2015-05-14 20:58:14 +02:00
Martin Kiewitz
3183ef0854 SCI: add said-details to script_said debug cmd 2015-05-14 20:41:21 +02:00
Martin Kiewitz
bfab4c4cbe SCI: debug commands scro, scrs and script_said
implement string collecting for SCI3
implement object offset collecting for SCI0-SCI2
implement said-str offset collecting for SCI0-SCI1
add new debug command scro / script_objects
add new debug command script_said
string without terminating NUL now a warning
the latter happens in qfg2 for amiga room 84
2015-05-14 20:33:21 +02:00
Martin Kiewitz
fdfb7775a4 SCI: change qfg2 saurus ride script patch
the original script patch messed up room changes
2015-05-14 17:58:31 +02:00