140 Commits

Author SHA1 Message Date
athrxx
633f33d056 BLADERUNNER: add comment 2021-11-01 16:20:47 +01:00
athrxx
df94220554 BLADERUNNER: encode ingame save description to UTF-8 2021-11-01 16:20:47 +01:00
athrxx
1f10ab5bd5 BLADERUNNER: fix encodings for save descriptions
If you type save names like e. g. "äöüß" in the GMM this will now show up correctly in the ingame save/load dialogs.

You still cannot type these characters ingame due to the current implementation of UIInputBox::charIsValid(char kc). I don't know why. If I comment out this function and simply return true it works just fine for me. So it is not a limitation of the font (although I am playing the English version).

Still, I haven't changed that behavior, since I am not familiar with the engine...If the only reason for charIsValid() was the wrong encoding it might make sense to limit or even remove it.
2021-11-01 16:20:47 +01:00
Orgad Shaneh
fe104cc337 ENGINES: Use MetaEngine consistently for getting autosave slot
The autosave refactoring that was done in
7adad5aaf5831dc5adcee140f38aacc4a5db2518 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 7adad5aaf5831dc5adcee140f38aacc4a5db2518.
2021-10-24 16:46:06 +02:00
Paul Gilbert
0136043f09 COMMON: Revert Change Rect and Point to have int32 fields
This reverts commit 1c3e7fb4e9e761b26840ca7dd785e80dfa639f18.
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
e2f3583738 BLADERUNNER: RESTORED CONTENT: Crazylegs letter to Dektora
CrazysInvolvement clue, connected to the ADVERTISEMENT (cut) dialogue option
2021-06-27 15:00:32 +03: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
antoniou79
7a2a53b9ff BLADERUNNER: RESTORED CONTENT: Start some music at random second 2021-06-14 16:27:19 +03:00
antoniou79
8be60bb257 BLADERUNNER: Special mark for clues shared with Mainframe
These changes are for Restored Content

The special mark is a different background color, and applies only in KIA when hacked with Bob's hack.
Also tweaked the Mainframe voiceover reporting "no clues transferred" to refer to both uploading and downloading
and only play once at the end (when applicable)
2021-05-31 13:24:05 +03:00
antoniou79
f4fed91a3e BLADERUNNER: Don't upload intangible clues to Mainframe
Change only for Restored Content mode

If KIA hacking is to be important, the player must be able to control exactly what is uploaded to Mainframe.
Intangible clues do not show up in KIA, so the player cannot control sharing them with Mainframe.
Most of them are supposed to not be shared anyway (or some are wrongly set as Intangible and will be fixed in a future bug fix).
Also in Restored Content mode, the mainframe reports (with voiced quote) if clues have been transfered,
so the player would be confused if intangible clues were transfered, since they won't appear in the KIA.
2021-05-31 02:03:11 +03:00
antoniou79
33fdc6045f BLADERUNNER: Fix alignment issues with hidden clues
Original Bug.

Hidden clues would appear left aligned without left padding, after setting them as hidden (right click),
then switching to another KIA tab and back to the clues/suspect/crime tab with the hidden clue.
All other clues appear with padding 6. Now, so do the hidden ones.
2021-05-31 01:01:52 +03: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
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
D G Turner
b75a34e179 BLADERUNNER: Fix Set-But-Unused GCC Compiler Warning 2021-03-13 16:13:52 +00:00
antoniou79
45448f93da BLADERUNNER: Fix for when talking characters get interrupted 2020-12-20 18:10:08 +02:00
Eugene Sandulenko
561a0a61be BLADERUNNER: Fix warnings 2020-11-14 19:27:08 +01:00
antoniou79
5d8ee54f65 BLADERUNNER: Remove UI language selection
Since it's not ready for production yet for 2.2.0
2020-09-02 23:52:03 +03:00
Thanasis Antoniou
5552a9eed5 BLADERUNNER: Fix comment about dropdown menu in KIA settings 2020-06-10 12:49:03 +03:00
Thanasis Antoniou
02d47a1d45 BLADERUNNER: Scrollable dropdown control for KIA (WIP)
Current purpose is for text language selection

Drop down list for language selection in KIA (early stage)
2020-06-10 12:33:05 +03:00
Thanasis Antoniou
cd076b26ae BLADERUNNER: Using preincrement and pre-decrease where possible
In case the compiler won't optimize such cases
2020-02-24 21:24:06 +02:00
Thanasis Antoniou
d488ec3c05 BLADERUNNER: Improve simulation of original KIA quit behavior 2020-02-18 00:58:53 +02:00
Bastien Bouclet
79efd3c46e BLADERUNNER: Add override keywords 2020-02-09 12:43:14 +01:00
Thanasis Antoniou
7bf340427c BLADERUNNER: Extend max saved game's name length to 41 chars
41 is the original's name size and resolves truncated autosave names in localized versions

