Commit graph

5169 commits

Author SHA1 Message Date
Marcin Kurczewski
454d133db7 tr2/option: add fov to the graphic options
Resolves #2728.
2025-04-13 09:08:11 +02:00
Marcin Kurczewski
c6d1b4b996 tr2/option: adjust faster unless holding slow 2025-04-13 09:08:11 +02:00
Marcin Kurczewski
bfbc54963d tr2/option: fix psx_fov naming 2025-04-13 09:08:11 +02:00
Marcin Kurczewski
60534c4bef tr2/output: fix crashes in large rooms
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 #2749.
2025-04-12 23:51:30 +02:00
lahm86
9b073d69f3 tr1/room: add support for antitriggers
This allows antitriggers to be used like in TR2+.

Resolves #2580.
2025-04-12 22:33:40 +01:00
Marcin Kurczewski
7895617006 anims: fix crash when an anim has no frames
Resolves #2746.
2025-04-12 23:27:28 +02:00
Marcin Kurczewski
a12e5f523c docs: link water color entries to the main table 2025-04-12 23:27:16 +02:00
Marcin Kurczewski
f258d6de05 tr2: add ability to skip cutscenes
Resolves #2127.
2025-04-12 22:34:57 +02:00
Marcin Kurczewski
e3d1fdc4da tr1/game-flow: fix skipping cutscenes
Resolves #2743
2025-04-12 22:34:57 +02:00
Marcin Kurczewski
cec3c8d235 config: rename enable_cine to enable_cutscenes 2025-04-12 22:34:57 +02:00
Marcin Kurczewski
72c67d7973 config: add/improve enable_legal option
Resolves #2740. Resolves #2741.
2025-04-12 22:33:59 +02:00
Marcin Kurczewski
34da7a31ad config: fix default water color inconsistencies
It diverged from the documented values due to rounding errors.
2025-04-12 22:33:50 +02:00
Marcin Kurczewski
384000ef7f docs: add water color previews 2025-04-12 22:33:50 +02:00
Marcin Kurczewski
f980e4f22c game-flow: allow string hex values 2025-04-12 22:33:50 +02:00
Marcin Kurczewski
1f6f85b0af config: save water color as hex 2025-04-12 22:33:50 +02:00
Marcin Kurczewski
571ac73cb0 docs: extract water tables to its own section 2025-04-12 22:33:50 +02:00
Marcin Kurczewski
fec09ad56b tr2: fix crashes when the images are missing
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
Also relaxes constraints around missing images.
2025-04-12 20:18:04 +02:00
lahm86
d57b2b9234 effects: raise TR2 effects limit
This raises the TR2 effects limits from 100 to 1000, like TR1. The
constant has been renamed for TR1 as well for consistency.

Resolves #1581.
2025-04-12 16:42:06 +01:00
lahm86
28fc94a89f pathing: raise TR2 creature slot limit
This brings TR2 into line with TR1 in terms of the maximum number of
enemies at a time.

Resolves #1624.
2025-04-12 16:42:06 +01:00
lahm86
941d525d37 items: raise TR2 item limit
This brings TR2 into line with TR1 in terms of the maximum number of
items per level. Because of how floor data is compiled, the maximum for
referencing items in triggers is 1024.

Resolves #1794.
2025-04-12 16:42:06 +01:00
Marcin Kurczewski
e93ed2b6ce tr2: make water color customizable like in TR1X
Tackles #1619. While does not offer a simple toggle for the PS1 style,
it is now possible to edit the game flow file by hand with those
settings.
2025-04-12 15:05:10 +02:00
lahm86
c69fe9c891 objects: raise static mesh slot capacity
This raises the static mesh slot capacity from 50 to 256. 2D statics
remain fixed at 50 for the time being.

Resolves #2734.
2025-04-12 12:36:49 +01:00
lahm86
adf2703305 tr2/objects/bird_guardian: remove hard-coded end level behaviour
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 removes the hard-coded end level behaviour of the bird guardian in
TR2. For OG, an injection is provided to add a command to the death
animation to yield the same result; custom levels can modify the object
accordingly externally.

