Commit Graph

51202 Commits

Author SHA1 Message Date
David Fioramonti
6a43e8d958 TITANIC: StarCamera work 2017-08-30 19:53:13 -07:00
David Fioramonti
b64a5bc3d2 TITANIC: AutoMover and related refactoring 2017-08-30 19:53:13 -07:00
David Fioramonti
8f479522c4 TITANIC: CCameraMover and related classes Refactor
1. Removed updatePosition function defintions since
UnmarkedCameraMover and MarkedCameraMover, derived classes,
are overriddening it. I.e., CCameraMover::updatePosition doesn't
get used.

This also allowed some header files to removed.

2. Renaming of some functions.
2017-08-30 19:53:13 -07:00
Paul Gilbert
d1325e2d12 TITANIC: Formatting fixes for viewport refactoring 2017-08-30 20:05:47 -04:00
Paul Gilbert
4557c31c54 Merge pull request #1001 from dafioram/viewport_refactor
TITANIC: Viewport refactor
2017-08-30 19:54:36 -04:00
Eugene Sandulenko
6a5aa12bfa WAGE: Update Parrot Talk games status 2017-08-30 09:06:20 +02:00
Eugene Sandulenko
31eb4724d3 WAGE: Correctly specify target name for dumped scripts 2017-08-29 20:15:19 +02:00
Eugene Sandulenko
5eaa48ec96 WAGE: Dump scripts by request 2017-08-29 19:21:20 +02:00
Eugene Sandulenko
b5c552b3bb WAGE: Quit gracefully when requested 2017-08-29 09:33:44 +02:00
Eugene Sandulenko
58fb345b3e WAGE: Since the sounds are blocking, made the sound handle global 2017-08-29 09:33:44 +02:00
Eugene Sandulenko
d0082982d5 WAGE: Make sound blocking 2017-08-29 09:33:44 +02:00
Paul Gilbert
1ec8d86593 TITANIA: Fix light being loose after Bellbot gets Titania's eye 2017-08-28 22:03:12 -04:00
Paul Gilbert
d7ca6c3bc1 TITANIC: Fix crash opening GMM during startup & Continue dialog 2017-08-28 21:45:07 -04:00
Eugene Sandulenko
90aca034df WAGE: Properly set the character when player is not defined 2017-08-28 19:13:49 +02:00
Thomas Fach-Pedersen
1def441e09 BLADERUNNER: Fix build 2017-08-27 22:50:33 +02:00
Thomas Fach-Pedersen
7ec2a3aad2 BLADERUNNER: Fix build 2017-08-27 22:46:55 +02:00
Thomas Fach-Pedersen
9bf07073fb BLADERUNNER: Add Overlay videos 2017-08-27 22:39:36 +02:00
David Fioramonti
5cf2f16ca0 TITANIC: Refactoring of Viewport class
1. Improved naming of functions.
	E.x., fn17 is now called getRelativePosNoCentering
2. Improved variable names
	E.x., _valArray[3] is now _pixel1OffSetX, naming makes sense for it
	use in CBaseStars::draw.
3. Lots of comments and TODO added for suspicious behavior
	Mentioned unused functions and values that don't get used.
4. Changes in other classes that viewport renaming affected
	Some of the star_camera functions were 1-1 mapping of
	functions in viewport so I just made the names be the same.
2017-08-27 05:39:13 -07:00
David Fioramonti
de5e2c9674 TITANIC: Fix viewport _field24/starcolor not being saved
One of the fields wasn't getting saved. This field determines
whether the star color should be pink or white. It gets recomputed
when you put the helmet back on so it doesn't really matter.

