Commit graph

5140 commits

Author SHA1 Message Date
Marcin Kurczewski
820fc307d2
audio: split into smaller functions 2025-04-26 19:19:31 +02:00
Marcin Kurczewski
24b81007ba
audio: fix wrong benchmark times
The decoder benchmark was formatting the wrong variable and produced
meaningless results in the logs.
2025-04-26 19:19:28 +02:00
Marcin Kurczewski
864589bf0a
game-strings: use OG JSON as a fallback in expansions
Resolves #2847.
2025-04-26 19:05:01 +02:00
lahm86
5a50de02ed
door: move door module to TRX
This moves the door module fully to TRX as the logic is identical in
both games.
2025-04-26 19:04:13 +02:00
lahm86
d6fc167749
tr2/objects/door: prevent Lara voiding in closed doors
This uses the same approach as TR1 to avoid Lara voiding in closing/
closed doors that are not placed on portals.

Resolves #2848.
2025-04-26 19:03:52 +02:00
Marcin Kurczewski
2f2f0c6842
tr2/viewport: fix screenshots at wrong resolution
Resolves #2845.
2025-04-26 19:03:16 +02:00
lahm86
4035fe6411
items: replace items by index rather than room
Carried items use NO_ROOM so were not included when replacing guns
with ammo. This ensures everything is checked when replacing IDs.

Resolves #2850.
Resolves #2856.
2025-04-26 19:03:09 +02:00
Marcin Kurczewski
e32a4c270f
docs: fix formatting and mistyped option name 2025-04-26 19:02:57 +02:00
Marcin Kurczewski
c00d0627cf
tr2: release 1.0.1
Some checks failed
Publish a pre-release / TR1 (Linux) (push) Has been cancelled
Publish a pre-release / TR1 (Windows) (push) Has been cancelled
Publish a pre-release / TR1 (Mac) (push) Has been cancelled
Publish a pre-release / TR2 (Linux) (push) Has been cancelled
Publish a pre-release / TR2 (Windows) (push) Has been cancelled
Publish a pre-release / TR2 (Mac) (push) Has been cancelled
Run code linters / Run code linters (push) Has been cancelled
Publish a pre-release / Create a prerelease (push) Has been cancelled
2025-04-24 23:37:15 +02:00
Marcin Kurczewski
a6ebaf5c38
docs/tr2: release 1.0.1 2025-04-24 23:37:10 +02:00
Marcin Kurczewski
3acab0dc34 tr2/ui: improve graphic settings dialog sizing
Some checks are pending
Run code linters / Run code linters (push) Waiting to run
Publish a pre-release / TR1 (Linux) (push) Waiting to run
Publish a pre-release / TR1 (Windows) (push) Waiting to run
Publish a pre-release / TR1 (Mac) (push) Waiting to run
Publish a pre-release / TR2 (Linux) (push) Waiting to run
Publish a pre-release / TR2 (Windows) (push) Waiting to run
Publish a pre-release / TR2 (Mac) (push) Waiting to run
Publish a pre-release / Create a prerelease (push) Blocked by required conditions
Resolves #2841.
2025-04-24 10:36:15 +03:00
lahm86
c590824944 game: prioritize save over load
Some checks are pending
Run code linters / Run code linters (push) Waiting to run
Publish a pre-release / TR1 (Linux) (push) Waiting to run
Publish a pre-release / TR1 (Windows) (push) Waiting to run
Publish a pre-release / TR1 (Mac) (push) Waiting to run
Publish a pre-release / TR2 (Linux) (push) Waiting to run
Publish a pre-release / TR2 (Windows) (push) Waiting to run
Publish a pre-release / TR2 (Mac) (push) Waiting to run
Publish a pre-release / Create a prerelease (push) Blocked by required conditions
This matches OG behaviour where save is preferred over load when both
inputs are detected on the same frame.

Resolves #2833.
2025-04-23 21:43:08 +01:00
lahm86
f590c9243c graphic_settings: add scroll wraparound option
This makes the scroll wraparound option available in both games'
graphics dialogs. TR1's dialog is also updated to allow scrolling until
such times as it's moved to the new UI framework.

