Commit graph

195 commits

Author SHA1 Message Date
Coen Rampen
acad76683d GROOVIE: Fix 11th Hour scripts loading savegame 0
When The 11th Hour shows the load/restart dialog during the intro, it calls
loadgame with slot 0. It is not clear to me what this means, but it should not
load a savegame, because only slots 1-9 can be used with the original UI. In
ScummVM, this would load the autosave, which probably causes problems, though
the only thing I noticed is it stops the music, which does not happen in the
original interpreter.

This commit adds an exception for The 11th Hour to not load a savegame when
loadgame is called with slot 0. To still support loading the autosave form the
ScummVM UI, the slot is set to 0xFF in this case, which is interpreted by
loadgame to mean actually loading slot 0.
2021-11-17 21:55:09 +01:00
Coen Rampen
07f91ec50e GROOVIE: Use game volume for 11th Hour MIDI control
This prevents the 11th Hour MIDI control function from setting the user volume.
This volume setting is set by the user in the game config and the game should
not override this. For the playSong operation the volume setting is removed,
because playSong already sets the game volume. For case 3 the commented volume
setting has been replaced by an equivalent game volume call.

I've been unable to trigger either operation by playing through the first part
of the game, so these operations might not be used at all.
2021-11-17 21:53:44 +01:00
Orgad Shaneh
0909948281 GROOVIE: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Filippos Karapetis
992d65155f GROOVIE: Add enums for arrays and 2D arrays, use a character for space 2021-11-14 01:48:18 +02:00
Filippos Karapetis
19b75e2793 GROOVIE: Add game logic stub for the wine rack puzzle in Clandestiny 2021-10-28 13:45:27 +03:00
Die4Ever
ffb1dc3610
GROOVIE: T11H Pente AI puzzle 2021-10-27 19:09:49 -05:00
Scott Thomas
f0a7d41001 GROOVIE: Fix ROQ decoder for certain CLAN videos
Thanks for madmoose for finding the root cause
2021-10-27 16:46:58 +10:30
Filippos Karapetis
7407089e05 GROOVIE: Remove unused parameter 2021-10-27 02:13:50 +03:00
Filippos Karapetis
f24a25b502 GROOVIE: Implement loading from the launcher for Clandestiny and UHP 2021-10-26 04:51:11 +03:00
Filippos Karapetis
f2b4ff71a6 GROOVIE: Fix loading from the launcher for T11H 2021-10-26 04:32:10 +03:00
Filippos Karapetis
9bcac28b88 GROOVIE: Allow the intro videos to be skipped for 11H 2021-10-26 03:54:05 +03:00
Filippos Karapetis
fc7f51afb0 GROOVIE: Add stubs for the Pente (11H) + Othello (Clan/UHP) mini-games
Also, perform some clean up of the logic in the cell mini-game (T7G)
2021-10-23 20:19:32 +03:00
Eugene Sandulenko
eca09acb7c
GROOVIE: Added skeleton for Triangle puzzle 2021-10-23 19:54:57 +03:00
Eugene Sandulenko
be64198410
GROOVIE: Made o_sleep() non-blocking 2021-10-23 19:54:57 +03:00
Filippos Karapetis
7c483badbc GROOVIE: Clean up mini game debug messages and comments 2021-10-23 04:07:15 +03:00
Filippos Karapetis
4827c87348 GROOVIE: Remove leftover include 2021-10-23 02:46:46 +03:00
Filippos Karapetis
692bad517f GROOVIE: Restructure GroovieV2 game logic
- Move Groovie2 mini-game logic orchestration inside script opcode 0x42
- Move 11h mousetrap logic into a separate file
- Move music file names for MusicPlayerClan inside music.cpp
- Remove the now obsolete ClanGame and T11hGame classes
2021-10-23 02:42:39 +03:00
Filippos Karapetis
739c608829 GROOVIE: Separate game logic for 11h and Clan, and reuse it for UHP 2021-10-22 01:12:39 +03:00
Scott Thomas
1dcf364a00
GROOVIE: Prevent direct save when there is no active game in progress
Prevents autosaves creating an invalid save state in the initial game menu
2021-09-16 21:26:48 +09:30
Filippos Karapetis
8cf46e2f7f GROOVIE: Restructure game-specific logic code and video code 2021-09-16 09:25:47 +03:00
Die4Ever
174f3c5074 GROOVIE: Clandestiny savegame fixes
Fixes crashes when you have saved games. Also makes the preview images on saved games work.
2021-09-16 09:21:24 +03:00
Filippos Karapetis
51806ec2f6 GROOVIE: Hook up the puzzle logic of the 11th Hour puzzles in UHP 2021-09-16 03:04:54 +03:00
Filippos Karapetis
8f3d07b05e GROOVIE: Initial work on UHP. 7/13 mini-tames are currently functional
From the 12+1 mini-games:
- Crypts (T7G) works
- Cake (T7G) works
- Spiders (T7G) works
- High Lights (T7G) works
- Blood and Honey / beehive (11H) misses game logic
- The Amazing Labyrinth / mousetrap (11H) misses game logic
- Book Checkers (11H) works
- SwitchBoard (11H) works
- Cursed Coins (Clan) misses game logic
- Trade Winds (Clan) crashes with missing resources
- Statue Paths (Clan) crashes with missing resources
- Leap Frogs (Clan) works
- The final puzzle is not accessible yet
2021-09-16 00:07:40 +03:00
Filippos Karapetis
cbc0d615bb GROOVIE: Use the ScummVM save/load dialogs for the in-game menu 2021-09-15 23:00:20 +03:00
Filippos Karapetis
8baac0f52c GROOVIE: Allow loading using the ScummVM load screen in T7G 2021-09-15 19:28:59 +03:00
Die4Ever
9b490a0864 GROOVIE: unset _waitingForInput and cleanup
Unset _waitingForInput to make the game more responsive. Also some cleanup of old commented out code.
2021-09-15 19:13:57 +03:00
Die4Ever
1a9cd3e900 GROOVIE: fix uses of ENABLE_GROOVIE2
Fixing compiler errors when groovie2 was disabled
2021-09-15 19:13:57 +03:00
Die4Ever
1af1d35540 GROOVIE: fix detection for T7G Mac
groovie.cpp requires the main grv file to be the first file in the game description
2021-09-15 19:13:57 +03:00
Die4Ever
1687b7f08b GROOVIE: fix error missing limits.h 2021-09-15 19:13:57 +03:00
Die4Ever
02ade73150 GROOVIE: fix compiler errors and warnings 2021-09-15 19:13:57 +03:00
Die4Ever
cfd928f296 GROOVIE: cleanup signed/unsigned compiler warnings 2021-09-15 19:13:57 +03:00
Die4Ever
1dd7a5f66a GROOVIE: code review feedback
fixes for MusicPlayerTlc

