6033 Commits

Author SHA1 Message Date
Willem Jan Palenstijn
d1e2d61b78 SCI: Fix Uhura's Woo conversation option
This is bug #3040722.

It was trying to open a non-existent submenu. We now force a return
after handling the conversation option right before it tries to look for
this submenu.
2012-10-07 12:27:14 +02:00
Willem Jan Palenstijn
8f754ced42 SCI: Flip assert
This way the assert is checking that the allocated buffer is large enough
for the memcpy that follows it.
2012-10-07 12:27:14 +02:00
Willem Jan Palenstijn
e38d4f20e8 SCI: Fix dissect_script crash with invalid object types 2012-10-06 13:07:12 +02:00
Willem Jan Palenstijn
5f3f21e20e SCI: Fix some console output formatting 2012-10-06 13:07:12 +02:00
Willem Jan Palenstijn
ba1307b0ce SCI: Add kReadNumber fixme
Thanks to Walter for noticing this.
2012-10-05 16:41:02 +02:00
Filippos Karapetis
f2fa6a934d SCI: Fix compilation with MSVC (atan2() was ambiguous) 2012-10-01 03:06:59 +03:00
Willem Jan Palenstijn
17887e24a2 SCI: Implement kMergePoly
Thanks to Walter for creating debugging tools for MergePoly and testing.
2012-09-30 18:18:20 +02:00
Johannes Schickel
89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Alyssa Milburn
f08978a075 JANITORIAL: Remove underscores from MidiParser variable names. 2012-09-07 23:04:34 +02:00
Filippos Karapetis
7824d0e8e9 SCI: Limit the hack used for sound initialization to the Fun Seeker's demo only 2012-09-01 20:17:27 +03:00
Filippos Karapetis
60c2061710 SCI: Allow the Fun Seeker's Guide demo to run
This demo doesn't have any music, and the original doesn't work with any sound
driver, so don't error out when the sound driver can't be initialized properly
2012-09-01 17:59:52 +03:00
Matthew Hoops
857b92f8ff Merge pull request #268 from clone2727/video-rewrite
VideoDecoder upgrade & partial rewrite
2012-08-26 15:41:56 -04:00
Filippos Karapetis
a391599403 SCI: Update a comment 2012-08-21 11:55:21 +03:00
Filippos Karapetis
7d436622a8 SCI: More work on kRemapColors
This implements some more color remap-based palette effects, found in QFG4
2012-08-21 03:32:23 +03:00
Filippos Karapetis
1a61056b06 SCI: Extend a workaround for the dream sequence in QFG4 2012-08-21 03:32:21 +03:00
Filippos Karapetis
9568b78bab SCI: Use a simpler atan implementation for kGetAngle in SCI1 and newer games
SCI1 games (QFG2 and newer) use a simpler and more accurate atan implementation
for kGetAngle. This properly fixes bug #3540976.
2012-08-21 03:32:18 +03:00
Filippos Karapetis
b19ccb9d1e SCI: Set the correct audio type for SCI1.1 sound effects, fixing bug #3554709
Now, sound effects in SCI1.1 games will no longer be incorrectly using the speech
sound volume. This avoids them being silenced in floppy games that are flagged
as not having speech. Fixes bug #3554709 - "SCI: Digital SFX don't play when
Override Global Audio set"
2012-08-20 03:22:56 +03:00
Filippos Karapetis
8524ebd699 SCI: Fix script bug #3555404 - "SCI: KQ6 Spider Scene Game Freeze" 2012-08-20 02:58:37 +03:00
Matthew Hoops
18823198ad VIDEO: Merge AdvancedVideoDecoder into VideoDecoder 2012-08-16 14:00:14 -04:00
Matthew Hoops
fb35c7f46f VIDEO: Remove setSystemPalette() 2012-08-16 13:30:32 -04:00
Matthew Hoops
7294a1cbcf VIDEO: Remove the Coktel video code from using the VideoDecoder API
After discussing with DrMcCoy, we felt this the best way to proceed. A wrapper class that implements AdvancedVideoDecoder is still around for use in SCI.
2012-08-16 12:17:23 -04:00
D G Turner
1f91cc1aa0 SCI: Add PQ3 Spanish DOS detection entry from bug #3555647. 2012-08-11 17:55:31 +01:00
D G Turner
2d1a63c930 SCI: Add KQ5 Spanish DOS detection entry from bug #3555646. 2012-08-11 17:37:14 +01:00
Willem Jan Palenstijn
546e2086e3 SCI: Remove duplicate detection entry
There is no indication in the corresponding bug report this was for
an Amiga version.
2012-08-07 21:06:04 +02:00
D G Turner
d83382a9ef SCI: Add extra comments to new detection entries. No functional changes. 2012-08-07 19:27:22 +01:00
D G Turner
611905aa97 SCI: Add missing QFG1 detection entries from bug #3554611. 2012-08-07 11:28:10 +01:00
D G Turner
aedd0d2a16 SCI: Add missing QFG2 detection entry from bug #3554614. 2012-08-07 10:23:31 +01:00
Filippos Karapetis
259f262592 SCI: Add a workaround for a script bug in QFG4
Thanks to Charles for testing
2012-08-02 03:46:58 +03:00
Matthew Hoops
991710d0a1 VIDEO: Adapt QuickTimeDecoder to the AdvancedVideoDecoder API 2012-07-27 11:32:51 -04:00
Filippos Karapetis
831e1b27dc SCI: Add a workaround for a bug in Phantasmagoria 1 2012-07-27 01:31:12 +03:00
Filippos Karapetis
7eded163d8 SCI: Add support for kCD(0) with a parameter
It's now possible to start a chapter in Phantasmagoria 1
2012-07-27 01:30:37 +03:00
Filippos Karapetis
34d00f5936 SCI: Add some debug code to op_line 2012-07-26 11:06:52 +03:00
Filippos Karapetis
c0beaf2337 SCI: Differentiate between screen width and pitch
This properly addresses the odd screen width (630) in Phantasmagoria 1
2012-07-26 11:06:51 +03:00
Johannes Schickel
dc8d9f4c9f SCI: Fix delete[] formatting. 2012-07-25 21:11:45 +02:00
Filippos Karapetis
31f9e96aee SCI: Add a workaround for a script bug in QFG4 2012-07-25 12:14:33 +03:00
Filippos Karapetis
e7836beabb SCI: Silence some very chatty warnings
Also, add an example room where kRemapToGray is called
2012-07-25 12:13:35 +03:00
Filippos Karapetis
6ade0e1457 SCI: Expand an uninitialized read workaround for SQ6 2012-07-25 02:29:57 +03:00
Filippos Karapetis
55e508b91f SCI: Add a workaround for QFG4, screen 140 (character selection screen) 2012-07-25 01:32:34 +03:00
Filippos Karapetis
797dbfe506 SCI: Set the RemapByPercent palette initially
This needs to be performed because the screen palette might not change
after the call. Fixes the display of the bat in the character selection
screen in the full version of QFG4
2012-07-25 01:16:13 +03:00
Filippos Karapetis
537b1969bf SCI: Rewrite the color remapping code to support simultaneous effects
Fixes the torch in the full version of QFG4
2012-07-25 00:58:16 +03:00
Filippos Karapetis
37b209dac1 SCI: Refresh remapping by percent whenever the screen palette changes 2012-07-24 22:55:34 +03:00
Filippos Karapetis
fe3fb1873c SCI: Cleanup of the palette remapping code 2012-07-24 22:54:37 +03:00
Filippos Karapetis
6f35130204 SCI: More work on color remapping
More transparency/color mapping effects are now working (e.g. the
flashlight at the Gedde tomb in GK1, the rays of light at Schloss Ritter
in GK1, the torch in the QFG4 demo and the shadows in QFG4, PQ4 and KQ7)
2012-07-24 22:34:46 +03:00
Filippos Karapetis
3d395545cb SCI: Remove unused variables 2012-07-24 04:07:08 +03:00
Filippos Karapetis
bd281928cb SCI: Initial implementation of kRemapColors(kRemapByPercent)
Fixes some graphics glitches in the QFG4 demo and the menus of QFG4, by
implementing one of the transparency effects used mainly in SCI32.
Many thanks to fuzzie for her debugging info on QFG4 demo and to wjp for
his great help on the dissassembly
2012-07-24 03:53:44 +03:00
Filippos Karapetis
61e8fdbf1d SCI: Separate the early SCI11 version of kRemapColors from the SCI32 one 2012-07-24 00:18:31 +03:00
Matthew Hoops
d4231fda1c SCI: Rewrite RobotDecoder to use the AdvancedVideoDecoder API 2012-07-22 23:17:36 -04:00
Matthew Hoops
0f0c6f9354 VIDEO: Rewrite the AVI code to use AdvancedVideoDecoder
In addition to using the new API, it should theoretically support multiple audio and video tracks now but that has not been tested.
2012-07-22 14:13:20 -04:00
Matthew Hoops
7654b20362 VIDEO: Merge the three Fixed* VideoTrack classes
Avoids diamond inheritance, which makes it impossible to downcast without rtti
2012-07-22 14:11:11 -04:00
Matthew Hoops
e74c306a7f SCI: Switch SEQDecoder to using the new FixedDurationVideoTrack subclass 2012-07-21 14:43:08 -04:00