Commit graph

699 commits

Author SHA1 Message Date
Marcin Kurczewski
c2a930a1cb tr2/shell: add -l argument support 2025-03-11 13:50:03 +01:00
Kappa971
1336767f06 Update tr2 CHANGELOG.md 2025-03-11 13:13:50 +01:00
Kappa971
32cc0a6ec4 tr2/config-tool: Add Italian translation 2025-03-11 13:13:50 +01:00
Marcin Kurczewski
8a0c695b02 tr2: add 60 fps 2025-03-09 17:03:01 +01:00
lahm86
1a8d956f55 tr2/movable_block: fix falling pushblock SFX
This makes falling pushblocks use the correct SFX when they land.

Resolves #2193.
2025-03-08 21:32:22 +00:00
lahm86
34ff171fa3 tr2/movable_block: fix pushblock stacking issues
This resolves issues with being unable to stack pushblocks across
multiple rooms.
2025-03-08 21:32:22 +00:00
lahm86
e89d6932bf tr2/movable_block: fix falling pushblock height issues
This resolves falling pushblocks causing various floor height issues
depending on where they are placed above the floor.
2025-03-08 21:32:22 +00:00
lahm86
8621b05dd8 tr2/room: fix floor height alteration creating walls
This fixes altering the floor height to a wall in the case where
pushblocks have been stacked and the one on top is touching the
ceiling.
2025-03-08 21:32:22 +00:00
lahm86
c5757957b9 lara/cheat: prevent fly cheat after exploding death
Some checks failed
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
Run code linters / Run code linters (push) Has been cancelled
This prevents the fly cheat from being used after the explosion cheat.

Resolves #2584.
2025-03-06 13:46:18 +00:00
lahm86
206b4d5cb5 tr2/lara/misc: fix landing damage check
This brings TR2 into line with TR1 when Lara has landed bad, so that
later checks can make decisions on the goal anim state more accurately.

Resolves #2575.
2025-03-06 13:14:31 +00:00
lahm86
9347a71b7c tr2/demo: restore config caching on demo start
Resolves #2574.
2025-03-02 18:29:16 +00:00
lahm86
620dd6724b tr2/game_flow: fix losing NG+ flag in saves
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
This postpones the fix for #2515 in TR2 because of the way the original
savegame is loaded; the bonus flag is otherwise lost because of the
sequence of events.

