Skip to content

OpenUnderworld 0.10.0 (experimental)

Choose a tag to compare

@sergen213 sergen213 released this 30 Oct 02:20
· 1433 commits to main since this release

Experimental build. You need your own legally owned copy of Tomb Raider: Underworld (GOG build, tru.exe 1.1.0.0). No game data is included.

Run it:

chmod +x OpenUnderworld-0.10.0-x86_64.AppImage
./OpenUnderworld-0.10.0-x86_64.AppImage                                    # launcher
./OpenUnderworld-0.10.0-x86_64.AppImage game --game-dir "/path/to/Tomb Raider Underworld"

AppImages from 0.1.0 on update in place: launcher tab Version & Updates → Check for updates → Download & install, or ./OpenUnderworld-0.10.0-x86_64.AppImage --update. The update manifest is signed with the project's Ed25519 key (manifest.json.sig); sha256sum -c OpenUnderworld-0.10.0-x86_64.AppImage.sha256 checks the download.

Requirements: x86_64 Linux with a current glibc/libstdc++ (built on Arch Linux), Mesa or another OpenGL 4.6 / Vulkan 1.3 driver, FUSE (or run with --appimage-extract-and-run).

Experimental. Requires your own legally owned copy of Tomb Raider: Underworld (GOG build); no game data is included.

