Commit graph

262 commits

Author SHA1 Message Date
antoniou79
c7b8025e4e BLADERUNNER: Add debug command to show initial random seed
Also reveals the nature of the variable characters for the game

Debug command is "cheat"
2024-08-14 14:53:26 +03:00
antoniou79
4791bb0646 BLADERUNNER: Fix random seed generation for new game
Generates a new seed for random numbers at the exact point when a new game starts to initialize

Additionally, this command will use a custom seed, if any (set from ScummVM Global Options), for the new game.
And, this avoids the issue of intermediate calculations of random numbers, during setup() initializations
(via initScript.SCRIPT_Initialize_Game()) or in KIA menu, eg. when adjusting speech volume, before starting a new game,
which would result in the new game starting with a different seed than the one set from ScummVM Global Options.
2024-08-09 20:33:19 +03:00
antoniou79
4e553baca9 BLADERUNNER: Move bootparm management outside initChapterAndScene()
This fixes a (potential) crash when launching ScummVM with boot params and then starting a NEW GAME from KIA menu

Example of cmd line that would lead to crash in the above scenario: scummvm -d0 -b 4021004 bladerunner-win
2024-08-09 20:30:18 +03:00
antoniou79
94d782c27c BLADERUNNER: Maintain designers cut setting in New Game
Allow keeping the designers cut mode if the player sets it in KIA before starting a New Game

This is different from the original behavior, but the code for RC01 (a dialogue cue from the intro is intended to be skipped in designers cut mode) shows that is the intended behavior. Also, setting McCoy's mood in KIA before starting a New Game, maintains the setting, so this change is also consistent with that behavior.
2024-08-08 23:10:23 +03:00
antoniou79
26bef51149 BLADERUNNER: Better drawing of zbuff via debugger
Avoids recycling colors which makes it more easy to understand, with the side-effect of not being very colorful
2024-01-28 15:28:04 +02:00
Le Philousophe
db6fcfcc24 BLADERUNNER: Migrate engine to Path 2023-12-24 13:19:25 +01:00
Eugene Sandulenko
ec2dd2726b ENGINES: Added optional parameter to canSave/LoadGameStateCurrently() for indicating the reason 2023-12-08 12:21:16 +01:00
sluicebox
1e546bf51d BLADERUNNER: Remove extra event arrays. PVS Studio V575
The intent was to create a Common::Array with a maximum capacity of 20.
Instead, _activeCustomEvents was a C array of 20 Common::Arrays.
The -> operator accesses the first element of a C array, so the first
Common::Array was always used.
2023-10-31 14:20:29 -07:00
Vladimir Serbinenko
91ab581ede BLADERUNNER: Support merging of CDs in original layout.
Right now we ask user to reshuffle files. After this commit it's
possible to just merge contents of all CDs.
2023-05-20 23:27:14 +02:00
antoniou79
6e63fb0336 BLADERUNNER: Don't show subtitles message for demo
This is with regard to the warning message about missing subtitles and where to find them
2023-04-08 10:56:41 +03:00
Eugene Sandulenko
fb7095f5a4
COMMON: Move all compression-related files to a separate directory 2022-12-01 11:53:02 +01:00
Cameron Cawley
e04000d4b0 COMMON: Move FFT, DCT, MDCT, RDFT, SineTable, CosineTable and getSineWindow into Math 2022-11-20 14:32:05 +01:00
antoniou79
94adf33dd5 BLADERUNNER: Add checkbox for fixing Spanish credits 2022-11-17 19:09:18 +02:00
Donovan Watteau
16e2068aec JANITORIAL: Fix various single-character typos 2022-11-11 20:55:56 +01:00
Hubert Maier
d45170ac55
Update bladerunner.cpp
noticable -> noticeable
2022-10-27 15:56:09 +02:00
antoniou79
2b5f0c7177 BLADERUNNER: Fix regression for toggling clue privacy
This KIA hotkey was not considered when switching to the ScummVM keymapper
2022-07-15 11:08:40 +03:00
antoniou79
f64ac55443 BLADERUNNER: Support font hd and subtitles code cleanup
In preparation for subtitles v7 and queuing system
2022-07-06 14:46:57 +03:00
antoniou79
42a0025aed BLADERUNNER: Support secondary subtitles
Main for debugging and fun stats in shooting range and VK test for now
2022-06-30 01:00:06 +03:00
antoniou79
8aaee0fb4e BLADERUNNER: Add checkbox for no subtitles in intro crawl
This also covers the Blade Runner Logo and the Westwood Studios logo
2022-06-30 01:00:05 +03:00
Peter Kohaut
fc98faf01a BLADERUNNER: Mark enhanced edition as unsupported 2022-06-28 23:48:22 +02:00
antoniou79
77e3979c79 BLADERUNNER: Detection and launch support for demo
Demo is the sizzle2 VQA/VQP early teaser for Blade Runner
2022-05-11 23:42:43 +03:00
antoniou79
3eeb4c9023 BLADERUNNER: Add extra conditions for canLoadGameStateCurrently() 2022-05-11 23:07:38 +03:00
antoniou79
52e283a758 BLADERUNNER: Use static const for screen dimensions
Instead of the literals 640 for width and 480 for height
2022-05-11 23:07:38 +03:00
antoniou79
d30e952802 BLADERUNNER: Mute music and sfx for on-demand outtakes 2022-05-08 19:04:49 +03:00
antoniou79
e68142d3e6 BLADERUNNER: Add support for old v2 VQAs
These are VQAs with companion VQP files used for Blade Runner teaser (Sizzle reel)
2022-05-07 22:54:25 +03:00
antoniou79
043cc1c8fb BLADERUNNER: Add extra conditions for canSaveGameStateCurrently() 2022-05-07 22:54:25 +03:00
antoniou79
7145c863be BLADERUNNER: Add an outtake command to debugger 2022-04-13 22:50:59 +03:00
antoniou79
c2aa001fbd BLADERUNNER: Add confirm and delete keymaps for KIA 2022-04-06 13:06:26 +03:00
antoniou79
6c300519b1 BLADERUNNER: Use keymapper with proper events for the game 2022-04-03 22:51:33 +03:00
antoniou79
c43abab5e8 BLADERUNNER: Spacebar key also skips cutscenes
This is the original's behavior also.

