1067 Commits

Author SHA1 Message Date
RichieSams
3a31e1de96 ZVISION: Don't change location when coming back from ScummVM save dialog and do change location when coming back from restore dialog
Fixes bug # 6771

We don't need to change locations, since we use the ScummVM save dialog instead
of the original one (which is actually a location). Instead we just need to reset _nextLocation to
_currentLocation so the engine can stop trying to save. If we change locations, the
StateKey_LastWorld/Room/etc. end up being overwritten with the current room. So if a script
refers to location 0, 0, 0, 0 (aka, the last room), the engine will try to change location to the same room.

On restore, we have to force a location change, just in case we restore to the same room. (Since the logic
will only do a location change if _nextLocation != _currentLocation)
2015-01-18 20:22:02 -06:00
RichieSams
0fafb6a62c Revert "ZVISION: Don't change location when coming back from ScummVM save dialog"
This reverts commit b835eacc0cd401bb0d15a33e60d2ac47ebb4d718.
2015-01-18 20:11:10 -06:00
RichieSams
b835eacc0c ZVISION: Don't change location when coming back from ScummVM save dialog
Fixes bug # 6771

We don't need to change locations, since we use the ScummVM save dialog instead
of the original one (which is actually a location). Instead we just need to reset _nextLocation to
_currentLocation so the engine can stop trying to save. If we change locations, the
StateKey_LastWorld/Room/etc. end up being overwritten with the current room. So if a script
refers to location 0, 0, 0, 0 (aka, the last room), the engine will try to change location to the same room.
2015-01-18 19:26:49 -06:00
RichieSams
a26a9c7268 ZVISION: Fix formatting and add curlies 2015-01-18 17:06:37 -06:00
Sven Hesse
3f66f28624 ZVISION: Remove trailing whitespace 2015-01-18 20:35:51 +01:00
Filippos Karapetis
7c23eae102 ZVISION: Fix path handling in case-sensitive file systems (bug #6775)
A regression from commit d70503cc98. Thanks to wjp for bisecting.
2015-01-18 21:30:07 +02:00
Filippos Karapetis
263c592490 ZVISION: Fix bug #6769 (the "Alchemical debacle" video in ZGI) 2015-01-17 23:38:50 +02:00
Fedor
b3c204e2ba ZVISION: made error messages more detailed 2015-01-17 19:24:21 +03:00
Filippos Karapetis
9f00880aa4 ZVISION: Properly handle sounds reusing the same sound slot (bug #6761)
This is based on Marisa-Chan's observations in commit 28e27ea1d9.
Tested with both ZNEM and ZGI
2015-01-16 14:08:15 +02:00
Filippos Karapetis
3fe7c645ed ZVISION: Fix detection of Windows fonts 2015-01-16 03:43:42 +02:00
Filippos Karapetis
11e429672e ZVISION: Add detection for the Spanish version of ZGI (bug #6764) 2015-01-16 01:52:24 +02:00
Filippos Karapetis
4287e2ebca ZVISION: Allow empty sound streams. Fixes bugs #6762 and #6763
A regression from commit 07ad10babe
2015-01-16 01:47:31 +02:00
RichieSams
89f233f488 ZVISION: Set the state value for the lever position during user dragging
Not just during the "returning" animation. Addresses part of bug #6761
2015-01-15 00:41:13 -06:00
RichieSams
4f28cec6ac ZVISION: Keep the hand cursor during lever movement
We have to explicitly set the cursor each call otherwise the cursor will
be reset to the idle cursor. Addresses part of bug #6761
2015-01-15 00:40:37 -06:00
RichieSams
28e27ea1d9 ZVISION: Allow multiple sound effects to play at the same time
This is the original behavior. This was noted in bug #6761. Specifically,
the knocker on the door plays a sound whenever it is a the top of the bottom
of the swing. By only allowing one sound effect to play at the same time, the
knocker would only play once, even though it bounces at the bottom.
2015-01-15 00:31:39 -06:00
RichieSams
fb97e58886 ZVISION: Add support for German ZGI - CD version
Fixes #6760
2015-01-13 19:53:38 -06:00
Bastien Bouclet
4b1cec6247 ZVISION: Add detection for the French version of ZGI 2015-01-13 15:47:30 +01:00
Filippos Karapetis
1b829b95b4 ZVISION: Add support for Liberation Fonts
These look better than the GNU FreeType fonts, and are thus preferred
over them. Many thanks to eriktorbjorn for his work on the different
fonts available

Also, this commit cleans up the font style array, moving it back into
the CPP file
2015-01-13 03:08:35 +02:00
Torbjörn Andersson
b247515c58 ZVISION: Check eos() after reading from stream, not before
This fixes stray character in ZGI game over screen, when it reads
an empty line of text.
2015-01-12 06:47:12 +01:00
Filippos Karapetis
3f4c924c9e ZVISION: Check for all the required fonts before starting a game 2015-01-12 02:37:53 +02:00
Filippos Karapetis
bc959e54dc ZVISION: Build the engine by default 2015-01-11 17:00:00 +02:00
RichieSams
468a26be40 ZVISION: Add detection for Nemesis CD - German version
CSCR.ZFS is the same between the German and the French versions. Therefore
we added a detection entry using the language file NEMESIS.STR
2015-01-10 22:19:46 -06:00
Filippos Karapetis
5b3705660d ZVISION: Avoid using floating point math when upscaling subtitle timing
Spotted by clone2727
2015-01-11 04:51:07 +02:00
Filippos Karapetis
21e9007d80 Revert "ZVISION: Remove ActionRestoreGame and loading of r.svr (restart slot)"
This reverts commit 9f642074ba8e17aa23b01bcee82b2293fe84f8f1, as it
broke the credits screen in ZGI.

This has been rewritten to use the common save code
2015-01-10 22:03:15 +02:00
Filippos Karapetis
899cf4813c ZVISION: Change screen resolution for the hires DVD videos to 800x600
Also, this hooks up the MPEG-PS decoder, but only if libmpeg2 is
compiled in. The DVD videos are still disabled until AC3 audio support
is implemented.
The hires DVD videos are encoded a 720x480 resolution, with double the
frame rate of the lowres ones (29.97FPS up from 15FPS)
2015-01-10 21:32:15 +02:00
Filippos Karapetis
616b34e629 ZVISION: Change wording 2015-01-10 17:30:11 +02:00
Filippos Karapetis
2d0075817a ZVISION: Remove unused variable 2015-01-10 01:37:39 +02:00
Filippos Karapetis
c82480461c ZVISION: Make sure only existing files are dumped 2015-01-10 01:36:20 +02:00
Filippos Karapetis
79b92fe046 ZVISION: Clean up save logic, and fix a thumbnail-related FIXME
This fixes the save game thumbnails when using the original save/load
screens
2015-01-09 01:09:53 +02:00
Filippos Karapetis
345b33d9f0 ZVISION: Remove dead code 2015-01-09 00:38:15 +02:00
Filippos Karapetis
9e1510e715 ZVISION: Provide a better description for the double FPS game option 2015-01-09 00:37:16 +02:00
Filippos Karapetis
913075df90 ZVISION: Also handle paths in NEMESIS.ZIX for the DVD ver. of Nemesis 2015-01-08 01:44:06 +02:00
Filippos Karapetis
a9b79544a1 ZVISION: Add support for an unmodified ZIX file for Zork: Nemesis
This helps in copying the game files straight off the CD
2015-01-07 23:49:13 +02:00
Filippos Karapetis
474ef74122 ZVISION: Check the validity of ZIX files 2015-01-07 23:49:13 +02:00
Filippos Karapetis
07ad10babe ZVISION: Handle sound patches (.src files) dynamically 2015-01-07 23:49:12 +02:00
Filippos Karapetis
5e1702d60e Cursors "arrowa.zcr" and "arrowb.zcr" are missing from Zork: Nemesis 2015-01-07 23:49:12 +02:00
Filippos Karapetis
339abc781c ZVISION: Add detection for the French version of Zork: Nemesis 2015-01-07 23:49:12 +02:00
Filippos Karapetis
4ffaf4df37 ZVISION: Add stubs for the hires VOB MPEG2 videos of ZGI DVD
VOB file handling is based on clone2727's work. The lowres videos are
played for now, until AC3 sound handling is implemented
2015-01-07 11:42:27 +02:00
Filippos Karapetis
e4969a98f8 ZVISION: Fix typo in include 2015-01-07 11:42:27 +02:00
Filippos Karapetis
cdbc06d0f7 ZVISION: Use a common function for loading game animations 2015-01-07 11:42:26 +02:00
Filippos Karapetis
2d0e9fc74a ZVISION: Move the screen initialization code into a separate function 2015-01-07 11:42:26 +02:00
Filippos Karapetis
fb135b38ed ZVISION: Cleanup 2015-01-07 11:42:26 +02:00
Filippos Karapetis
d70503cc98 ZVISION: Cleanup the ZIX file code
Also, add handling for 3 CDs, for Zork: Nemesis
2015-01-07 11:42:25 +02:00
Filippos Karapetis
364b72c29b ZVISION: Fix incorrect reference to cursor file 2015-01-07 11:42:25 +02:00
Filippos Karapetis
5949ab5aa6 ZVISION: Error out when a cursor file can't be found 2015-01-07 11:42:24 +02:00
Filippos Karapetis
9f642074ba ZVISION: Remove ActionRestoreGame and loading of r.svr (restart slot)
This is handled internally now, so r.svr isn't needed anymore
2015-01-07 11:42:24 +02:00
Filippos Karapetis
9420cc2faa ZVISION: Also handle paths in INQUIS.ZIX for the DVD version of ZGI 2015-01-07 11:42:24 +02:00
Filippos Karapetis
535249389a ZVISION: Add a new command, "dumpimage", to dump any game image to BMP 2015-01-07 11:42:23 +02:00
Matthew Hoops
34ec4ed6b5 ZVISION: Really fix truetype_font.cpp newlines
They are now all LF.
2015-01-01 17:36:12 -05:00
Filippos Karapetis
976b4adb4e ZVISION: Add support for unmodified INQUIS.ZIX files
This will greatly help users copy the unmodified file from the game
CDs of ZGI and get the game working straight away
2015-01-02 00:31:19 +02:00