Added

  • Object anim state graphs (physical class 6, ObjectBase +0xC8; src/formats/AnimGraph.*, docs/formats/ANIMGRAPH.md): scripted objects with a modifiable / animated member get their skeleton, clips and state machine; states and transitions play their clips, the timer stimulus runs each tick, Lara's use is stimulus 1, scripts hear transitions (vt 19) and states (vt 20); modifiable 0-8 and animated 1 bound; saved and hashed. l4_ballcourt switch 5469 now opens the temple reveal 5464 (test ProgressionReal.TempleRevealReopens); the Natla fight's buttress mounts 8362-8364 lock when the fight starts and break when Lara uses them, so ProgressionReal.EndgameCredits plays the ending without calling any handler directly; combat crates, flame traps and ca_ani_* props take their state clips
  • The ending runs from its scripts: in l7_yggdrasil_end the buttresses' reveals play 330_hel_thralls, the last one 340_hel_endgame, whose end warps Lara to l7_monastery and plays 342_hel_endgame; its end handler requests the end game save (uisavemenu 6, ou-game's autosave) and plays the credits (unlockablemovie 3 "credits", Runtime::takeMovies), after which ou-game marks the game finished and opens the main menu with TREASURE HUNT (before, the ending waited for a cinematic in l7_himalaya_end, which the route never enters); larabase 31 / 61, cinematic 1, hudscreenmgr 4, uigamedata 43, uisavemenu 9 bound; test ProgressionReal.EndgameCredits
  • uberobjectbase 3 (AttachTo anchor, 0x79D0D0 -> 0x4A4490): the ~30 l1 ship props and l7's endgame gun run their constructors to the end
  • Shooting uber physics objects: a bullet on an uber object's collider starts its sections' physics-limit (trigger 15) transitions; l1_kraken_room's column falls and switch 57 turns tentacle gear 32 (test ProgressionReal.KrakenColumnShot); Runtime::call runs a handler at the next tick (gate tests); the GateSweep counts a change at any tick (tentacle hazards swing back to rest)
  • Script startup runs a type's first function only when it is vt -1 (a vt 20 handler at birth made l7 puzzle_cheat_button 9279 lower drawbridge 9116 at load; switch 9103 now lowers it); killed objects (instance 10) stop triggering (saved); uberobjectbase 0 queries an uber object's condition lists (data +0x28); larabase 53 re-mounts larabase 52's bike; the ch4 chapter-end gate now goes through the Xibalba exit switch 5469 and 190_mex's plane 6410.
  • Chapter starts after their cutscene as the original: uisavemenu 5 (the cinematic bases' autosave request, 0x7A4620 -> 0x77D880) triggers ou-game's autosave, so ch6's end handler reaches its fade-in (the start was black); uigamedata 17 / 18 (the white-fade flag byte 0xFAE8DB); uberobjectbase 2 is the model-marker anchor (0x79D090 -> 0x4AB800, HInfo marker by id) that instance 26 places Lara on: ch1 now stands on ms_uo_yacht's stern deck (marker 13) after 030_med_yacht instead of treading water; script teleports leave her standing (ng_idle) with the camera behind her. Test StreamReal.ChapterStartIntros extended (ch1 deck, ch6 clip / autosave / fade).
  • Script stickies notify their owner on Set as the original (corebase vt 6 bool / 7 int / 5 float with the sticky and the value; not again from the owner's own handler), and sticky equality compares identity: the l4_traprooms plates count on seal 5701, which opens with both held (Lara on one, the scepter weight 5883 on the other; test ProgressionReal.TraproomsSeal). Set-down portables fall from above her feet onto raised plate tops.
  • Saves keep uber objects' section state machines (states, running transitions, timers, once-events, travel) and the portable Lara carries (save field objects, World::serializeObjects); a load no longer replays their default-state events, and World::stateHash covers them (test StreamReal.UberStateSaveLoad).
  • Uber objects run their original section state machines (tru.exe 0x4D7550): per section states, transitions started by commands (by table index from the uberobjectcommand word), timers, condition lists on other sections' states and joint-limit callbacks [I: 1 s], transition clips, and events that run the object script's vt 54 (uberobjectevent 0). Script functions now return their values (local 0 = the caller's result address). Resetting switches return to idle after their data delay (one-way ones stay). The l3_chapel shadow-pillar puzzle works end to end (switches 4819-4822 turn the pillars, plate 4834 lights the fire, shadow door 4835 opens). Tests ProgressionReal.ChapelShadowPillars, CriticalGates (chapel case).
  • Mercs: each one guards the zone its script sets (enemybase 27 GuardNode: a planner node of the unit, decoded from the unit data, with its inner / outer radii), walks back into it and stops chasing at its edge; after a burst a soldier runs to a nearby planner node hidden from Lara, crouches there, then stands and fights on; the soldier that spots Lara barks and alerts the others within 30 m; the ships' merc chatter lines play on spotting, cover, a squad mate's death and losing her. Spiders and nagas on walls and ceilings now walk down to the floor (or across the ceiling) instead of dropping.
  • Menus: GAME OPTIONS > PLAYER TAILORING is the original per-option list (enemy health, ammunition capacity, damage to Lara, time for saving grabs; LESS / NORMAL / EXTRA, the capacity and grab time reversed), each level set on its own; START NEW GAME keeps the preset panel. Test Menus.PlayerTailoringOptions.
  • PDA: Tab opens the PDA as in the original (config controls.pda still rebinds it); the JOURNAL page lists the journal entries reached so far (1145-1189, by chapter) with each entry's text beside, as the original's list page; the PDA shows the JOURNAL / REVISIT LOCATION pictures (693 / 694) and prompts. Test Menus.PdaJournal.
  • Stowed weapons as the original: each weapon's data +0xB9 / +0xBB names Lara's HInfo stow marker and the model takes the marker's frame (pistols on the thighs 6 / 4, uzis on her back 36 / 37, shotgun / speargun / rifle / tranquilizer across her back 15, Mjolnir stowed 31, in hand 5); the secondary shows on her back while not in hand (speargun in ch1, rifle in ch6). After a script mount (ch4 / ch5 starts) the camera looks along the bike. Test CombatReal.WeaponData.
  • Original chapter-start flow: starting a chapter sends id = chapter on channel mc_CinematicData to script listeners (OnMessage, queued per tick; channels are now named as the original, messagechannel init {mode, name}, with its listen modes); the start units' scripts play their intro cinematics (ch2-ch7) with cinematic events 0/1; World places Lara and bikes at the stream tails; ch4/ch5 start riding (larabase 52), ch6 warps onto the deck (cine object +140, instance 8/26), ch7 swims under the ice in l7_arctic_sea. Fixes: water boxes of offset units kept their half extents / rotation; teleports no longer cross trigger planes; the ch4 intro no longer replays every tick (channels compared equal). Natives larabase 67, uitext 4/54/57, uigamedata 3/106, uiscreen 6/7/22/90/92, uicolortimeline 0/10/12/13, uivec3timeline 15 (chapter title / letterbox screens, not drawn by ours). Test StreamReal.ChapterStartIntros.
  • Menus: EXTRAS as the original: the mirrored category ring (environment, character, gear concepts, storyboards, trailers & credits), each category's list with the preview frame, LOCKED rows and five-row scrolling, full-screen view of unlocked images, and the trailers / credits through the Bink player. Unlocks follow the rewards' codes against profile.json (chapters ended, the ending, every treasure / relic found). Tests Menus.ExtrasRingCategoriesAndUnlocks, MenusReal.RawImagesAndPdaArt.
  • Physical pressure plates (script base 3938: multibody 1, joint 17, limit 3 / multibody 79 ranges): weight on the plate (Lara, push blocks, loose rigid bodies) drives its prismatic joint down at a fixed 60 Hz rate, entering a range runs vt 34 (pressed id 8 / released 12) as the original; joint position saved. Rigid-body grapple targets (*_rb_grapple*) fall when pulled (l1_kraken_entrance snake head onto plate 752); portablebase objects (ms_pt_weight_c) are carried with interact and set down. Unblocks l1_kraken_entrance gate 743 (snake head + weight on 753 + switch 748), Baldr's tomb plates 219/221/222 and the l3_chapel plates 4832-4834. Tests ProgressionReal.CriticalGates (new cases), GameReal.PressurePlateIndependentOfRenderRate, ProgressionReal.ChapterSixShipDoorsOpen.
  • Menus: the main menu centre is RESUME GAME (122) when an autosave exists and TREASURE HUNT (49) once the game is finished, as the original. ou-game autosaves (slot autosave) at chapter starts and checkpoints of a game started from the menu; profile.json (save::Profile) records chapter ends and the ending (credits.bik, then the main menu). Treasure Hunt starts l1_seatop keeping what was found (saved as treasureHunt) and enables the PDA's REVISIT LOCATION list of chapters. Tests Menus.MainCentreTreasureHuntAndRevisit, Progress.ProfileAndTreasureHuntSave.
  • Enemies: Thailand's nagas spawn (naga_red / naga_green: 29 placed in l2_norsehub / l2_puzzleroom) with their bite records, the green naga's spit (spit_attack, 150) and tranquilizer sleep; nagas and spiders placed on walls and ceilings cling there (drawn with their intro tilt) until they see Lara or are shot, then drop, land and hunt; viking / mayan / yeti / panther thralls regenerate as the original's death record says (tru.exe 0x620380 / 0x67ED20): bullets, blows and grenades only knock them down at full health for 15 / 15 / 7 / 13.3 s, they get back up (death_reanimate, regenerate_01, death_thrall_regen), and only Mjolnir (hit class 13 / type 3, from the ammo records) kills them for good. Replays thrall_regenerate.txt, naga_drop.txt, spider_drop.txt; tests AiReal.NagasClingDropBiteSpitAndDie, AiReal.SpidersClingDropAndBite, AiReal.ThrallsGetUpUnlessMjolnir; survey of every unit's enemies in docs/GAMEPLAY.md.
  • Weapons: the assault rifle (wp_assault_rifle / pr_akriflebullet: 30-round clip, 27 / 27 / 21 damage, 3-frame refire, reserve 300 / 210 / 120 by ammunition capacity) and the tranquilizer gun (wp_tranq / pr_tranquilizerdart: one dart, 500 dose, reserve 25 / 15 / 10) with Lara's combat_rifle_* clips; darts put cats to sleep (sleep_start / loop / end) instead of hurting them; HUD icons 100 / 101; per-chapter secondary from the units' weapon objects (Mexico tranquilizer, Andaman Sea rifle, ...) with every secondary full at a chapter start; ammunition from wp_* / wp_akrifle intros and armed enemies' bodies; weapons, clips and reserves saved; --weapon rifle|tranquilizer. Tests CombatReal.RifleAndTranquilizerClips, CombatReal.PoolRifleAndTranquilizer, Save.CombatAndRevealRoundTrip.
  • PDA: SONAR MAP (the area's map meshes with the original's grid look, Lara / bike pawns, free camera, reveal of where Lara has been, saved), WEAPON SELECTION (secondaries with reserve / max, EQUIP without refilling, the weapon's 3D model on the grid panel) and INVENTORY (backpack, gear, weapons, treasures with pictures, models and descriptions), drawn on the CPU so GL and Vulkan match. Test Menus.PdaWeaponsInventoryAndSonar, PdaReal.SonarMapFrameRevealAndModels.
  • Menus: filled Load / Save slots as the original: the used-slot icon carries its number, the selected slot opens a panel with the save name (cut with "..."), ":" and level title (locals 386-407 by unit, ui::levelTitle), time and date; the autosave is named " - <TITLE>" and cannot be overwritten (17); new saves are savegame-<n> ("Savegame "). Test Menus.SaveSlotsAndLevelTitles.
  • Menus: the original YES / NO confirmation dialogs (box 106, bars 107 / 108, NO selected, Esc ignored): QUIT GAME (494), loading a slot (12), START NEW GAME from the pause menu (154), overwriting (16) or deleting (10) a save. Test Menus.ConfirmDialogs.
  • ou-game --fx on|off (config graphics.effects, default on): off starts no original effect (particles, ribbons, lightning, glows, effect lights, screen filters) and skips the effect draw, keeping instance fades and the clips' sounds; with --frames, ou-game prints the mean / p95 wall time per frame. Effects cost 0.04-0.2 ms (Vulkan) / 0.13-0.4 ms (GL) per frame at 1080p in l6_ship_exterior, l5_valaskjalf and l2_junglehub (docs/formats/EFFECTS.md "Performance"). Test FxReal.LaraRibbonsAreOnUnfiredEventsAndVisualsOffStartsNothing.
  • progression: docs/PROGRESSION.md (per-chapter routes, gates and their status, remaining blockers) and ou_gates_tests: ProgressionReal.CriticalGates places Lara at 19 critical-path gates (switches, push blocks, grapple pulls, trigger volumes / planes, all chapter ends 0-6), performs the original interaction and asserts the door / uber / block / cinematic / chapter change; GateSweep (OU_PROGRESSION_SURVEY=1) runs all 289 candidate gates found in the data; Survey and DumpScripts (bytecode dump) research tools.
  • scripts (progression fixes): plane vs volume follows the script's native base (l3_main_hall 4128/4129 are plane scripts): the prologue now ends through 4129 → cinematic 010 → chapter 1 (it could only end through 4137 → chapter 4); cinematic vt 63 only preloads (only vt 57 plays), so preload volumes 1082 / 4137 / 7566 no longer end chapters early; unit callbacks vt 11/12/13 (player enters a stream unit / level load, unitref 0 equality), listener-only unit scripts, instance 26 placing Lara on an object, SSEQU on a completed native resumes after the call: the Mediterranean ending now runs as the original (plane 1074 → l1_cine_ship_sinking unit script plays 1005); the Thailand ending's BeatLevel plane 2542 → volume 2564 → chapter 3 works; health 3 (heal), unlockable, cinematic 0/2 bound.
  • Instance fades (effect class 7, commands 0x21 / 0x22, tru.exe 0x52C920 / 0x5B55D0): picked-up treasures, relics and health packs fade out over their record's 35 frames before vanishing, as in the original, instead of disappearing at once; keys and other script objects with fade clips fade too. Both renderers draw a fading object through the translucent pass (opaque materials alpha-blended, no depth writes; FrameOptions::meshOpacity); its glows fade with it. Tests Fx.InstanceFadeClass7Curve, FxReal.RewardPickupFadesOut.
  • audio: animation-event sounds (event records info&3 0/3, tru.exe 0x5B99C0 / 0x5B2820): Lara's footsteps / efforts by surface material, combat reload / equip from the weapon objects' lists, enemy vocals, weapon fire and bullet impacts, motorcycle mount clips, switch / door clips; SoundPlex MaterialList / Selector / Envelope / Reaction nodes; bike engine (motorcycle DTP 13589 Reactions on rpm); script music natives request tracks by slot (pool -> ragnarok room switches to l4_staircase_upper_mus_01 on soundvolume 5674), replacing the volume-name heuristic; natives on null receivers skipped as in the exe, messagechannel Send without subscribers no-op; cinematics restore music/sfx volumes (not the cinematic volume); hard-coded footstep / shot waves removed; tests SoundPlex.ReactionAndEnvelopeShapeVolume, AudioReal.MaterialListAndEngineReaction, ScriptRealData.RagnarokVolumeRequestsStaircaseMusic
  • game: Mjolnir (wp_thorhammer / pr_thorbolt) as Lara's weapon: acquired by larabase 37 at the end of l5_valaskjalf's 250_val_hammer (carried from chapter 6), Change Weapon cycles pistols -> secondary -> hammer (0x704930); fire throws a bolt (1000 damage, no clip) on the swing's frame 10, lock + interact ground pound knocks enemies back; original mounts (Lara markers 5 / 31: left hand, back), the hammer's fire / swing effects (class 3 bolt to the target, bullet_hit_thor), HUD icon 97; under-water fire records (+0x84) for every weapon; ou-game --weapon thorhammer; tests Combat.MjolnirCycleSwingAndGroundPound, StreamReal.ChapterThorGear; replay tests/replays/mjolnir_thralls.txt (l7_yggdrasil_hall01)
  • audio/script: unit scripts (Level+0x70 DTP +0x1C0) start with their unit, so help-on-demand conditions are set: l1_seafloor volume -> hint_05, T/Y play sc_01_05_hint/answer with subtitle; soundvolumes track Lara (triggervolumebase Add) and get vt 58/59 on enter/exit, writing music variable 0x7D (pool -> ragnarok: 0 -> 8); symbol local initial values, string locals stay strings, instanceref receivers held as object values, reverb/experience-menu natives; test ScriptRealData.SeafloorVolumeSetsHelpCondition
  • Original ribbons and lightning (effect classes 1 and 3): ribbons follow their owner's segments; weapon tracers run from the muzzle to the hit; Thor's-hammer bolts, the Valaskjalf door beam, light shafts and sun-glare beams draw as jittered camera-facing bands (docs/formats/EFFECTS.md "Ribbons", "Lightning and beams"). Every effect command tru.exe dispatches is listed with its use in the data ("Commands and classes"); the original has no decals.
  • Switches, doors and uber objects run their animation clips' effect events (sparks, dust, light switches) like characters.
  • Remaining screen-filter parts: tints (Lara burning, pickups), sun-glare filters by screen position with an occlusion fade, PCFeedback (zoomed / turned scene trails: Lara's damage, death, adrenaline, fireballs) and PCNoise (film grain: cinematics, panther thralls) in the GL and Vulkan post pass.
  • Line emitters scale their rate by line length (def +0x164, tru.exe 0x5386F0); point sets are centred and run as event sequences as in tru.exe 0x53F430.
  • Original screen filters (class-5 effects, command 0xB): filter resources (DTP rtype 16) summed by weight (fades, radius around Lara) into tru.exe's ColorDOF (scene / overlay curve matrices, tinted blurred overlay, depth curve) and Finish (blurred scene added: bloom) effects, drawn in the GL and Vulkan post pass. The burning-manor corridor now has the original's strong amber glow on the walls and Lara near the fire; Lara's death / damage clips, pickups and explosions run theirs.
  • PLAYER TAILORING now changes the game, from tru.exe's five tailoring levels and generalbank's difficulty table: Casual Explorer / Tomb Raider / Master Survivalist set Lara's max health (1300 / 1000 / 800, her health keeps its fraction), enemy health (each enemy's own three-level health block), ammunition capacity (uzi 400 / 240 / 160, shotgun 90 / 72 / 42, speargun 40 / 25 / 15, grenades 10 / 6 / 4) and the time for saving grabs (3 / 1.67 / 0.5 s). Falling up to twice as fast as a normal grab allows now catches a ledge one-handed; jump pulls Lara up before the time runs out, else she falls. The levels are saved with each game (test Tailoring.PresetsScaleHealthAndCapacity).
  • In-game settings persist: volumes, subtitles, combat reticles, helper buttons and training text (new game section of config.json), look Y inversion and brightness are written back to the config ou-game was started with and read at start; the launcher keeps what the game changed instead of overwriting it on Play.
  • Material particles and unit FX point sets: particle defs with a material (+0x168 / +0x16C) draw as soft additive flipbook flames (depth fade) or screen-space refraction of the scene (heat haze, muzzle distortion) in GL and Vulkan; the unit data's FX point sets (+0x120/+0x124) start their effects, so the prologue corridor fire burns on the rubble (docs/formats/EFFECTS.md "Material particles", "FX point sets"); test FxReal.MaterialParticlesAndUnitPointSets.
  • Original glows and effect lights: class 2 glow records (muzzle and impact flashes, lamp glows, sun glares, light rays) drawn as sprites with their colour cycles, growth, fades, facing threshold and depth bias, untextured ones with particle.drm texture 130; class 6 effect lights (muzzle flash and metal-impact lights) lit through 4 reserved scene-light slots, endless ones of placed objects as scene lights with their light DTP; effect-map and stop-by-id commands; every weapon's ammo hit objects are preloaded so their sprites no longer draw white after a shot, GL + Vulkan (docs/formats/EFFECTS.md "Glows", "Lights").
  • Grapple: pulling levers, statues and other movable targets (hold E: the target's own script handler runs), rappelling on walls (up, down, kick off) and wall-running along the rope's arc, also from the ground; swinging onto a floor lands Lara, and on the ground she stands holding the rope instead of being dragged. Tested on l4_trailstart, l2_norsehall, l2_puzzleroom, l1_kraken_room and l5_valaskjalf (replays in tests/replays).
  • Free climbing uses all five of Lara's hand stances (the hold's type picks one) and plays the original hold-to-hold transition animations when she moves between holds of different types.
  • Reveal cameras: unit camera splines (unit data +0x68/+0x6C) decoded and played like tru.exe's AutoSplineCamera — Hermite camera track with key times / ease curves / constant speed, slerped key orientations or a look-at target track (may follow Lara), FOV events, pause and spline-switch key events, dispatcher done callbacks; autosplinecamera 0, cameraspline 0, gamebase 52/43 (camera switch / current type), larabase 56 (Lara's stick zeroed while a reveal camera plays), microphone 1-7; 0.5 s blend back to the orbit camera. Engine-created globals objects (type 74 etc.), instance 27 GetUnit, clock alarm callbacks (corebase prototype 25), enemybase 18/27, gamebase 2/23/24/30. Script survey 265 -> 183 handler stops (GameReal.RevealCameraPlaysUnitSpline).
  • Original combat and animation-event effects: muzzle flashes from the weapon objects' fire clip events at their muzzle markers, bullet impacts from the ammo's hit object (bullet_hit, ...) picked by the hit surface's collision material (stone dust, sparks, water spray, blood on bodies), casings as small sprites, and Lara's / enemies' clip events (footstep dust, splashes) on their posed bones, GL + Vulkan; the placeholder line muzzle flashes/impacts are gone (docs/formats/EFFECTS.md "Animation events and combat").
  • Spline movers: intro +0x68 paths (Bezier/Hermite position, slerped rotation, 30 Hz keys) move their objects with the original play modes (once, loop, loop count, ping-pong, clip, play-to-key, key-range callbacks) and all spline script natives; moved objects with collision carry Lara. The l7_yggdrasil_end Natla movers and l1_seafloor fish now move.
  • Script VM: array opcodes (DREF/BOUNDS) and thread blocks (TSSTART/TPSTART/TEND, run inline); playersensor, instance 18/21/23, modifiable 1, unitref 2 and larabase 25/27/29/55/56 natives. Script survey stops 472 → 265 (with more code now reached).
  • Script function arguments are placed at their prototype byte offsets (from 0) instead of after a this slot; handlers that read their arguments (e.g. Lara's reveal control toggle, mover PlayFromKey) got the object's own id before.

Fixed

  • Neighbour stream units are drawn only through their portals, as tru.exe binds stream portals as scene portals (0x5CEC60 / 0x5CF070): each loaded unit gets a screen scissor from its projected portal quads (GL and Vulkan scene, pre-pass, screen-reader, water and FSR-mask passes; shadows and ray tracing unchanged); units seen through no portal are not drawn. l1_cineseatop (relocated by (−166366, 0, −2), its portal a quad in l1_seatop's sky) no longer floats its dome and yacht over the ch1 sea. Test PortalClips.NeighbourSeenOnlyThroughItsPortal.
  • Enhanced water under water: the post pass no longer hazes the submerged scene (exp(-0.0009 d) into the tint up to 92%); it adds thin red-first absorption over TRU's own unit fog and fainter caustics, so l7_arctic_sea's ice and rocks and l1_seafloor's ruins stay visible as in the original.
  • Script VM: START with a function word calls it (tru.exe 0x57CE50 switch case 0x76 = op − 1), so subclass state 0 runs the base constructor; CALL3 (0x68) is a virtual this-call (base templates reach the subclass's reveal vt 64 / trigger vt 72); inline BOOL/INT/FLOAT member defaults are applied to every instance. Consequences: ship hall doors open on modifiable 1 (vt 54) and close on 2/3; gamebase 53 switches cameras as 52; the l1_kraken_room reveal keeps Lara's control (its flag +42 = 1). Uber object parser no longer rejects ma_uo_shadow_pillars / ms_uo_kraken_door_oil (unused query table dropped, per-read bounds on sections).
  • Chapter 6's script-less ship hall doors (l6_ship_upper_hallway_a/b) stand open.
  • Enemies: a clip change made by a hit between ticks (hit reaction, death, knock-down) now restarts the enemy's pose; before, killed enemies kept playing their previous clip on screen. Thralls (stagger damage 0) no longer replay a full hit reaction for every round, which kept them pushed back from Lara under pistol fire; a running hit reaction is not restarted by further hits.
  • Open sea is water: water volume boxes come from each watervolume intro's data (half extents +0x54, rotated with the intro; tru.exe 0x5D7130 / 0x69D350), so Lara swims at l2_cliffclimb, l1_seatop and l7_arctic_sea instead of falling through; the box top is the surface (l4_pool 2661.5). Freshly loaded units get their objects' colliders before Lara's first tick (the l2_cliffclimb start stays on the yacht deck below sea level). Test StreamReal.OpenSeaWater
  • Chapter starts compared with the original under Wine (outfit, position, nearby enemies; docs/GAMEPLAY.md "Chapter starts vs the original"): sharks only notice Lara while she swims, so l2_cliffclimb's sharks no longer leave the sea and land on the start boat's deck; the wetsuits no longer wear the diving mask on dry land (it goes on when Lara swims, the stowed gear stays hidden, as the original's draw-group mask). Every chapter's outfit was confirmed as each start unit's (the casual outfit an earlier capture showed in Thailand came from the original carrying the prologue's checkpoint outfit into a debug level change).
  • Lara no longer wears Thor's gauntlets and belt before she has them: the outfit models' gear primgroups (draw groups 10-12) start hidden and only Lara's own gear scripts (instance native 61, carried g_* objects) show them; state saved; a chapter start gives Lara the gear she carries by then (both gauntlets and the belt from Jan Mayen on, as the original does); checked against tru.exe under Wine that carried gear stays hidden in every chapter. Script INT/FLOAT/BOOL member defaults (stored inline in the member record) are now parsed; instances do not apply them yet.
  • Lara's hand is no longer a big white glove in the Mexico outfit (lara_jungle_heavy, e.g. l4_ballcourt; OpenGL and Vulkan): that outfit keeps one of Thor's gauntlets as a model of its own, and hiding the gauntlet left an empty model that was drawn whole and untextured. Such models are now dropped; a test checks every outfit's visible parts have real textures and materials.
  • Particle effects no longer depend on the frame rate: emitters' camera-range check used the last rendered (in-between) camera, so at different frame rates different effects spawned; it now uses the game tick's camera. Audit of every simulation path for frame-time use (docs/GAMEPLAY.md "Timing"): physics, movers, scripts, enemies and effects all run in fixed 60 Hz ticks, checked bit-identical tick by tick on real puzzles at 24-1000 Hz and irregular frame times; render rates dividing 60 Hz (120, 240) now land exactly on each tick.
  • The sea is no longer white at the l1_seatop and l2_cliffclimb starts (OpenGL and Vulkan): TRU's water materials read the back buffer and depth buffer, which are now copied after the opaque scene and fed to them, so the sea shows refraction, reflections and depth fade.
  • The l2 elevator only starts when Lara pulls its switch: objects now start in state 0 of their script, as the original does, and switches whose script handles the use itself get it.
  • Scripted screen fades (fade to/from black) are now drawn in OpenGL and Vulkan.
  • Lara can no longer free-climb any wall: she now only climbs where the level places the original's free-climb holds (eight areas, such as the Thailand cliff climb), and stops where the holds end.
  • Much higher frame rates in busy levels (Vulkan): l4_ballcourt at 1440p went from about 22 to 45 fps. Enemies the camera can't see are no longer re-skinned every frame, the original shaders' lighting variants are compiled while the level loads instead of when materials first come into view (which also removes stutter), and animated characters' vertex uploads no longer stall the GPU.
  • FSR is now faster than native rendering (1440p: Quality 16.4 ms and Performance 15.0 ms per frame against 19.6 ms native; 4K: 20.8 / 17.8 ms against 28.1 ms), and frame generation no longer halves the real frame rate: it now nearly doubles the frames shown (1440p Quality: 97 per second from 48 real ones; before, 26 from 13). Torch and other effect sprites, water splashes and rain/snow are now marked for FSR so they should ghost less. Fixed Vulkan validation errors with frame generation on.
  • Faster again, same image: l4_ballcourt at 1440p 50 → 67 fps native, 59 → 83 fps with FSR Quality, 65 → 94 fps with FSR Performance (4K: 36 → 44, 47 → 62, 55 → 77), 111 → 151 shown frames per second with FSR Quality + frame generation; l4_pool 269 → 445 fps. The sun shadow map skips objects outside each shadow cascade, animated objects' ray-tracing updates are batched, visible enemies are animated on several CPU cores (OpenGL too: 51 → 65 fps), and all original-shader pipelines are built before the first frame instead of when materials come into view (no stutter even on a fresh install). Levels load faster (l4_ballcourt 19 → 13 s). With FSR, textures are now sampled at display-resolution detail (negative mip bias) instead of looking blurrier than native.
  • Vulkan with ray tracing no longer hangs the GPU (device lost) on the first frames of l4_ballcourt, the l1_kraken_room spawns and other views: the original shaders could start shadow rays from non-finite positions, which the Vulkan spec forbids and RADV hangs on; such pixels now take no ray. Also fixed three Khronos synchronization-validation hazards in the water/depth copies (MSAA depth resolve, and the colour reload without MSAA as with FSR). New ctest game_vulkan_rt_smoke runs both spawns with RT.
  • Vulkan no longer loses the device (crash) entering l4_pool, and no longer writes to freed GPU memory in water levels (l1_seatop, l1_seafloor, l7_arctic_sea): the Enhanced water ripple texture was kept across a level change while the memory under it was released.
  • The sea is drawn again in OpenGL (l1_seatop, l2_cliffclimb and other TRU water): the water pass had been dropped, leaving a grey-beige seabed instead of the sea; its refraction now also reads the right (not upside-down) part of the screen.

Added

  • Original particle effects (torches, splashes, ambient fx objects): the objects' own GenericFXObject particle definitions and birth events are simulated at 60 Hz and drawn as sprites in OpenGL and Vulkan, with the original depth bias and HInfo marker emitters; fx proxy boxes are no longer drawn (docs/formats/EFFECTS.md). ou-game --camera X,Y,Z,TX,TY,TZ fixes the view for screenshots.
  • AMD FSR upscaling and frame generation (Vulkan): the launcher's Upscaler setting (or --upscaler fsr) renders the 3D scene at a lower resolution and lets FSR 3.1.6 rebuild a sharp full-resolution image (Native AA, Quality, Balanced, Performance, Ultra Performance; adjustable sharpening); menus and HUD stay at full resolution. Frame generation (--frame-generation on) shows an extra generated frame between real ones for smoother motion. Built from AMD's FSR SDK 2.4.0 (MIT); FSR 4 is not possible on Linux (AMD ships it only as Windows DLLs). OpenGL is unchanged; off by default.
  • Flashlight and sticky grenades. L (d-pad left) toggles Lara's personal light: the original's omni light everywhere, plus its long spot beam in the levels whose data asks for it. R (d-pad down) throws a sticky grenade at the locked target or where the camera points; it sticks to walls and enemies and goes off after four seconds, hurting everything (Lara included) within the original's blast radius and pushing loose objects. Lara carries six; the HUD shows the grenade row and lights the d-pad item. Both are saved.
  • Level scripts now run their state machines: a script that switches state starts that state's code, and several handlers of one object run side by side as in the original. Script calls on enemies and enemy generators (enable, disable, spawn, kill, behaviour) reach the enemy system, scripted damage hurts enemies, and the l1 Kraken room's tentacle commands run. Script handler stops in the all-level survey fell from 404 to 314.
  • Enhanced water, atmosphere and weather (on with the Enhanced preset, each switchable in the launcher or with --water-detail, --atmosphere, --shafts, --weather): water gets rolling swell and flowing currents, glittering sun glints that disappear in shade, steadier reflections with a sky fallback and reflections of nearby torches; F7 / --water-debug cycles water debug views. Height fog and ground mist settle into valleys and stop at the water surface, and sunlight streams through foliage and around buildings. Snow falls on Jan Mayen and in the Arctic and Himalaya levels and rain on the Andaman Sea ship where the original has them, hidden under roofs; rain leaves splash rings on the ground. The Original preset is unchanged.
  • The pause, save/load, options, player tailoring, PDA and loading screens now look like the original's, drawn with its own art and font at layouts measured from the Windows game. Pause is the main menu's ring with RESUME GAME in the centre; LOAD GAME and SAVE GAME open the original's second ring of save slots on the right (page arrows, four slots per page; Backspace deletes a save). GAME OPTIONS, AUDIO/VISUAL and VOLUME SETTINGS are the original list screens with their sliders and selection bar, and they work: combat reticles, view inversion, subtitles, brightness, and SFX, music and cutscene volume. START NEW GAME first asks for the PLAYER TAILORING preset. Key 1 opens the PDA (Croft VX 2 frame, picture windows, AREA INFO with this chapter's relics and treasures found out of its total, FIELD ASSISTANCE playing Lara's hint or task). Chapter loads show the original loading screen with the chapter's title and story.
  • The original in-game HUD, drawn with the game's own art at the original layout: Lara's health silhouette (coloured by health) and meter, the adrenaline bar (which doubles as the breath bar under water, replacing the old AIR bar), the current weapon with its clip rounds, and the health-pack/flashlight/weapon/grenade d-pad. Each group appears when it matters (damage, weapon drawn, d-pad use) and fades out after a few seconds. Lock-on reticles and the grapple target marker use the original reticle art; pickup and save notifications, chapter title cards and subtitles use the game's font. The HUD stays inside a 5 % safe margin at any resolution, including ultrawide.
  • In-game sound events: ambient sound emitters placed in the levels now play as Lara approaches and stop as she leaves, level scripts start their music stingers, effect and Kraken sounds, Lara gasps when she runs out of air, and T / Y (Hint / Answer) play Lara's help-on-demand line with its subtitle once a level has given a hint. Gameplay subtitles use the same two-line display as cutscenes. Script-set music variables now drive the music mix.
  • Lara wears each level's own outfit, as the original picks it from the level data: casual at Croft Manor, the warm wetsuit in the Mediterranean, jungle outfits in Thailand, Mexico and on the Andaman Sea ship, the snow gear on Jan Mayen and the cold wetsuit in the Arctic. The outfit changes with the chapter, is kept in saves and is the one cutscenes show (skeleton, hair and sounds from the outfit too).
  • Configurable controls: every gameplay action (move, walk, sprint, jump, drop, interact, draw, fire, aim, switch target, weapon, health pack, grapple, quick save/load) can be bound to any keys, mouse buttons, gamepad buttons or triggers in config.json (controls) or on the launcher's Controllers tab, which captures the pressed input. Also mouse sensitivity and inverted look. Defaults are unchanged.
  • Saves now include the enemies: every enemy's position, health, animation and AI state (also in streamed-out areas), fired spawn generators and the checkpoint's dead set. Loading no longer revives enemies you killed or resets ones mid-fight. Older saves still load (their enemies stay as they are).
  • More level scripts run as in the original: timers (clocks), screen fades, death volumes and kill planes that hurt Lara, ledges that scripts switch off, objects scripts remove, triggers that wait for another area to load, and scripts that touch objects not loaded yet. The three chapter ends that only scripts reach (the sinking ship, the Croft Manor fire, the Natla ship) now run their real trigger scripts. Fixed a hang when two triggers linked to each other.
  • Lara's motorcycle: the bike waits where the original parks it (Mexico's trail start, Jan Mayen). Press E beside it to get on with the original mount animation, then ride with the move stick (forward throttle, back brake/reverse, left/right steer) and Space to hop; slopes, steps, ramps and jumps follow the terrain, big drops hurt as in the original (its fall-damage numbers), and riding into enemies knocks them down. E near standstill gets off. Steering and top speed come from the bike's own data; acceleration and braking are approximations. Wheels spin and the handlebars turn, the camera follows behind the bike, the first ride in Mexico plays "Lara's new bike", and saves keep the bike and whether Lara is on it.