Spacebar key does not skip dialogue.
2022-03-05 22:19:25 +02:00
antoniou79
5d5fb34aa1 BLADERUNNER: Check for recoil jitter
Check if on actor click and on item click

This is the original's behavior too
2022-02-21 22:21:47 +02:00
antoniou79
2362e857a7 BLADERUNNER: Don't open KIA if McCoy is moving
This behavior is in the original engine too.
2022-02-21 22:15:13 +02:00
antoniou79
942aee68d9 BLADERUNNER: Further optimization for key input
Support for repeated input for symbols and extended ASCII keys

Also keypad return works now just like the Enter key, and SHIFT+key when spammed results in the correct key being repeated.
2022-02-15 23:44:28 +02:00
antoniou79
92393d228b BLADERUNNER: Allow for repeated keys (key spamming)
Added space, backspace and latin letters and numbers (for save game screen)

Space can also be spammed with a visible result in-game (ie. not only in KIA save screen)
2022-02-15 18:05:52 +02:00
Le Philousophe
9f84198643 ANDROIDSDL: Remove deprecated port 2022-02-06 21:34:08 +01:00
antoniou79
87108db0a1 BLADERUNNER: Disable ScummVM autosaving
Also slightly update the cases for canSaveGameStateCurrently()

The game has its own autosave mechanism (at the start of each new Act). Also currently the label for the ScummVM autosave can be in the wrong language (since it is in the ScummVM's GUI language, but not necessarily in the game's own GUI language) and in KIA it could appear illegible as "?????? ??????" for non Latin languages.
2022-01-14 00:31:40 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Alexandre Detiste
6044504762 JANITORIAL: typos
some in the variable names, some in the comments;
no change for the strings that interract with original games assets
2021-10-31 20:46:31 +01:00
Orgad Shaneh
fe104cc337 ENGINES: Use MetaEngine consistently for getting autosave slot
The autosave refactoring that was done in
7adad5aaf5 used g_engine for identifying the
autosave slot. This worked for in-game save/load, but doesn't fit when
called from the launcher.

Fix by passing MetaEngine to SaveStateDescriptor ctor and using it for this
query.

Amends 7adad5aaf5.
2021-10-24 16:46:06 +02:00
Paul Gilbert
0136043f09 COMMON: Revert Change Rect and Point to have int32 fields
This reverts commit 1c3e7fb4e9.
2021-07-06 20:35:42 -07:00
Paul Gilbert
1c3e7fb4e9 COMMON: Change Rect and Point to have int32 fields 2021-07-04 18:24:26 -07:00
antoniou79
2055810930 BLADERUNNER: Restore original UI slider for ambient volume
Using the Mixer's kPlainSoundType for ambient sounds
2021-07-02 17:20:37 +03:00
antoniou79
95b14a9ab6 BLADERUNNER: Fix KIA blink at Esc on last line spoken
Also restore dual skip funtionality for Esc and Return keys down (video and spoken non-queued dialogue)

Previous behavior restored as a quality of life feature, that is quite practical on eg. Android port (easy access to "Esc", not so easy to "Return"). The issues that led to reverting previous to the original behavior (only Esc key for video, only Return key for dialogue) should be resolved now by the intermediate commits.
2021-06-16 21:45:01 +03:00
antoniou79
647e3e3b15 BLADERUNNER: Fix for resuming while a special loop plays
This is a better fix for the Zuben soup dump glitch (no exits) if user holds Esc down
2021-06-16 18:25:25 +03:00
antoniou79
486d0da5d9 BLADERUNNER: Only use Return key to skip dialogue
Also only use Esc key to skip video cutscenes

This is replicating the original's behavior and at least for the dialogue skipping, it fixes a few glitches (KIA screen blinking if skipping the last dialogue line with Esc key, and Zuben throwing the soup leading to a dead end, if user presses Esc fast during that sequence).
2021-06-15 15:20:25 +03:00
sluicebox
8e1d90f8e4 ALL: Remove clearAllDebugChannels() from Engine dtors 2021-06-14 12:42:38 -05:00
antoniou79
f3113cf45d BLADERUNNER: More precise naming for time delay vars and parameters
Also use u suffix for unsigned int literal parameters (WIP)
2021-06-14 16:27:19 +03:00
ysj1173886760
a5bb79d6fd BLADERUNNER: move debug channels to metaEngineDetection 2021-05-22 01:34:57 +02:00
Eugene Sandulenko
901f05fca3
BLADERUNNER: Save full size thumbnails into saves. This bumps the save version to 4.
The original format compatibility quirks should stay working
2021-04-17 15:04:36 +02:00
Eugene Sandulenko
b981e34cc8
JANITORIAL: Remove trailing spaces 2021-04-17 15:04:36 +02:00