Commit graph

729 commits

Author SHA1 Message Date
Die4Ever
ac79a09538
GROOVIE: fixing drawString redraw WIP 2022-01-02 23:22:02 -06:00
Die4Ever
e6b818881d
GROOVIE: fix detection for T7G 25th Annv 2022-01-02 23:09:05 -06:00
Die4Ever
6116e3cccc
GROOVIE: autosave after puzzle completion 2021-12-30 22:22:53 -06:00
Die4Ever
fe6d20ecd1
GROOVIE: T11H fix blue circles for GameBook notifications 2021-12-30 22:06:35 -06:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Filippos Karapetis
9c25d11982 GROOVIE: Add "var" to the debugger, an alias for the "mem" command 2021-12-11 13:41:17 +02:00
Filippos Karapetis
8383799e61 GROOVIE: Fix infinite loop in the Othello mini-game with easier AI 2021-12-11 13:41:16 +02:00
Die4Ever
021d47cbac
GROOVIE: fix ROQ _restoreArea
Setting it to all 0s meant that the min function gave the wrong results. Needed to top and left to be large numbers so that the min function has the correct affect on them. 9999 is a better choice here than 640 and 480, because before it looked like a full screen rectangle until you realized it was inverted.
2021-12-09 11:42:26 -06:00
Die4Ever
a0acbc8548
GROOVIE: switchToFullScreen retain image, fixes Samantha's moves
This fixes the graphical bug where when Samantha made a mode, especially in the cake puzzle, the background layer was empty. This is because switchToFullScreen was being called AFTER restoreScreen
2021-12-09 07:23:54 -06:00
Paweł Kołodziejski
29ae070865
GROOVIE: Silence compiler warning 2021-12-08 00:32:34 +01:00
Die4Ever
48def9a580
GROOVIE: T11H option for updated credits music
Play the song The Final Hour during the credits instead of reusing midi songs that have already been heard during the game.
2021-12-06 04:27:23 -06:00
Die4Ever
81925cbde4
GROOVIE: T11H play Mr Death song
Patch to play the Mr Death song when the skulls ask you to adjust your brightness. Normally this would play in the launcher for the game but that isn't written in Groovie script.
2021-12-05 21:50:29 -06:00
Die4Ever
e0510db9f7
GROOVIE: couldn't find resource warning
The 11th Hour has bugged scripts that sometimes don't set the variables for the GameBook thumbnails correctly, which causes even the original Win95 exe to crash. This happens occasionallyafter watching an end of chapter cutscene. Changing this to a warning means you don't crash, and the missing thumbnail is a minor compromise.
2021-12-05 11:59:30 -06:00
Die4Ever
a19ecd94ee
GROOVIE: refactor input loop
Some scripts, such as the boat puzzle in Clandestiny, were clearing variables right before the o_inputloopend instruction, which was causing a crash because we were deferring our input actions until then. This change means hotspots execute their actions immediately instead of deferring, this is how the old Win95 exe does it.
2021-12-05 11:59:25 -06:00
Le Philousophe
501fcaf9c3 GROOVIE: Fix build when Groovie 2 games are not enabled 2021-12-04 16:23:57 +01:00
Die4Ever
92c59956cc
GROOVIE: Easier AI options 2021-12-04 08:04:35 -06:00
Filippos Karapetis
9322c029de GROOVIE: Add support for ScummVM load/save screens in 11H 2021-12-04 03:00:56 +02:00
Die4Ever
bbc90f728c
GROOVIE: winerack fixes and more tests 2021-12-01 03:09:36 -06:00
Die4Ever
e3e60bad72
GROOVIE: winerack fixes and tests 2021-11-30 21:59:17 -06:00
Eugene Sandulenko
fdcc1d3271
GROOVIE: Fix warning 2021-12-01 00:06:44 +01:00
Die4Ever
7320140b66
GROOVIE: beehive move overrideMoves into class 2021-11-19 18:12:26 -06:00
Coen Rampen
9bcda8ee1b GROOVIE: Fix intro music and move autosave slot
This commit fixes problems with commit acad766 which disabled the open house
savegame in The 7th Guest and The 11th Hour. These games use slot 0 to write a
special savegame when the game has been completed. This conflicts with ScummVM
autosave functionality, which also uses slot 0 by default. To fix this, the
autosave slot has been moved to slot 24, the last available save slot. The
workaround from commit acad766 for saving in slot 0 has been removed.
The intro music is now fixed by checking for a load of slot 0 and not stopping
the music in this case.
2021-11-19 21:06:43 +01:00
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
cb97a47828 GROOVIE: Add MIDI controller defaults for T7G and 11H
The 7th Guest uses the orchestra drumkit by setting it during initialization,
but not at the start of each track. Some tracks temporarily change the drumkit;
if these tracks are stopped at a bad moment, this changed drumkit remains in
effect. This commit sets the drumkit default to the orchestra drumkit to make
sure it is applied at the start of each track.