Resolves #2834.
2025-04-23 20:43:21 +01:00
lahm86
3030d694a5 tr2/shell: reload background image on aspect change
Resolves #2832.
2025-04-23 20:40:01 +01:00
lahm86
4d36177247 tr2/shell: fix PSX FOV option not being applied immediately
Resolves  #2831.
2025-04-23 20:40:01 +01:00
lahm86
b935707b5b tr2/option_controls: fix selected layout not saving
Resolves #2830.
2025-04-23 20:40:01 +01:00
Marcin Kurczewski
4d5040d15c misc: fix build warnings
Some checks are pending
Run code linters / Run code linters (push) Waiting to run
Publish a pre-release / TR1 (Linux) (push) Waiting to run
Publish a pre-release / TR1 (Windows) (push) Waiting to run
Publish a pre-release / TR1 (Mac) (push) Waiting to run
Publish a pre-release / TR2 (Linux) (push) Waiting to run
Publish a pre-release / TR2 (Windows) (push) Waiting to run
Publish a pre-release / TR2 (Mac) (push) Waiting to run
Publish a pre-release / Create a prerelease (push) Blocked by required conditions
2025-04-23 11:37:52 +02:00
Marcin Kurczewski
e22bf087f6
tr2: release 1.0
Some checks failed
Publish a pre-release / TR1 (Linux) (push) Waiting to run
Publish a pre-release / TR1 (Windows) (push) Waiting to run
Publish a pre-release / TR1 (Mac) (push) Waiting to run
Publish a pre-release / TR2 (Linux) (push) Waiting to run
Publish a pre-release / TR2 (Windows) (push) Waiting to run
Publish a pre-release / TR2 (Mac) (push) Waiting to run
Publish a pre-release / Create a prerelease (push) Blocked by required conditions
Run code linters / Run code linters (push) Has been cancelled
2025-04-23 07:41:34 +02:00
Marcin Kurczewski
c7b5932b94
docs/tr2: release 1.0 2025-04-23 07:41:29 +02:00
Marcin Kurczewski
69b08d55ca tr2/shell: center offscreen window on game launch
Some checks are pending
Run code linters / Run code linters (push) Waiting to run
Publish a pre-release / TR1 (Linux) (push) Waiting to run
Publish a pre-release / TR1 (Windows) (push) Waiting to run
Publish a pre-release / TR1 (Mac) (push) Waiting to run
Publish a pre-release / TR2 (Linux) (push) Waiting to run
Publish a pre-release / TR2 (Windows) (push) Waiting to run
Publish a pre-release / TR2 (Mac) (push) Waiting to run
Publish a pre-release / Create a prerelease (push) Blocked by required conditions
2025-04-22 23:50:14 +02:00
Marcin Kurczewski
169ee7603f tr2/shell: allow negative window x,y 2025-04-22 23:50:14 +02:00
Marcin Kurczewski
4fa521d956 tr2/shell: fix support for dual monitors
Addresses #2820.
2025-04-22 23:50:14 +02:00
Marcin Kurczewski
8133f72e20 tr2/shell: improve moving window around 2025-04-22 22:39:20 +02:00
Marcin Kurczewski
05876ba9c4 tr2: improve reacting to resizes
Addresses parts of #2820.
2025-04-22 21:12:58 +02:00
Marcin Kurczewski
aaf58ba623 tr2: remove environment texture
It's not used at the moment.
2025-04-22 21:12:58 +02:00
Marcin Kurczewski
f8560b4fd5 ui: fix fader memory violation
Resolves #2821.
2025-04-22 20:14:09 +02:00
Marcin Kurczewski
0adefabf41 data: use HD assets
Some checks are pending
Run code linters / Run code linters (push) Waiting to run
Publish a pre-release / TR1 (Linux) (push) Waiting to run
Publish a pre-release / TR1 (Windows) (push) Waiting to run
Publish a pre-release / TR1 (Mac) (push) Waiting to run
Publish a pre-release / TR2 (Linux) (push) Waiting to run
Publish a pre-release / TR2 (Windows) (push) Waiting to run
Publish a pre-release / TR2 (Mac) (push) Waiting to run
Publish a pre-release / Create a prerelease (push) Blocked by required conditions
2025-04-22 16:14:32 +02:00
lahm86
004e6b4b4a gym: fix compiler warning 2025-04-22 11:54:01 +01:00
Marcin Kurczewski
953f30205e build: offload binary assets to TRX-data 2025-04-22 12:37:43 +02:00
Marcin Kurczewski
b912917d81 build: skip installer builds for PRs 2025-04-22 11:54:31 +02:00
lahm86
e9c4404c5d gym: calculate best time automatically
This removes the need to store the current best time as it is always
the first completed entry's time (or -1 if no completions).