Fixes bug #11340
Saves version is increased to "3" (in savefile.h) now, so only new versions of the engine will be able to open the save files with the larger field for the saved game's name
2020-02-06 00:14:53 +02:00
Thanasis Antoniou
1b584ebf32 BLADERUNNER: Fix "Type a name" text in KIA save screen 2020-02-06 00:10:57 +02:00
Thanasis Antoniou
882dd06f52 BLADERUNNER: More fixes for cut or muted lines across localizations
Based on notes from IlDucci from the Spanish translation team and mine
2020-02-03 00:01:15 +02:00
Eugene Sandulenko
03fafe8cb7 BLADERUNNER: Added override keywords 2020-01-31 12:53:02 +01:00
Thanasis Antoniou
06cee1bd92 BLADERUNNER: Add the adjustment value to vk stats (debugger) 2020-01-24 12:45:36 +02:00
Thanasis Antoniou
37b8ab4d4c BLADERUNNER: Use accented i in subtitles label in KIA (Spanish version) 2020-01-18 04:28:58 +02:00
Thierry Crozat
ca781b7389 BLADERUNNER: Use virtual keyboard feature in save screen
This is used on platforms that have a virtual keyboard, such
as iOS, to show/hide the virtual keyboard when we expect text
input.
2019-12-23 18:06:50 +01:00
Thanasis Antoniou
4af463476b BLADERUNNER: Fix wrong order for GPS map selection 2019-11-08 16:28:18 +02:00
Peter Kohaut
cd7e44f9f9 BLADERUNNER: Group shapes loading 2019-10-13 14:09:47 +02:00
Cameron Cawley
3fdb8e6542 BLADERUNNER: Replace use of sprintf with Common::String::format 2019-09-30 03:59:22 +01:00
Thanasis Antoniou
7c20b07ffb BLADERUNNER: Add engine gui option to avoid use of delayMillis() 2019-09-16 12:00:25 +03:00
Cameron Cawley
c786b139db BLADERUNNER: Remove use of unaligned memory access (#1839) 2019-09-12 22:02:52 +02:00
Cameron Cawley
d8820de8b0
BLADERUNNER: Fix -Wsign-compare warning 2019-09-10 22:36:22 +01:00
Thanasis Antoniou
f5b79a4cdf BLADERUNNER: Play full exit KIA sound before quit via KIA 2019-09-09 21:09:36 +03:00
Peter Kohaut
94b9304014 BLADERUNNER: Improved support for Russian translations
Adds support for Home Systems, Inc. + Siberian Studio R4 translation
patch.
Added name scrambling algorithm from R4 patch.
Fixed R3 support (previously was not named).

closes #11102
2019-09-07 21:18:20 +02:00
Thanasis Antoniou
ac912a5023 BLADERUNNER: Revert previous changes in clues listing
Keep the important bug fix which was in KIASectionSuspects::populateAcquiredClues

Some of the changes in the previous commit were due to confusing the role of the getClueIdByIndex method
2019-09-05 13:17:53 +03:00
Thanasis Antoniou
5941ab7858 BLADERUNNER: Fix displaying of clues in KIA
Fixes bug where clues with no type would appear in KIA sections

"End of Act 2" would appear in Sadik's and Clovis' suspect pages, and in Bradbury crime page, whereas Sadik's photo would not appear in Sadik's page.
2019-09-05 10:39:51 +03:00
Peter Kohaut
89384b9124 BLADERUNNER: Framelimiter simplification 2019-09-04 21:26:37 +02:00
Thanasis Antoniou
fd7fd3a18b BLADERUNNER: Isolate new frame limiter code in new class 2019-09-01 16:39:36 +03:00
Peter Kohaut
a7399c5111 BLADERUNNER: Use best pixel format on every platform
Updated all drawing routines to be pixel format agnostic.
Might decrease performance.
2019-08-31 23:09:19 +02:00
Thanasis Antoniou
85fbb3ad08 BLADERUNNER: Addendum for removal of delayMillis 2019-08-31 20:06:37 +03:00
Thanasis Antoniou
a99e8d7bab BLADERUNNER: Replace delayMillis(10) calls with software timers 2019-08-31 19:19:32 +03:00
Thanasis Antoniou
c8a23cc401 BLADERUNNER: Fix unsorted args for getRandomNumberRng
Fix for bug #11034
2019-07-29 13:57:56 +03:00
Thanasis Antoniou
8f9927608b BLADERUNNER: prevent seg fault when opening KIA
Only if a restored content save was loaded in original game mode
2019-07-28 22:52:18 +03:00
Thanasis Antoniou
4b482b2d3e BLADERUNNER: prevent seg fault in ESPER
Also added CLIP to all getBasePtr() calls where it would seem appropriate/safer to do so
2019-07-28 14:06:26 +03:00
Thanasis Antoniou
e232d57855 BLADERUNNER: Restore KIA 3d model descriptions 2019-07-23 18:46:17 +03:00