Commit graph

55 commits

Author SHA1 Message Date
Marcin Kurczewski
1b9e535415 trx/audio: fix invalid audio freeing
Resolves #1895.
2024-11-17 18:46:30 +01:00
walkawayy
7e0d1da034 tr1/trapdoor: fix trapdoor location test
Resolves #1904.
2024-11-17 11:35:51 -05:00
lahm86
1cbded12dc config_tool: add support for searching
This adds a search box to the config tool to allow filtering properties
by keywords.

Resolves #1889.
2024-11-16 19:25:35 +00:00
Marcin Kurczewski
1e6acce2e3 tr1/lara: use explosion sprites with swan dive cheat 2024-11-13 12:20:07 +01:00
Marcin Kurczewski
7a6c13a348 tr1/objects/mutant: fix explosion damage
Resolves #1758.
2024-11-13 12:20:07 +01:00
walkawayy
d13d2d4689 overlay: fix demo text overlapping with bottom center enemy bar
Resolves #1446.
2024-11-13 10:27:02 +01:00
lahm86
01f040d9b8 tr1/inventory: support automatic key item selection
This allows the inventory to open on the correct key item based upon
the receptacle Lara is currently trying to use.

Resolves #1884.
2024-11-12 21:51:21 +00:00
lahm86
f3a29d3a87 tr1/inventory: reset selected item on closing inventory
This resets the selected key item when the inventory is closed to avoid
it being pre-selected to a non-existent item when the inventory is
re-opened.

Resolves #1586.
2024-11-12 17:31:57 +00:00
lahm86
79dc750c53 docs: fix vehicle hit changelog entry
#1859 added the entry to TR1's changelog rather than TR2.
2024-11-12 11:13:34 +00:00
lahm86
33e4e9be1d tr1/gameflow: add support for item descriptions
This adds the ability to define descriptions for key, puzzle and
pickups items in the gameflow. Players can examine items that have a
description in the inventory. Indicators are shown to make this clear,
the idea being builders may want to use this feature to offer hints.

Description text is automatically wrapped to fit the screen, and very
long text will be paginated. New line and feed escape sequences are
supported in the text for manual layout.

This also removes the necessesity of having an empty strings object in
levels that don't have any key items.

Additionally, the update_gameflow tool has been adjusted to support the
use of curly braces inside strings (and indeed nested objects).

Resolves #1821.
2024-11-11 21:55:51 +00:00
lahm86
31aeefa8d1 libtrx/console: fix play_level command action
This sets the action for /play commands to GF_SELECT_GAME rather than
GF_START_GAME, so that resume info can be properly calculated.

Resolves #1861.
2024-11-11 16:53:53 +00:00
walkawayy
ff9502a6c9 boat/skidoo: fix Lara getting stuck in her hit animation
Resolves #1606.
2024-11-11 16:15:10 +01:00
lahm86
f0f7edcc2c libtrx/config: refactor enforced config approach
This refactors the enforced config control from #1854 into the gameflow
and removes the legacy settings for enforcing game modes and save
crystals.

Resolves #1857.
2024-11-11 15:04:27 +00:00
lahm86
3ca54568b2 libtrx/config: support enforced config settings
This allows an enforced object to be defined in the config file, within
which any regular config setting can be defined, and the values from
here will be enforced in the game.

Enforced settings are not shown in the config tool, but will be
preserved on write.

Resolves #1846.
2024-11-10 17:13:33 +00:00
Marcin Kurczewski
92ced590fd objects/names: add "pickup" special target name 2024-11-06 16:38:31 +01:00
Marcin Kurczewski
2fc6e5d0bc console/cmd/tp: add round-robin item teleports 2024-11-06 16:38:31 +01:00
Marcin Kurczewski
2819ea18ea console/cmd/play-level: fix duplicate error message
Issuing `/level non-existing-string` (not a number) resulted in two
messages: one about invalid level, and the other about invalid command
invocation.
2024-11-05 23:14:54 +01:00
Marcin Kurczewski
4641712037 console/cmd/pos: log level title 2024-11-05 23:14:54 +01:00
Marcin Kurczewski
4b06213fd4 docs: update changelogs 2024-11-05 10:31:56 +01:00
Marcin Kurczewski
3021804047 tr2/overlay: support 3d pickup animations 2024-11-05 10:31:56 +01:00
lahm86
09c7e3e030 tr1/lara: add responsive swim cancel option
This injects additional state changes to the swimming animation to
allow Lara to enter the glide state on more frame ranges, similar to
TR2+.

Resolves #1004.
2024-11-04 17:10:24 +00:00
lahm86
0953a0b8c2 tr1/lara: merge animation injections
This merges responsive jumping with Lara's main enhances animations
injection. The state changes that were part of the jumping injection
are now present as well as the original state changes, so allowing the
engine to pick the correct ones based on the player's setting.

Resolves #1823.
2024-11-04 13:54:48 +00:00
lahm86
efc150d029 tr1/objects/scion3: save scion hitpoints
This ensures the shootable scion's hitpoints value is saved so if it's
still active on reload, Lara can't continue to target it.