Resolves #2566.
2025-03-02 13:41:58 +00:00
lahm86
18fa738260 tr2/option_passport: restore play any level in gym
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 #2564.
2025-03-01 16:24:46 +00:00
lahm86
6044b08a4d tr2/option_passport: restore new game text for play any level
Resolves #2563.
2025-03-01 16:24:46 +00:00
walkawayy
3808fa7c28
inventory: limit max item quantities to fix crashing (#2554)
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 #2497.
2025-02-28 19:58:51 -05:00
lahm86
798dc168f0 camera: fix unchecked NO_HEIGHT usage
This resolves an OG bug whereby the camera shift could result in
extremely large values when NO_HEIGHT is involved, hence resulting in
the camera going out of bounds for a frame or so. We now check for this
case and use the previous valid Y position of the camera.

Resolves #1034.
2025-02-28 22:13:03 +00:00
lahm86
307daff7ad tr2/inventory: fix level number for play any level
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
This increments the selected level to play only if there is a gym level
present.

Resolves #2560.
2025-02-27 21:01:19 +00:00
lahm86
f98d5a3574 tr2/inventory: fix flare pickup quantity
Some checks failed
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
Run code linters / Run code linters (push) Has been cancelled
This ensures we always add 6 flares when Lara picks up item 151. The
other logic for single flares is required for gameflow flare additions,
like in Great Wall.

Resolves #2551.
2025-02-25 13:23:59 +00:00
lahm86
b1e24182fc tr2/flares: fix flare throw reset test
Some checks failed
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
Run code linters / Run code linters (push) Has been cancelled
This reverts to testing open upper end frame range when Lara throws a
flare.

Resolves #2545.
2025-02-23 10:27:32 +00:00
Marcin Kurczewski
ed2281d1d7 tr2/commands: add /wireframe and /cheats
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 #2500.
2025-02-21 14:00:50 +01:00
Marcin Kurczewski
018c1925ed room: remove unused functions
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-02-21 10:01:28 +01:00
lahm86
a187d535a7 tr2/objects/window: unblock box on savegame load
This ensures that the box where a window sits is unblocked if the
window has already been smashed and the game is loaded from a save.

Resolves #2535.
2025-02-20 17:11:02 +00:00
Marcin Kurczewski
797f68a8b7
Merge branch 'stable' into develop
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-02-19 09:19:40 +01:00
Marcin Kurczewski
9ebdc96547
docs/tr2: release 0.9.2
Some checks failed
Run code linters / Run code linters (push) Has been cancelled
2025-02-19 09:18:25 +01:00
Marcin Kurczewski
e33395d1a9
tr2/game-flow: fix saves losing secret rewards
Resolves #2528.
2025-02-19 09:18:13 +01:00
Marcin Kurczewski
9ec588813d
filesystem: fix checking for directory existence
Resolves #2504.
2025-02-19 09:18:11 +01:00
Marcin Kurczewski
fb9b111dfc tr2/game-flow: fix saves losing secret rewards
Resolves #2528.
2025-02-19 09:18:05 +01:00
Marcin Kurczewski
c32141c0f1 filesystem: fix checking for directory existence
Resolves #2504.
2025-02-19 09:17:31 +01:00
Marcin Kurczewski
5f936d0b45 objects: merge type definitions; tidy member names 2025-02-17 21:47:01 +01:00
Marcin Kurczewski
fc2b06846b
docs/tr2: release 0.9.1 2025-02-15 19:36:05 +01:00
Marcin Kurczewski
35e4ceeffb tr1/passport: refactor input processing 2025-02-15 19:21:51 +01:00
Marcin Kurczewski
4702d7e782 tr2/savegame: fix reading bools crashing on Linux
Resolves #2508.
2025-02-15 19:21:42 +01:00
Marcin Kurczewski
e4bc78cdbe filesystem: fix resolving case sensitive paths
Resolves #2504 and #1934.
2025-02-15 17:00:56 +01:00
Marcin Kurczewski
0e04acd901 game-buf: rewrite to use arena allocator 2025-02-14 23:47:35 +01:00
Marcin Kurczewski
2408972070
docs/tr2: release 0.9 2025-02-14 09:19:16 +01:00
lahm86
5dcda1f314 tr2/sound: fix sound slot issues
This resolves problems when the sound slot list is full but the game
continue to try to play further SFX. The previous result would be that
some sounds would be permanently disabled, or some could start playing
but become untracked.

Resolves #2494.
2025-02-13 12:07:34 +00:00
Marcin Kurczewski
2ecb4c18d0 tr2/text: fix scaling dragon icons
Resolves #1631.
2025-02-10 13:46:51 +01:00
Marcin Kurczewski
6009a57782 tr2/option/passport: rewrite and simplify
Resolves #2346. Resolves #2263.
2025-02-10 13:46:44 +01:00
Marcin Kurczewski
1d10559202 tr2/game-flow: fix /play keeping Lara's inventory
Resolves #2267.
2025-02-09 23:46:30 +01:00
lahm86
efe124c60e level: allow empty SFX data while reading
This allows reading levels that contain no SFX data.

Resolves #2460.
2025-02-08 18:24:05 +00:00
Marcin Kurczewski
43dea40a12 output: remove screen plane clipping 2025-02-06 10:18:13 +01:00
Marcin Kurczewski
0f2d3d71f0 cmd: add new /music command 2025-02-03 13:52:03 +01:00
Marcin Kurczewski
a5f0f61251 cmd: add new /gym command 2025-02-02 23:02:05 +01:00
Marcin Kurczewski
ed18dcce71 cmd/demo: add console log when playing a demo 2025-02-02 23:02:05 +01:00
Marcin Kurczewski
77b711dbc6 cmd: add new /cutscene command 2025-02-02 23:02:05 +01:00
lahm86
71cd31d7ab camera: store cinematic frames in camera module
This moves cinematic frames into a new common camera cinematic module;
they should only be changed on level reading.

This also adds checks to TR2 in case there are no frames and a
cinematic is loaded.

Resolves #2413.
2025-02-02 10:09:23 +00:00
Marcin Kurczewski
5139c16838
input: fix saving custom controller layout
Resolves #2422.
2025-02-01 19:13:36 +01:00
lahm86
0e025b65ac output: raise TR2 texture limits
This removes the cap on object and sprite textures in TR1 and TR2, and
raises the TR2 page limit to 128.

Resolves #1795.
Resolves #1796.
2025-01-28 17:43:59 +00:00
lahm86
18de1465d2 tr2/game_buf: expand game memory limit
This raises TR2's game_buf limit to match TR1, at 128 MB.
2025-01-28 17:43:59 +00:00
lahm86
bd829fa465 docs: remove unnecessary entry
Photo mode is unreleased in TR2 so the entry for #2362 is not relevant.
2025-01-28 09:17:06 +00:00