Previously, when it loaded this value it was loading some orientation
data which occurs next in the saved data file for saved games saved
by scummvm versions before this commit.
2017-08-27 05:32:23 -07:00
David Fioramonti
42cdd66f81 TITANIC: Move Rad2Deg from dvector to fvector
I wanted to use that variable in viewport.cpp and since fvector.h
is included in more functions (already) then dvector it makes sense
to move it there.
2017-08-27 05:30:24 -07:00
David Fioramonti
a95df4aa72 TITANIC: Add fpose product helper function
This adds a non-member function that computes the
product between two fpose "matrices" and puts it in
a third. One of the constructor was doing that so now
it calls this non-member function.
2017-08-27 05:29:50 -07:00
Colin Snover
d7d75d97fd SCI32: Ignore invalid audio maps in Phant2 FR
Fixes Trac#10049.
2017-08-26 18:09:47 -05:00
Colin Snover
b17c66981e SCI32: Ignore invalid audio map in GK2 DE
Fixes Trac#10143.
2017-08-26 18:09:47 -05:00
Colin Snover
c0d3d5776e SCI32: Limit existing bad audio map resource skips by language
Since audio maps change when game speech is localised, it makes
sense to limit audio map skips by language until it turns out that
the same problem exists in more than one language release, so we
do not accidentally skip a map that is bad in one language, but OK
in another language.
2017-08-26 18:09:47 -05:00
Colin Snover
ed0d0413b0 SCI32: Allow changing SFX/speech volume in GK2
Originally, changing the SFX volume from ScummVM was disabled
because the game itself only allowed adjustment of music volume,
so adjusting the SFX volume would indirectly affect the music
volume. On reflection, allowing the adjustment of SFX volume even
though this also changes the music volume seems preferable to not
allowing any adjustment of the SFX/speech volumes.
2017-08-26 18:09:47 -05:00
Colin Snover
74738489ec SCI32: Fix SFX volume being misapplied to music & speech in some games
This was happening in games with game scripts that control the
master volume themselves by applying the master volume to each
channel sent to the kernel, instead of relying on the kernel to
manage the master volume for them.
2017-08-26 18:09:46 -05:00
Paul Gilbert
72b033ca2d TITANIC: Added frame debugger command for setting objects' movie frames 2017-08-26 17:58:31 -04:00
Peter Kohaut
a97fe8f89f BLADERUNNER: Support for AESC 2017-08-26 23:00:54 +02:00
Paul Gilbert
960ad3623f TITANIC: Fix error setting correct PET buttons for a given area 2017-08-26 12:40:08 -04:00
Paul Gilbert
6291eb75d0 TITANIC: Fix German strings in create_titanic, regenerate titanic.dat 2017-08-26 12:39:34 -04:00
Paul Gilbert
a929c5aabc TITANIC: Add further strings to create_titanic tool 2017-08-26 11:13:34 -04:00
Paul Gilbert
b4ee0ec823 TITANIC: Hide back view of MaitreD from close to the table
The MaitreD was rendered using frame 0 from c386.avi, but with a
corrupted right and bottom edge. Ironically, the MaitreD object
isn't used at all, since hiding him revealed he's part of the
background as well. From the video, it seems like he was meant
to have an idle wiggle animation that didn't end up being used.
2017-08-26 11:08:25 -04:00
Paul Gilbert
67ae67d685 TITANIC: Fix another struct vs class warning 2017-08-26 11:05:33 -04:00
Peter Kohaut
91f67a10ae BLADERUNNER: Transparent background in dialogue menu 2017-08-26 11:58:14 +02:00
Paul Gilbert
77b904ef8d TITANIC: Fix struct vs class forward declaration warning 2017-08-25 20:48:55 -04:00
Colin Snover
b5bd7b8478 SCI32: Stop blacklisting 37.MAP from Phantasmagoria
It turns out that GOG.com version of Phantasmagoria needs the
37.MAP patch file because for some reason the 37.MAP in RESSCI.000
is empty (36 bytes, versus the correct file which is ~1kB).
Fortunately, this file is the same across all CDs in the original
US release, so hopefully unblocking this patch will not cause any
problems for any of the CD releases either.