optimizations and cleanup in roq.cpp

lots of cleanup in tlcgame.cpp
2021-09-15 19:13:57 +03:00
Die4Ever
f1890553ed GROOVIE: fix o2_midicontrol stop command 2021-09-15 19:13:57 +03:00
Die4Ever
c0f489fe09 GROOVIE: fix op 0x0A o2_bf0on 2021-09-15 19:13:57 +03:00
Die4Ever
58a795c022 GROOVIE: stop audio when fast forwarding 2021-09-15 19:13:57 +03:00
Die4Ever
a72ac69b4e GROOVIE: right click to fast forward
For videos that don't have a _videoSkipAddress this allows you to fast forward through them. Also allows you to skip audio files like in T11H the riddles and hints.
2021-09-15 19:13:57 +03:00
Die4Ever
8da84fdda9 GROOVIE: added background sound effects
For The 11th Hour, this means things like clock chimes and wind sounds. This also fixes the end of the game where you have until the clock chimes 12 to choose a door.

- also renamed the stub ops functions

- sound effect volume setting for Groovie 2 games

- stop sound effects when playing an FMV (an interlaced video)
2021-09-15 19:13:57 +03:00
Die4Ever
87e98d1e86 GROOVIE: stubs for T11H AI puzzles
This is enough to get through the whole game, although you have to use the GameBook to solve mouse trap, chapel, and cake. Modern art has rudimentary AI. Beehive and Pente both auto-solve. Updated o2_stub49 so the player can choose an ending.
2021-09-15 19:13:57 +03:00
Die4Ever
7a09ae0a15 GROOVIE: T11H fix mouse trap crash 2021-09-15 19:13:57 +03:00
Die4Ever
454dbff264 GROOVIE: v2 use o2_printstring opcode 2021-09-15 19:13:57 +03:00
Die4Ever
c7e4c851f6 GROOVIE: some cleanup 2021-09-15 19:13:57 +03:00
Die4Ever
7e53331044 GROOVIE: Codacy and formatting 2021-09-15 19:13:57 +03:00
Die4Ever
3494ce638c GROOVIE: add o2_copybgtofg and fix o_videofromstring1 2021-09-15 19:13:57 +03:00
Die4Ever
5fbf8bd146 GROOVIE: fix accidental o2 in _opcodesT7G 2021-09-15 19:13:57 +03:00
Die4Ever
ee91abb26a GROOVIE: fix compiler errors 2021-09-15 19:13:57 +03:00
Christian Lindemann
cc61104b98 GROOVIE: Start implementation of gallery puzzle 2021-09-15 19:13:57 +03:00
Christian Lindemann
3d8cb28b8c GROOVIE: Bugfix. Videos with ID0 were skipped 2021-09-15 19:13:57 +03:00
Christian Lindemann
9c68ffb79f GROOVIE: Overlay corrections, some other bugfixes 2021-09-15 19:13:57 +03:00
Christian Lindemann
d3493f2352 GROOVIE: Bugfixes ROQ Player / Stubs for 11H Staufs moves 2021-09-15 19:13:57 +03:00
Christian Lindemann
6525123663 GROOVIE: TLC Music / Small Bugfixes / Better Comments 2021-09-15 19:13:57 +03:00