Resolves #1819.
2024-11-03 21:03:18 +00:00
lahm86
fec71a2afc tr1/savegame: save and load ambient music timestamp
This will save the current music track and a flag to indicate whether
or not it's looped, so that on load, the correct start-up for it is
applied. This also changes the related config option from a bool to an
enum with options for never, non-ambient, and always.

Resolves #1769.
2024-11-03 20:59:30 +00:00
Marcin Kurczewski
78e60c2d2c input: fix potential freezes when remapping keys
Resolves #1788.
2024-11-02 18:40:52 +01:00
Marcin Kurczewski
ed60225796 text: refactor glyph information 2024-11-02 16:13:06 +01:00
Marcin Kurczewski
272d0d45ba tr1/text: remove progressbar info from text 2024-11-02 16:13:06 +01:00
lahm86
5194daccf6
tr1/option_control: fix controls menu height (#1784)
This fixes the controls menu for text scales 0.8 and 0.9 such that the
menu doesn't extend to the bottom of the screen or overlap the
inventory "Controls" text.

Resolves #1783.
2024-11-01 21:51:14 +00:00
Marcin Kurczewski
0eeeb3e8e3
input: remove health F11 cheat 2024-10-31 12:21:56 +01:00
lahm86
f07ceae877 tr1/gameflow: read leadbar name from gameflow
This restores reading the leadbar name from the gameflow to allow it to
be customised.

Resolves #1774.
2024-10-29 19:45:53 +00:00
Marcin Kurczewski
802740cbec gfx: try 3.3c gl backend if 2.1 fails 2024-10-26 15:26:58 +02:00
walkawayy
25cf965837
phase_pause: add the ability to pause during cutscenes (#1746)
Resolves #1673.
2024-10-25 10:07:10 -04:00
lahm86
c3bff3a9cb tr1/data: inject Khamoon trapdoor triggers
This injects dummy triggers in rooms 10 and 18 for trapdoors 33 and 34
in City of Khamoon.

Part of #1744.
2024-10-25 00:06:20 +02:00
Marcin Kurczewski
666a4845c2 tr1: improve crash reports 2024-10-24 09:33:12 +02:00
Topixtor
c552e072fe tr1/config_tool: improved Italian localization
This fixes and/or improves some Italian translations in the TR1 Config Tool.
2024-10-23 23:37:42 +02:00
lahm86
4952e460fe tr1/lara: add wading support
This adds support for wading, taken from TR2, with the required
animations and SFX provided in lara_animations.bin.

Resolves #1537.
2024-10-21 13:27:51 +01:00
lahm86
9f4b6fa7ab
tr1/carrier: add support for TR2-style item drops (#1719)
This allows item drops to be defined in the level data in the same
fashion as TR2, so any pickup item that is in the same position as an
enemy will be carried by that enemy. The gameflow approach is retained
for OG levels, and the provided gameflow setting will default to this.

Resolves #1713.
2024-10-16 12:03:32 +01:00
lahm86
0ea343f1ed
tr1/data: inject pushblock SFX commands (#1715)
This injects the missing animation commands for pushblock types 2, 3
and 4 in Natla's Mines, so they play 4 scrapes on the pull animation in
line with every other pushblock in the game.

Resolves #1714.
2024-10-15 15:40:48 +01:00
Marcin Kurczewski
1a6dd53a51
docs/tr1: release 4.5.1 2024-10-14 11:41:33 +02:00
Marcin Kurczewski
05d567be9f
build: fix mac builds
Resolves #1710.
2024-10-14 11:31:07 +02:00
Marcin Kurczewski
160bd53594
docs/tr1: release 4.5 2024-10-08 16:43:09 +02:00
walkawayy
39c982227a common: fix Lara entering a long animated interaction if pushed
Resolves #1687.
2024-10-08 10:26:42 -04:00
walkawayy
abb678bdca savegame: fixed a bug when saving during an animated interaction
Resolves #1546.
2024-10-08 10:26:42 -04:00
lahm86
a9fd434d99 tr1/lara: inject medium water exit animation
This injects the TR2 exit water to "medium" height animation.

Resolves #1538.
2024-10-08 14:14:39 +01:00
Marcin Kurczewski
19c8aae7a0
input: use look for camera reset 2024-10-07 22:52:57 +02:00
Marcin Kurczewski
8bab311d79
console: remember prompt history
Resolves #1571.
2024-10-07 19:45:22 +02:00
Marcin Kurczewski
5468377b8e
injections: inject shutter sound to cutscenes 2024-10-07 01:19:29 +02:00
lahm86
a6561f1d5b tr1/camera: fix potential division by zero
Resolves #1671.
2024-10-05 19:48:40 +01:00
lahm86
708141d4be camera: add photo mode
This adds a photo mode phase and camera logic to handle movement. No UI
is presented currently.
2024-10-05 16:24:10 +01:00
Marcin Kurczewski
309efee3c6
console: fix targeting pickups
Resolves #1667.
2024-10-05 12:37:17 +02:00