Resolves #1583.
2025-04-12 08:41:07 +01:00
lahm86
0674d546c4 inject: add animation command editing support
This allows an animation's set of commands to be overwritten with
pre-compiled values, which are then later parsed into the animation
command list, and the originals discarded.
2025-04-12 08:41:07 +01:00
lahm86
36ab43f0b3 tr2/option_passport: add new game options
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 adds NG+, Japanese, and Japanese NG+ options (as well as regular
NG) to the new game page in the passport.

Resolves #2731.
2025-04-11 21:30:11 +01:00
Marcin Kurczewski
2aa0f2e161 tr1/output: optimize uvw access
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-11 15:45:33 +02:00
Marcin Kurczewski
0df70ce4bf tr2/savegame: fix warning
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-11 08:25:16 +02:00
Marcin Kurczewski
741bdfe135 config: clamp fog distances 2025-04-11 08:25:16 +02:00
Marcin Kurczewski
26f290e2b7 tr2/config: update default fog distances 2025-04-11 08:25:16 +02:00
Marcin Kurczewski
98acd91c5a tr2/options: add graphic options dialog
Resolves #1615.
2025-04-11 08:25:16 +02:00
Marcin Kurczewski
0f5e54d714 tr2/output: make fog distances customizable
Resolves #1622.
2025-04-11 08:25:16 +02:00
lahm86
57bc7610b4 savegame: move common logic to TRX
This moves the bulk of savegame logic to TRX.
2025-04-11 07:12:31 +01:00
lahm86
af29ece2f7 tr1/savegame: adopt strategy registration
This brings TR1 into line with TR2 in terms of registering savegame
strategies externally rather than defining them within the main module.
2025-04-11 07:12:31 +01:00
lahm86
5631b7be4a savegame: move initial version to TRX 2025-04-11 07:12:31 +01:00
lahm86
626030a4d7 tr2/savegame: move select level requester filler
This moves filling the requester info for the select level screen to
the savegame module, similar to TR1.
2025-04-11 07:12:31 +01:00
lahm86
e469d774a9 tr2/vars: remove unused variables
The global level file name and demo loaded flag variables are no longer
used.
2025-04-11 07:12:31 +01:00
Marcin Kurczewski
cc04478e2d
savegame: fix header type
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-10 14:28:37 +02:00
Marcin Kurczewski
99fb8be9bd tr1/output: disable wibble effect on the shadows
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-09 19:04:03 +02:00
Marcin Kurczewski
52ef286ab4 tr2/sound: fix not able to completely mute sounds
Resolves #2722.
2025-04-09 19:03:47 +02:00
Marcin Kurczewski
c5977558be creature: clean up 2025-04-09 19:03:28 +02:00
Marcin Kurczewski
2cd7f04a1e creature: move Creature_IsAlly to trx 2025-04-09 19:03:28 +02:00
Marcin Kurczewski
c324d486d3 creature: move Creature_IsHostile to trx 2025-04-09 19:03:28 +02:00
Marcin Kurczewski
2d37378223 creature: move Creature_CheckBaddieOverlap to trx 2025-04-09 19:03:28 +02:00
Marcin Kurczewski
d4da3f874e creature: move Creature_Kill to trx 2025-04-09 19:03:28 +02:00
Marcin Kurczewski
81c570a61c creature: move Creature_Vault to trx 2025-04-09 19:03:28 +02:00
Marcin Kurczewski
3959fdb35a creature: move Creature_Underwater to trx 2025-04-09 19:03:28 +02:00
Marcin Kurczewski
664fdaa1c6 creature: move Creature_Float to trx 2025-04-09 19:03:28 +02:00
Marcin Kurczewski
b52a61a1b5 creature: move Creature_Die to trx 2025-04-09 19:03:28 +02:00
Marcin Kurczewski
16b5b389f5 creature: move Creature_CanTargetEnemy to trx 2025-04-09 19:03:28 +02:00
Marcin Kurczewski
5afcc59d04 creature: move Creature_Animate to trx 2025-04-09 19:03:28 +02:00