Some of the MIDI tracks of The 11th Hour use the modulation controller, but not
all tracks reset this controller at the start. This commit sets the modulation
default to 0 to make sure it is reset at the start of each track.
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
Coen Rampen
d042315d0b GROOVIE: Stop current song before playing new song
When playing a new song, ScummVM would update the volume to the standard value
before stopping playback of the current song. This would cause a volume change
right before stopping a song. This commit stops the current song before setting
the volume, which removes the unnecessary volume change.
2021-11-17 21:53:44 +01:00
Coen Rampen
649cb7b450 GROOVIE: Set correct Miles version for 11th Hour
This changes the Miles version for The 11th Hour to version 3. This sets the
pitch bend range to the correct 2 semitones.
2021-11-17 21:53:43 +01:00
Die4Ever
cb473b92f2
GROOVIE: othello some cleanup 2021-11-15 19:47:25 -06:00
Orgad Shaneh
0909948281 GROOVIE: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Filippos Karapetis
ca95bfacee GROOVIE: Format arrays in the Othello mini-game logic 2021-11-14 14:51:31 +02:00
Le Philousophe
7b522dad40 GROOVIE: Fix compilation failure with old GCC 2021-11-14 10:37:21 +01:00
Die4Ever
40b8acad47
GROOVIE: Othello Cursed Coins puzzle for Clandestiny 2021-11-13 19:37:19 -06: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
Eugene Sandulenko
6d94f4dba2
GROOVIE: Dual-license puzzle logic files except cell.cpp 2021-11-13 16:01:52 +01:00
Orgad Shaneh
78ef6203de ENGINES: Fix getSavegameFile for almost all engines
Use kSimpleSavesNames correctly, add where needed, remove where needed.

Trac #12977
2021-11-10 21:49:48 +00:00
Orgad Shaneh
3919f53326 ENGINES: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
Eugene Sandulenko
a9267184f4
ENGINES: Drop cxx11 feature dependency. Now it is always preent 2021-10-31 11:46:26 +02:00
Die4Ever
16ac59987f
GROOVIE: pente cleanup 2021-10-31 03:18:49 -05:00
Die4Ever
7b2150af50
GROOVIE: pente reorder arguments 2021-10-30 20:35:50 -05:00
Die4Ever
84937df1f8
GROOVIE: pente refactor run function 2021-10-30 19:53:45 -05:00
Die4Ever
992fc12c69
GROOVIE: pente refactor and cleanup 2021-10-30 17:35:15 -05:00
Eugene Sandulenko
8d6783e0e9
GROOVIE: Complete WineRack puzzle implementation 2021-10-29 16:59:34 +03:00
Eugene Sandulenko
f510259c3a
GROOVIE: Unstubbed another WineRack puzzle function 2021-10-29 15:58:24 +03:00
Eugene Sandulenko
4539bfa674
GROOVIE: Implemented few WineRack puzzle methods 2021-10-29 14:17:39 +03:00
D G Turner
6e8960c762 GROOVIE: Fix GCC Compiler Warnings 2021-10-29 03:23:25 +01:00
Eugene Sandulenko
fdafab949c
GROOVIE: Added override keyword 2021-10-29 00:45:55 +03:00
Eugene Sandulenko
12fe207f86
GROOVIE: Added logic table to WineRack puzzle 2021-10-29 00:45:55 +03:00
Eugene Sandulenko
7889cb9a9f
GROOVIE: Initial work on WineRack puzzle 2021-10-29 00:45:55 +03:00
Filippos Karapetis
b48d707545 GROOVIE: More work on Clandestiny's wine rack mini-game 2021-10-28 19:37:51 +03:00
Eugene Sandulenko
fec3a9b65d
GROOVIE: Fix warnings 2021-10-28 19:02:59 +03:00