Resolves #2812.
2025-04-22 10:35:39 +01:00
Marcin Kurczewski
daf6dc3020 output: allow aspect-ratio specific images 2025-04-22 09:08:56 +02:00
Marcin Kurczewski
fbc26fcba6 docs: update logos
Some checks are pending
Run code linters / Run code linters (push) Waiting to run
Publish a pre-release / Build TR1 (push) Waiting to run
Publish a pre-release / Build TR2 (push) Waiting to run
Publish a pre-release / Create a prerelease (push) Blocked by required conditions
2025-04-21 18:38:40 +02:00
Marcin Kurczewski
e8ef98d893 inventory: merge g_Inv_Mode to libtrx
Some checks are pending
Run code linters / Run code linters (push) Waiting to run
Publish a pre-release / Build TR1 (push) Has been skipped
Publish a pre-release / Build TR2 (push) Has been skipped
Publish a pre-release / Create a prerelease (push) Has been skipped
2025-04-21 13:55:56 +02:00
Marcin Kurczewski
938dffddce tr2/flares: fix thrown flares embedding in the ground 2025-04-21 12:16:44 +02:00
Marcin Kurczewski
0654940d6f tr2/flares: fix flicker in 60 fps
Resolves #2806. The OG mistakenly used the wrong arm (right instead of
left) to determine the flare light position in
`Lara_GetJointAbsPosition_I`. At 60 FPS, this mistake caused Lara's hand
position to appear significantly off from the expected location, which
coincidentally led to the flicker effect disappearing. While fixing the
bone did position Lara's hand correctly, it didn't bring back the
missing flicker at 60 FPS. In fact, it caused the flicker effect to
disappear at 30 FPS as well, making it static at both frame rates. It
turned out that although the game does randomize the position of the
flares' light source, it doesn't do so sufficiently. The primary cause
of the flickering was actually the randomness introduced by using the
incorrect bone. To restore the flicker effect to how it originally
appeared, I had to enhance the randomness of the flare's light position.
2025-04-21 10:38:36 +02:00
Marcin Kurczewski
9667be9f0e tr1/output: fix splash and bubbles having UW tint
Some checks are pending
Run code linters / Run code linters (push) Waiting to run
Publish a pre-release / Build TR1 (push) Has been skipped
Publish a pre-release / Build TR2 (push) Has been skipped
Publish a pre-release / Create a prerelease (push) Has been skipped
Resolves #2793.
2025-04-20 22:35:13 +02:00
Marcin Kurczewski
962a66a090 output: tidy shade constants 2025-04-20 21:58:51 +02:00
lahm86
cd67279fc7 tr2/objects/gondola: save gondola position
This updates gondola objects to have their positions saved in order to
be able to restore them correctly on load when they've been destroyed.
Legacy saves will ignore this.

Resolves #1612.
2025-04-20 20:44:37 +01:00
Marcin Kurczewski
6e48174a92 config: fix assault course times reset on quit
Resolves #1578.
2025-04-20 21:25:45 +02:00
Marcin Kurczewski
c2b005cec5 gym: improve ASSAULT_STATS structure 2025-04-20 21:25:45 +02:00
lahm86
ae37db2cf8 tr2/objects/boat: use const for Y shift 2025-04-20 19:41:03 +01:00
lahm86
0c0ce5bcf6 tr2/objects/boat: fix initial water height test
This fixes the boat's initial water height test when Lara is climbing
on to avoid tinting it unnecessarily.

Resolves #2787.
2025-04-20 19:41:03 +01:00
Marcin Kurczewski
747f0af086 ui/stats: fix assault course dialog 2025-04-20 19:19:33 +02:00
Marcin Kurczewski
f29e30ffe2 ui/requester: fix scrolling for nonselectable dialogs 2025-04-20 19:19:33 +02:00
Marcin Kurczewski
d8b83e4747 gym: move to trx 2025-04-20 19:19:33 +02:00
Marcin Kurczewski
7a4e188eaa misc: remove REQUEST_INFO 2025-04-20 17:07:49 +02:00
Marcin Kurczewski
33617deba7 ui: port play any level dialog to trx 2025-04-20 17:07:49 +02:00
Marcin Kurczewski
f23a777f64 ui: move select level dialog to libtrx 2025-04-20 17:07:49 +02:00
Marcin Kurczewski
7f574c9448 ui: merge save slot dialog via libtrx 2025-04-20 17:07:49 +02:00