Fixes Trac#10161.
2017-08-25 18:53:32 -05:00
Colin Snover
3ef0802993 TITANIC: Fix buffer overflow when getting first class upgrade 2017-08-25 18:53:20 -05:00
Paul Gilbert
c4bf8575c1 TITANIC: Fix Door/Bellbot remaining when summoned outside doors 2017-08-25 19:03:55 -04:00
Paul Gilbert
8e62240ed9 TITANIC: Show NPC portrait in Conversations tab after loading savegame 2017-08-25 17:37:03 -04:00
Colin Snover
1e9434cac0 TITANIC: Fix doubled announcement when summoning DoorBot
This would happen when the player is in one of the rooms with a
room-specific announcement.
2017-08-25 16:33:02 -05:00
Paul Gilbert
fe1c3a8fe9 TITANIC: Correct cursor after ejecting cylinder in music system 2017-08-25 17:21:46 -04:00
Paul Gilbert
8512476a08 TITANIC: Don't allow cylinders to be dropped in music system slot closed 2017-08-25 17:06:56 -04:00
Eugene Sandulenko
853ad19934 WAGE: Update games status 2017-08-25 21:55:33 +02:00
Torbjörn Andersson
7d52dbe7eb JANITORIAL: Remove unnecessary semicolon 2017-08-25 17:56:09 +02:00
Paul Gilbert
9b07378c24 Merge pull request #999 from dafioram/header_reduce
TITANIC: Reduce header includes
2017-08-25 07:23:35 -04:00
Peter Kohaut
9512cf46b7 BLADERUNNER: Fix build 2017-08-25 00:18:38 +02:00
Peter Kohaut
0da18320af BLADERUNNER: Added audio mixer & various fixes
Audio mixer is supporting fading and pan animation
Added support for skipping speech by pressing Return
Added proper support for ambient sounds
Added more code to the dialogue menu
Added tooltips to the Spinner
Fixed calculation of volume and pan of walk steps
Code cleanup & formatting
2017-08-24 23:43:47 +02:00
Thomas Fach-Pedersen
c9b4089ccb BLADERUNNER: Fix build 2017-08-24 22:46:07 +02:00
Thomas Fach-Pedersen
d67e06c7b2 BLADERUNNER: Add support for elevators 2017-08-24 22:34:50 +02:00
Willem Jan Palenstijn
dde259f068 COMMON: Remove BitStream base class to allow inlining calls
All users of BitStream were in fact using a specific, hardcoded variant,
so we can hardcode that variant, removing the need for virtual calls,
and enabling inlining.
2017-08-24 19:46:59 +02:00
David Fioramonti
d01354ab0d TITANIC: Reduce header includes for star_control files
Minimized a lot of the unncessary files includes in the
implementation files as well.
2017-08-24 04:31:04 -07:00
David Fioramonti
9b10f5dc29 TITANIC: Fixed titanic.h float random function range
Fixed float random number function of titanic.h which could of given
65537 instead of a max of 65535.
2017-08-24 04:30:59 -07:00
David Fioramonti
c96b01b82e TITANIC: Reduce header includes for titanic.h
I reduced the header includes a lot in Titanic.h and forward
declared when I could. Titanic.h was including a lot and
a lot of functions that were including it were not using its
API. This will help make it more clear which implementation
files are using which class since they will just need to include
which ones they need.

I also moved the debug related items in Titanic.h into the debugger
header.

I also reordered several of the the header includes to be local to
global.
2017-08-24 04:06:54 -07:00
Eugene Sandulenko
265fc48d15 WAGE: Do something when player is not defined instead of crashes 2017-08-24 09:25:25 +02:00
Eugene Sandulenko
7cf83cab6a WAGE: Update status of The Phoenix game 2017-08-24 09:06:24 +02:00
Eugene Sandulenko
fd1ea78b35 WAGE: Read rectangles sanely 2017-08-24 08:53:08 +02:00
Eugene Sandulenko
59bc70299e WAGE: Fake input text when using shortcuts 2017-08-24 08:45:26 +02:00
Paul Gilbert
78ed19d429 TITANIC: Disable fix for dispensed chickens' initial temperature
The original had a bug that didn't dispense chickens as cold when
the yellow fuse was removed from the fusebox. Too many walkthroughs
suggest removing it though, so I'm disabling fix to avoid confusion.
2017-08-23 22:43:10 -04:00
Simei Yin
a2a980aa89 SLUDGE: Convert CP1250 to UTF8 for some windows games 2017-08-24 04:02:42 +02:00
Paul Gilbert
0411e1cdc5 TITANIC: Fix incorrect cursor after getting nose 2017-08-23 21:56:33 -04:00
Paul Gilbert
4aabc56bb3 TITANIC: Don't allow GMM loading in the middle of receiving mail 2017-08-22 21:20:03 -04:00
Paul Gilbert
0e2be98857 TITANIC: Ensure PET _remoteTargetName is set when saving 2017-08-22 20:57:22 -04:00
Paul Gilbert
aad739120b TITANIC: Fix using Fn keys when Conversations tab is active 2017-08-22 20:07:50 -04:00
Paul Gilbert
ceb329ad0e TITANIC: Formatting fixes for star control classes 2017-08-22 19:53:47 -04:00
Paul Gilbert
68d43a431a Merge pull request #997 from dafioram/star_fix10148
TITANIC: Change ship view and position even if not moved
2017-08-22 19:20:25 -04:00
Thomas Fach-Pedersen
54accdffae BLADERUNNER: Call AI script when clue is received 2017-08-22 19:51:11 +02:00
Thomas Fach-Pedersen
a4c7992388 BLADERUNNER: Add Dialogue Menu 2017-08-22 19:02:37 +02:00
Simei Yin
867b8dbb92 SLUDGE: Reset engine when launching a new game data file 2017-08-22 16:20:15 +02:00
Eugene Sandulenko
5e9b72fbd9 WAGE: Do not dump the interpreter code 2017-08-22 10:25:00 +02:00
Paul Gilbert
3e3e0e9c00 TITANIC: Renamings for MaitreDScript 2017-08-21 21:38:18 -04:00
Paul Gilbert
3596fa9a12 TITANIC: Renamings for CMaitreDProdReceptor 2017-08-21 21:09:53 -04:00
David Fioramonti
c06055e1a4 TITANIC: Made variable for magic number used in auto camera mover
This variable controls the number of transitions the game goes
through when the mover is changing position. This reduces
several 31/32s from the code.
2017-08-21 16:55:25 -07:00
David Fioramonti
09a7a139f4 TITANIC: Camera Auto Mover class cleanup
Named some functions, made _speeds be an array instead of
a dynamic one.
2017-08-21 15:57:53 -07:00
David Fioramonti
04598dd5ad TITANIC: Named some functions in fvector 2017-08-21 15:42:50 -07:00
Eugene Sandulenko
05616ca2ee WAGE: Added detection from the alt version of Mormonoids 2017-08-22 00:05:46 +02:00
Filippos Karapetis
1fd3d105d3 SAGA: Fix bug #10009, when loading games
Abort any scene entry protagonist animations and auto-cue speeches when
loading saved games, as the protagonist can get stuck in scene entry
animations
2017-08-21 22:31:33 +03:00
Filippos Karapetis
98da344a67 SAGA: Remove obsolete disabled code 2017-08-21 22:31:33 +03:00
Eugene Sandulenko
97ed6a2af7 GRAPHICS: MACGUI: Pass command id when creating menu to avoid namespace clashes
This fixes Command menu in WAGE.
2017-08-21 19:40:05 +02:00
Ben Castricum
203b5138fa SCUMM: Update MD5 include file 2017-08-21 16:04:31 +02:00
Ben Castricum
f26e36c2e4 SCUMM: Add detection for German version of Spy Fox 1, fixes bug #9732 2017-08-21 16:04:31 +02:00
Simei Yin
cae614a4dc SLUDGE: Use common hashmap instead of array table 2017-08-21 10:19:19 +02:00
Simei Yin
516c24e8c3 SLUDGE: Change game file to be loaded 2017-08-21 10:19:19 +02:00
Simei Yin
a9ee51d6ce SLUDGE: Some code cleaning 2017-08-21 10:19:19 +02:00
Simei Yin
d9a6791500 SLUDGE: Add support for some windows-only games 2017-08-21 10:19:19 +02:00
David Fioramonti
2a96a6fc72 TITANIC: Prevent 2 star locking for large distances
I have added a conditional to the code so that if the player
tries to lock onto the 2nd star and they are very far away, >1e8,
then the game will not allow the star to be locked.

This is a temporary workaround since if a distance of farther
then this is attempted then the view will be throw way off
and the stars will not be shown locking onto correctly.

I've also made the locking functions return booleans so I can
determine the success of the lockings.

This is a partial fix for #9961.
2017-08-20 20:25:31 -07:00
Paul Gilbert
2edd59d0b8 TITANIC: Fix Tab key toggle for Starfield/Photo being broken 2017-08-20 22:55:40 -04:00
Paul Gilbert
ca05dffec5 TITANIC: Fix Coverity suggestion in CPetConversations 2017-08-20 22:37:35 -04:00
Paul Gilbert
445e12f7ca TITANIC: Add Tab key as a shortcut for switching to inventory 2017-08-20 17:23:55 -04:00
David Fioramonti
ffbfdac87e TITANIC: Change ship view and position even if not moved
The code was preventing the position and view from changing
when the distance between the current and new position for
a marked auto mover was zero. This happens if you lock the
2nd or 3rd star and then unlock and relock again.

It was prevented this with asserts and if statement checks
and I removed them all.

This section of code isn't doing any inverses based on the
reciprocal of the distance so theres no issue with allowing
transition speeds/distances of zero.

Fixes #10148.
2017-08-20 13:24:37 -07:00
Paul Gilbert
05f668ab34 TITANIC: Properly reset Parrot flag if you look away while he's eating 2017-08-20 16:05:41 -04:00
Paul Gilbert
cd9fe5c219 TITANIC: Further camera and crosshair classes cleanup 2017-08-20 14:43:00 -04:00
Paul Gilbert
a32a29a80e Merge pull request #995 from dafioram/star_camera_work
TITANIC: CStarCamera Refactoring and CStarCrosshairs logic fix
2017-08-20 14:31:47 -04:00
Filippos Karapetis
d139d65c80 SAGA: Fix the conversation panel background color in IHNM 2017-08-20 18:02:37 +03:00
Filippos Karapetis
ca8785fdbf SAGA: Filter scene verbs on objects properly for IHNM. Fixes bug #9712
The original check was incorrectly disabled for IHNM in commit
ab6fb8e9c3. The check has been enabled again, with an added condition
for actors that can be used, like the jukebox in Gorrister's
2017-08-20 17:10:33 +03:00
Filippos Karapetis
06f934dc9f SAGA: Remove obsolete hack for the compact disk in Ellen's chapter
This has been added in commit 5624ba23d0 and is no longer needed.
The gem is shown correctly over the compact disk in that scene,
and the behavior is the same as the original
2017-08-20 17:10:32 +03:00
Bastien Bouclet
42c6f68f7a TITANIC: Pause the engine while the save/load dialogs are open 2017-08-20 10:17:00 +02:00
Bastien Bouclet
a99891c2f3 MOHAWK: Riven: Pause the engine while the load dialog is open 2017-08-20 10:01:24 +02:00
Paul Gilbert
c4f48f35c6 TITANIC: Fix flagging of mouth and vision centre inserting in Titania 2017-08-19 22:44:25 -04:00
Paul Gilbert
411abee2d0 TITANIC: Hide cursor when bridge view is showing movement sequence 2017-08-19 22:15:30 -04:00
Paul Gilbert
a62d1632b5 TITANIC: Start end credits at bottom of screen, not the top 2017-08-19 21:58:43 -04:00