WIP: refactor(hooks): the player features on hook sites, and Skip title screen on the game's own waits #2272

Closed
HumanBean wants to merge 1 commit from HumanBean/Longshot:feat/hook-sites-squashed into main
Owner

Summary

Longshot's own changes to the game's code were exact-text patches over the lifted C (nx2/oot_patches.py): each
searched the translated functions for a line it expected and wrote its C beside it, so a lifter change that moved a
line silently dropped a feature ("found 0 times"), and every patch kept its function out of the shared context. This
moves them to hook sites: places in the game's functions, listed as data in one table per game build
(host/game/sites.toml, the definitions, and host/game/sites/<build id>/locations.toml, each build's places), found by a masked signature of the game's instructions and hooked by the
lift while it writes the C (nx2/hooks.py). A site that does not resolve exactly once stops the build, naming it.

What a player gets: the same features as before, now placed by address instead of found by text, and Skip title screen
pressing A only as the game waits on the title, its file list and its Yes, instead of blind presses from 20 s. The
features that were edits after an instruction by address (field of view, shadows, jitter, widescreen) and the host's
calls into the game by fixed address move the same way, so the game is changed in one way only.

What changed:

  • The machinery (nx2/hooks.py, host/game/sites.{c,h,def}, host/oot_sites.c): the table's reader and its
    signature resolver; the forms entry (and can_return), return, after, before, replace, branch, allow,
    jump and a call replaced; inline data rules (C over a host value, no callback); a site's flag byte and callback
    slot; a rule table retired and freed only when its readers have left. A site that changes the game's outcome on a
    worker thread must be an engine feature's or an inline rule (the reader checks it).
  • Finding a site by what is there (ideas from Morphe's fingerprints and Fabric's Mixin and MixinExtras;
    hooks.md says which were taken and why): a site's definition (host/game/sites.toml: name, form, arguments,
    answer) apart from each build's locations (host/game/sites/<build id>/locations.toml); anchors by a call's target
    or a vtable slot, an ordinal, a slice from and to another site, a shift, a site inside another's function
    (jump.takeoffVelocity and shadow.fitBasis use them, without the guards they needed); a site that does not
    resolve exactly once names its candidates and nearest misses; several handlers on one site in a set order around
    its callback (hos_site_add, hos_site_next); nx2/hooks.py check and review. The lifted C of all 132 sites is
    byte for byte the same as before these (96 of 96 generated files).
  • The base it sits on (host/game/game.c, flags.c, phases.c): one game_call and one reader of the game's
    flags, and frame phases run on the main thread at the window acquire (the reclaim of retired tables runs there).
  • 132 sites in place of the text patches and the edits by address: Text speed and size, Skip
    opening, the save requests' trace and Transition autosave, Camera speed, native mouse look, the menus' mouse, the
    button prompts, the host's zstd decodes, the cloth's solve and time, a movie's frame count, the native HDR scene
    format, the Debug tab's Damage taken, heart protection, Link's update, flight, free camera and Movement speed, a
    horse's jump step, texture compaction, the physics solver's steps, the sound job and the music manager, Link's driven
    body, the counters cut to whole frames, the fixed resolution's scale, Disable camera centering, a moving floor's
    carry, the Voice Language option, the OptimizeChangeBank heap retries, song notes, the ocarina's note wait, a loop of
    one frame on one pose, the saved steering rate, the job barriers, dynamic resolution, the preload manager's choice
    the frame's real time at the step divides, Sprint and a jump's takeoff (speed and velocity), the field of view, the
    shadow size, steady sun shadows, the camera jitter, and widescreen and ultrawide (23 sites, host/oot_wide_sites.c).
    nx2/oot_fov.py, oot_shadow.py, oot_shadow_fit.py, oot_jitter.py and oot_wide.py are gone. What is left of
    oot_patches.py: the output size's eight edits and the gameplay HUD wrapper (#1855); why each stays is in hooks.md.
  • The host's calls into the game (the menus' mouse, the pause background's pieces, Link's moves by his controller,
    the heap retries) go through game_call (game_call_more for a call with x8, its own LR, or s0/s1 handed back).
  • Players' ExeFS patch mods (already on main): a file that would stop a site resolving is refused, named with the
    site, instead of stopping the lift (nx2/exefs_patches.py refuse_site_clashes).
  • Skip title screen (host/oot_autoload.c, sites menu.buttonWait*): A 300 ms after the game waits on
    Title_00, SystemLoadList_00 and SystemSaveLoad_00; the timed presses stay as the fallback (no wait on those
    three told by 45 s; a wait told later puts the hook path back), and presses stop once the check's A has been taken and
    the game is loading. It holds while the Insert menu is open (option 1, as on main).
  • The parity gates (scripts/parity_gates.py, docs/dev/reference/parity-gates.md): gates 3 to 5 for refactors of
    the game's code, run against main, at the 60 cap and with each checkpoint taken once the game has settled.
  • The tables live in host/game/sites/, which every builder and the AppImage carry, so a pull request built by the
    released launcher over a nightly's tools has them too.

Read first: docs/dev/reference/hooks.md, nx2/hooks.py, host/game/sites.h, host/oot_sites.c, then any one port
(refactor(text): Text speed and Text size through the hook site text.letterStep) and its test.

Prior work: supersedes the unopened branch feat/title-skip-hooked (the title skip as a text patch). See #659 and
#1577 (the title skip and the boot save meet this one's Skip title screen). Replaces #2253 (the same change before the last
moves, squashed); #1958 is rebased onto this.

Testing

Self-review (348f2215): the ports read and write what main's patches did, under the same conditions, on the same
paths. Fixed with a game-free test each: sites.def in the lift key; an after site on an instruction a replace
site took; apply's host-def; republishing a live rule table; gate 4's noise counting the save picture; Voice Language
reading entry 0 past the count, as main does; of = N for ordinal anchors (jump.takeoffVelocity uses
ordinal = 1, of = 2); Skip title's fallback; the handler chain's callee, guest-context cursor, grace period, and
refusal of a run-time handler on the 39 sites that change a worker thread's outcome. All 66 site, hook, flag, title
skip and gate checks pass; the lift of 348f2215's tree is byte for byte the lift of 3c58d599 (96 of 96 generated
files). Skip title's changed fallback is to run again in the game (branch only).

By hand, this PC (the user, at 03ce25a2's game code, the market-entrance save): Text speed and size, Disable camera
centering, Movement speed 2x, cloth at 144, and widescreen at 21:9 look as they should. The menus' mouse does not take
the mouse on Linux, as on main: it is a Windows feature (host/posix/display_sdl.c answers no game menu, on both);
Windows on Beanstalk. Flight: to confirm against main.

At 3c58d599 / 03ce25a2, whose game code is the same (320f745c keeps the lifted game code byte for byte; it adds the
site finding and the host's handler chains). Linux CachyOS 7.3.3, RTX 3090, NVIDIA 620.70.06, this PC. A pack over
base 8aa74983 (5 min 43 s: lift and split 90 s, compile 216 s cold, no failure; every site of the 132 placed, one
warning as before: preload.choice before f_832b9880+0x548). main a2dc5385's runtime against this one, every game
run a --mode shared job of the queue (gate 2 timing), a throwaway user folder (headless, no audio; a window for the
Insert menu's keys and the wide picture), RX_VK_LOAD=create on both sides (programs at first use; gate 2 keeps the
default). The same inputs and readings on both sides, over the control bridge (inputs, teleports, option rows, the live
input file, timed Insert-menu keys), each item read from numbers and log lines with a written pass rule:

Check (rows of the plan) Result What it read
Skip title screen (4; this branch alone) PASS 7/7 each save: Title_00, SystemLoadList_00, SystemSaveLoad_00 waited and A on each, then loaded, Link in the save's map; no save: the title stays; the Insert menu open: no press; the row turned off while waiting: no press; the menu closed later: the A only after it (title waited at frame 148, A at 11016), then loaded
Skip opening; a movie at 144 (3, 12) PASS 6/6 title to control 13.8 / 12.8 s with the row on, 370 / 387 s off; the opening's time at 144 as at 60 on both
Camera speed: yaw, half deflection, pitch, Z-target (6) PASS 17/17 yaw -71.2 / -142.4 degrees at 100 / 200 %, pitch span 12 / 24 degrees, identical on both
Native mouse look (7) PASS 4/4 yaw -90.0 degrees on both, no drift
Transition autosave, the save trace (5) PASS on the trace lines the walk Field, Market, Field twice more on each side: the same 10 save trace: lines (reasons 4, 10, 2, 6, 2, 1, 4, 6, 6, 2) on both, every time; the row off: the same 13 lines with transition autosave suppressed on both. No file written on either side (as in the gates' runs here)
Text box, button prompts live, HUD after the pause (1, 2, 9, 44) prompts PASS; text speed and size not reached a Market guard's question box on both, the prompt glyphs (Xbox, PS5, Keyboard, Switch) changing live on both. The box asked a question, so A chose rather than turned a page: text speed and size are by eye. The shots differ by Link's spot as the search reached the guard
High frame rates: step divides, steering, time of day, swimming (11, 21-31, 33, 38, 39, 43) PASS at 60 and 144; uncapped within main's own spread walking 4.48 / 4.48 m/s at 60, 4.50 / 4.49 at about 100 fps (144 cap), 4.68 / 4.50 uncapped; music, the time-of-day flags' rates the same; uncapped steering 272 and 338 (two runs of main) against 317 deg/s, swimming 6.05 and 6.63 against 5.97 m/s
A jump's takeoff (moving onto sites) PASS at 60 backflip rise 0.33 / 0.33 m, distance 4.034 / 4.038 m, 2.05 s in the air; at 144 the drive's backflip did not take off on either side (by eye)
Sprint the same on both sprints 2.06 / 2.03 and 5.43 / 5.26 m/s at 144, 2.97 / 3.08 and 5.26 / 5.28 at 60, walks 4.4 to 4.5
Damage taken, heart protection, free camera (14, 15, 17) PASS life lost in Death Mountain Crater's heat per setting within tolerance; heart protection: none in 15 s on both; free camera: Link 0.0 m while the view moves; the Debug rows the host read (the recordings' option lines) identical
Movement speed, flight (16, 18) the rows set alike; the effect by eye the timed keys set Movement speed 2x and flight on both sides alike (option lines); the drive walked into the house's walls and the double tap did not take off
Heap retries, forced (35) PASS 12/12 HOS_GPU_ALLOC_TEST_FAIL=8,8: the same retry lines and kinds, made in a parent, the game alive
zstd, textures, loads (10, 20, 40) PASS 12/12 four teleports 4 to 6 s each on both, the same zstd and tex lines, none lifted; no run hung
Dynamic and fixed resolution (41) PASS 7/7 the row's values and text, Auto's picture sizes
Field of view, shadows, the steady fit (moving onto sites) lines PASS the row's values (100/150/50/100) and every shadow: line the same (the steady fit's list differs by one passing size as Link moved); shots of the same spot and light, apart by Link's and Navi's placement
A mod's ExeFS patch over a site (45) PASS 3/3 it changes f_80643f10+0x30 ... it would stop the game's hook site camera.yawSpeed; a patch elsewhere applies; exit 0
Voice Language kept (34) by eye the same on both (Japanese at the first start, English after the restart in English): this drive did not make option.sav keep it
  • Gate 3, behaviour at 3c58d599 (scenario 2, A main a2dc5385, A, B, A): PASS on all three, 7 of 7
    checkpoints each; kokiri-start 40 flag values compared (14 left out as noise), castle-gate 34 (14), market-entrance
    59 (14). Gate 4 inconclusive on all three (no save written in the scenario, 9, 9 and 11 requests on each side);
    gate 5 PASS on both sides of all three.
  • Gate 2, speed at 3c58d599: Measurements.

The runs below were at 6b01227a, before Sprint, the takeoff, the field of view, shadows, jitter, widescreen and the host's calls moved; they hold for what was on sites then.

Tested: Linux CachyOS (kernel 7.3.3), RTX 3090, NVIDIA 620.70.06, this PC. main is a2dc5385 built as a pack over
the same shared base (8aa74983) as this branch's 6b01227a, so both sides differ only by this branch; every game run
through the PC's queue (shared, timing for gate 2):

  • tests/run_all.py --strict through the queue (light): 920 passed, 23 failed, 18 skipped; main a2dc5385 the same
    way: 22 failed, the same 22 (they fail on main too). The 23rd, tests/test_teleport_check.py, failed on a cut of
    host/hos_main.c the game_call refactor moved; fixed in the branch and passing since (run alone through the
    queue). tests/test_crash_record.py timed out once in the first run and passed in the second.
  • A dev pack over the shared base and its runtime (dev.py pack, dev.py rt, through the queue): built on base 8aa74983 in 7 min 36 s (compile 5 min 6 s), no failure; the lift placed every
    site of the table (hooks: <site> at ... for each) and the runtime was made. Rebuilt for gate 2: the lift again
    placed all 98 sites, one with a warning: preload.choice before f_832b9880+0x548 (WARNING: after a call, but a label: other paths reach it too, not only the call's return).
  • Gate 3, behaviour (scripts/parity_gates.py, scenario 2: the 60 cap, each checkpoint once the game has
    settled; A = main a2dc5385, B = this branch at 8ebb143d, whose game code is 6b01227a's; A, B, A on each save):
    gate 3 PASS on all three, every run at all 7 checkpoints, the map, age, life, maximum life, rupees and every
    compared flag the same (kokiri-start 48 flag values compared, 14 left out as noise; castle-gate 50, 18; market-entrance
    61, 14). The two runs of main were 0.000 m, 0.0 degrees apart at every checkpoint (scenario 1, at a 1000 cap,
    had them 4 to 10 m and 114 degrees apart: game time followed the measured frame rate, and a teleport's checkpoint was
    taken before its arrival). Gate 4: castle-gate PASS (account.sav, slot_00 identical; option.sav, slot_01's
    progress.sav and caption.sav the same outside their noise, date and picture); kokiri-start and market-entrance
    inconclusive, no save written in the scenario (9 and 11 requests). Gate 5: PASS on both sides of all three.
    The gates' own check: main against main PASS; --b-env HOS_FPS_MAX=1000 --b-env HOS_FPS_STEP=1 FAIL on the
    walks as it must (walk: pos 0.968 m apart (tolerance 0.300), field-walk: pos 3.378 m apart, 9 flag values).
  • Gate 2, speed: dev.py ab --scene hyrule-field --options <resolution=3>, A B A B A B, A main's runtime
    (Measurements).
  • Gate 1, code: tests/test_hooks_emit.py (the empty table emits byte for byte) passes, 3 tests, through the
    queue (light). nx2/test_leaf.py does not run on Linux: its harness is Windows-only (windows.h, __try,
    VirtualAlloc), on main too, and it lifts with the kit's lifter directly, not through the site table.
  • Skip title screen, cold starts of this branch's runtime with the row on (skip_title_screen=1), each in a user
    folder of its own with the save copied in, through the bridge (screenshots on this PC):
    • kokiri-start: Title_00 waited at frame 103, A at 120; SystemLoadList_00 at 234, A at 308; SystemSaveLoad_00
      at 324, A at 397; skip title: loaded, the player is running at frame 1383, 14.4 s after the first controller read,
      in Link's house.
    • castle-gate: the same three waits and presses (A at 103, 336, 434); loaded at frame 1378, 13.0 s, Hyrule Field.
    • market-entrance: the same (A at 103, 360, 452); loaded at frame 1498, 12.9 s, Market.
    • No save: skip title: no saved game yet: the title screen stays, no press; still on the title 40 s later.
    • The Insert menu open from the start (RX_VK_MENU_SCRIPT=0.5:INS): Title_00 waited at frame 89, then no press for
      60 s, the title still there.
    • The row turned off over the bridge while the title waited (menu open): skip title: the row was turned off while waiting, no press, the title stays.
    • Not shown: the presses resuming once the menu closes (the menu script's clock starts before the first frame, so a
      close at a set time came before the title).
  • Camera speed (sites camera.*Speed*), a spot check over the bridge from kokiri-start: the right stick held 40
    frames turned the camera 90.3 / 92.6 degrees at 100 % and 174.9 / 174.9 at 200 %, the same on main and this branch
    to 0.1 degree.
  • A pull request built as the released launcher builds one (a nightly's top folders, each replaced by this branch's):
    tests/test_launcher_pr_build.py from #1958, without its system mods' and SDK's checks: passes (the site tables are
    found under host/game/sites/, every site of build e0f3ccfa's table loads, the AppImage and the Windows builder still
    carry every top folder).

Still to test:

  • Windows, by hand: parity gate 1, nx2/test_leaf.py (its harness is Windows-only), expecting the lifted fixture functions
    as on main.
  • The lab's RX 580: gate 2, main against this branch at resolution=3, expecting the 2 % neutral band; this PC and
    the lab: the other two areas of the 3-area bench and the hot sites read apart (barrier.*, anim.loop*,
    physics.floorCarry*, heap.*, sound.job*) (by hand).
  • This PC: the build's cost on a quiet PC, a clean lift and compile of each side (by hand).
  • This PC, by hand, main then this branch with the same steps, each expecting the same as main:
    • Windows: the menus' mouse (Pause, hover Items and Equipment, click a slot; the focus follows the pointer), by hand or @Beanstalk.
    • Flight: Debug tools on, No-clip flight on, double-tap Jump, hold it to climb, L to descend; flies and turns as on main.
    • Voice Language: change it in the game's own options to Japanese, quit, start again; the voices still Japanese.
    • Physics at 144: push a block, drop a bomb, knock a pot; at their 60 fps speed.
    • Sound and songs at 144 with sound on: 5 min in Hyrule Field to night, Zelda's Lullaby (Debug tools > Inventory gives the Fairy Ocarina and the song); tempo and changes right, no doubled sound, each note once.
    • Ocarina: play it with the pad and the keys, with and without a song lesson; the note wait as on main.
    • Driven body at 144: climb the ladder outside Link's house, ride a moving platform; Link's body follows without jitter.
    • Whole frames at 144: pick up a rupee (cut Kokiri grass), record and play the scarecrow song at Lake Hylia, drop through the Deku Tree's web floor; each at its 60 fps timing.
    • Moving floors at 144: stand on a Deku Tree platform; carried at its speed, no slide.
    • One-frame loops at 144: watch idle Kokiri and Link standing for a minute; no flicker between poses.
    • Backflip at 144: Z-target, back and A, a few times; the same hop as at 60.
    • Jitter: DLSS or FSR 3.1 on, stand still; no shimmer, as on main.
    • Gameplay HUD: open and close the pause, change maps; HUD placement as on main.
  • By hand, on an HDR display: HDR Native with the PsychoV35 tone mapper in Hyrule Field at noon; HDR output as on main.
  • By hand, with an adult save with Epona: Epona over a Lon Lon fence at 144 and at 60; the same arc.
  • Windows: @Beanstalk the hook sites: a cold build (every player re-lifts once), the game to play, Skip title screen on with a save, Text speed, Camera speed and the Debug tab's Damage taken as on main.

Measurements

Verdict: (3c58d599) no difference shown on this PC: dev.py ab gives +3.0 % fps (median 124.4 against 120.8),
within the runs' spread. One run of main, A2, was disturbed (96.6 fps, p99 38.75 ms: the PC was shared, swap in
use); without it main's median is 123.0 and this branch's 124.4, +1.1 %, inside the 2 % band, and the two clean pairs
are 120.8 / 125.0 and 125.2 / 124.4. A fourth pair to replace A2 was queued but stopped before it ran (the PC ran short
of memory). The RX 580 is still to come.

Setup (3c58d599): as below; dev.py ab --scene hyrule-field --options <resolution=3> --runs 3 --allow sim_turf_density --allow sim_turf_fade_start --allow sim_turf_far_power --allow sim_turf_minimum_blades (a run of
main had read those Simulated turf rows before its area loaded), side A main a2dc5385's runtime, each run a
timing job alone, the runtime's default program loading.

Before: main @ a2dc5385 After: this PR @ 3c58d599 Δ
fps (each run) 120.8 / 96.6 / 125.2 (median 120.8) 125.0 / 119.0 / 124.4 (median 124.4) +3.0%
1% low fps (1000 / p99) 78.4 101.0 +28.8%
median frame time 8.05 ms 7.97 ms -0.08 ms
p99 frame time 12.75 ms 9.90 ms -2.85 ms
frames of 50 ms or more (median) 0 0 +0

Spread: observed fps ranges: A 96.6 to 125.2; B 119.0 to 125.0 (A2 is the disturbed run).

A1: 7249 frames in 60 s, 120.8 fps, median 8.05 ms, p99 12.75 ms, 1% low 78.4 fps, 1 cold frames
B1: 7499 frames in 60 s, 125.0 fps, median 7.94 ms, p99 9.90 ms, 1% low 101.0 fps, 0 cold frames
A2: 5797 frames in 60 s, 96.6 fps, median 8.64 ms, p99 38.75 ms, 1% low 25.8 fps, 2 cold frames
B2: 7137 frames in 60 s, 119.0 fps, median 8.05 ms, p99 14.57 ms, 1% low 68.6 fps, 1 cold frames
A3: 7510 frames in 60 s, 125.2 fps, median 7.91 ms, p99 10.04 ms, 1% low 99.6 fps, 0 cold frames
B3: 7463 frames in 60 s, 124.4 fps, median 7.97 ms, p99 9.86 ms, 1% low 101.4 fps, 2 cold frames

The build at 3c58d599: a pack over base 8aa74983, this PC, not quiet: lift and split 90 s (coverage 12 s, emit and
write 38 s, the patches 1.3 s), compile 216 s (every object again: the system headers had changed), 5 min 43 s in all;
the executable 612,171,000 bytes against main's 612,108,656 (+62 KB).

At 6b01227a (before the last ports moved), for the record: within the neutral band, +0.6 % fps (median 127.9 against
127.1), every run of the branch above every run of main.

Switches: none added, so no default changes. The names the diff carries are already main's switches, which the gate script (scripts/parity_gates.py) and its docs set for their own runs: no Discord, no mods, the bridge's input alone, no pacing, a fixed step and Output resolution (HOS_DISCORD, HOS_MODS, HOS_INPUT_EXCLUSIVE, HOS_INPUT_SCRIPT_BACKGROUND, HOS_NO_PACING, HOS_NO_SDL, HOS_REALTIME_STEP, HOS_OUTPUT_RES, HOS_RT_POOL_MB, HOS_TEXT_SPEED, HOS_OOT_TRACE_SAVES, RX_VK_FRAMEGEN). LONGSHOT_JOB and LONGSHOT_JOB_MODE are the job queue's, read to refuse a run outside a --mode shared job. HOS_OOT_BOOT_SAVE (#1577, not merged) is set only with --boot-save.

Setup: Linux CachyOS 7.3.3-1, NVIDIA RTX 3090, driver 620.70.06; Hyrule Field, child (open, far view) (window
3840x2049); quality preset Custom, Render resolution 67 % (1707x960, resolution=3 pinned), output 2560x1440, frame
generation Off, V-Sync Off; uncapped (HOS_FPS_MAX=1000); the frame trace, 60 s each after a warm-up until no frame
waited for a pipeline, 3 interleaved pairs, the median; dev.py ab, side A main a2dc5385's runtime (its pack over
the same base; the tool's label says main @ 068fb8eb, a mislabel of the side, the runs' manifests name main's runtime).

Before: main @ a2dc5385 After: this PR @ 6b01227a Δ
fps (each run) 127.1 / 126.8 / 127.3 (median 127.1) 127.5 / 127.9 / 128.2 (median 127.9) +0.6%
1% low fps (1000 / p99) 107.8 109.4 +1.5%
median frame time 7.85 ms 7.81 ms -0.04 ms
p99 frame time 9.28 ms 9.14 ms -0.14 ms
frames of 50 ms or more (median) 0 0 +0

Spread: observed fps ranges: A 126.8 to 127.3; B 127.5 to 128.2.

A1: 7625 frames in 60 s, 127.1 fps, median 7.82 ms, p99 9.69 ms, 1% low 103.2 fps, 0 cold frames
B1: 7650 frames in 60 s, 127.5 fps, median 7.82 ms, p99 9.23 ms, 1% low 108.3 fps, 1 cold frames
A2: 7607 frames in 60 s, 126.8 fps, median 7.86 ms, p99 9.28 ms, 1% low 107.8 fps, 0 cold frames
B2: 7671 frames in 60 s, 127.9 fps, median 7.81 ms, p99 9.14 ms, 1% low 109.4 fps, 0 cold frames
A3: 7636 frames in 60 s, 127.3 fps, median 7.85 ms, p99 9.20 ms, 1% low 108.7 fps, 0 cold frames
B3: 7692 frames in 60 s, 128.2 fps, median 7.80 ms, p99 9.07 ms, 1% low 110.2 fps, 0 cold frames

The build (the re-lift every player makes once), dev packs on one shared base and work folder, this PC (Ryzen,
znver4), not a quiet one (other sessions' runs, swap in use):

lift of which: image and discovery / emit and write / patches compile
main a2dc5385 131 s 35 s / 54 s / 7.0 s 8 s (63 objects, the rest from the object store)
this branch, first build 115 s 53 s / 39 s / 1.8 s 306 s (391 objects, cold)
this branch, again after main's 166 s 90 s / 50 s / 2.0 s 9 s (from the object store)

The lift is the same order on both sides (the text patches' phase falls from 7 s to 2 s; the site resolver is inside
"image and discovery", whose 35 to 90 s spread here is the PC's load, as the read phase's 16 s against 42 s shows). A
clean compile of each side on a quiet PC is still to come; the executable is 612,157,288 bytes against main's
612,108,656 (+48 KB).

Risks

  • The camera clearance keeps fewer locals: f_8073a4a0 no longer keeps its integer and flag registers as locals
    (on main #2009's vector-only exemption kept them; its after sites now put it in no_local, as do the vector-only
    rule sites in f_80706be0). #2009 measured the clearance's first read at about once a frame; gate 2 at 3c58d599 read
    +1.1 % over the clean pairs, inside the 2 % band.

  • Every player lifts once more: host/game/sites.def is now part of the lift's key.

  • A port that does something other than its text patch did: each site's callback or rule replaces a patch's C;
    a wrong register or a missed path changes a feature, or (the heap retries, the barriers) brings back a crash or a
    hang. The ports' game-free checks compile each site as the lift emits it beside the patch it replaced where they can;
    gates 1 to 3 and the per-feature runs above are the rest. Revert the branch to go back.

  • Every player re-lifts once: the lift's key hashes the site tables. A site that stops resolving (another game
    build, a player's code mods together) stops the build with the site's name, where a text patch was silently left
    out; one ExeFS patch over a site alone is refused instead.

  • Cost at play: 132 hooks of one byte load and a predicted branch each when dormant, the 95 engine ones on and
    calling through a pointer; sites in loops (player.lifeHit, the barriers, anim.loop*, jitter.view*, wide.bubble) and the functions that now keep their context are what gate 2 must read.

  • Game code in the repository: sites.toml's signatures are a few masked instruction words of the game per site,
    with function names and offsets, as nx2/oot_wide.py on main holds; no other game data.

  • Skip title screen changes for every player who has it on: it presses on the game's own waits now; a build without
    the sites, or no wait told by 45 s, falls back to the old timed presses. It meets #659 and #1577.

  • A player notices nothing else: no new option, no settings or save change.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says. (At 3c58d599: the per-feature checks against main (every reading the same, or inside main's own spread), gate 3 PASS on all three saves, gate 2 no difference shown. Not yet: the by-eye list in Still to test.)
  • mise run test passes (any failure that also fails on main is named). (run_all --strict, which is mise run test: the 22 failures left also fail on main a2dc5385, named in #2253 (comment).)
  • Measured against main, or Measurements says why there is nothing to measure. (This PC; the RX 580 and a clean build's time to come, in Still to test.)
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A check under tests/ that reads changed source is updated, not weakened. (test_drive_target checks the takeoff sites directly: their signatures, arguments and callback registers, exactly-once resolution, and a stop when the body's load moves or a third copy appears; six mutations caught.)
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Linux built here; Windows on Beanstalk, to come.)
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary Longshot's own changes to the game's code were exact-text patches over the lifted C (`nx2/oot_patches.py`): each searched the translated functions for a line it expected and wrote its C beside it, so a lifter change that moved a line silently dropped a feature ("found 0 times"), and every patch kept its function out of the shared context. This moves them to **hook sites**: places in the game's functions, listed as data in one table per game build (`host/game/sites.toml`, the definitions, and `host/game/sites/<build id>/locations.toml`, each build's places), found by a masked signature of the game's instructions and hooked by the lift while it writes the C (`nx2/hooks.py`). A site that does not resolve exactly once stops the build, naming it. What a player gets: the same features as before, now placed by address instead of found by text, and Skip title screen pressing A only as the game waits on the title, its file list and its Yes, instead of blind presses from 20 s. The features that were edits after an instruction by address (field of view, shadows, jitter, widescreen) and the host's calls into the game by fixed address move the same way, so the game is changed in one way only. What changed: - **The machinery** (`nx2/hooks.py`, `host/game/sites.{c,h,def}`, `host/oot_sites.c`): the table's reader and its signature resolver; the forms `entry` (and `can_return`), `return`, `after`, `before`, `replace`, `branch`, `allow`, `jump` and a call replaced; inline data rules (C over a host value, no callback); a site's flag byte and callback slot; a rule table retired and freed only when its readers have left. A site that changes the game's outcome on a worker thread must be an engine feature's or an inline rule (the reader checks it). - **Finding a site by what is there** (ideas from Morphe's fingerprints and Fabric's Mixin and MixinExtras; hooks.md says which were taken and why): a site's definition (`host/game/sites.toml`: name, form, arguments, answer) apart from each build's locations (`host/game/sites/<build id>/locations.toml`); anchors by a call's target or a vtable slot, an ordinal, a slice from and to another site, a shift, a site inside another's function (`jump.takeoffVelocity` and `shadow.fitBasis` use them, without the guards they needed); a site that does not resolve exactly once names its candidates and nearest misses; several handlers on one site in a set order around its callback (`hos_site_add`, `hos_site_next`); `nx2/hooks.py check` and `review`. The lifted C of all 132 sites is byte for byte the same as before these (96 of 96 generated files). - **The base it sits on** (`host/game/game.c`, `flags.c`, `phases.c`): one `game_call` and one reader of the game's flags, and frame phases run on the main thread at the window acquire (the reclaim of retired tables runs there). - **132 sites** in place of the text patches and the edits by address: Text speed and size, Skip opening, the save requests' trace and Transition autosave, Camera speed, native mouse look, the menus' mouse, the button prompts, the host's zstd decodes, the cloth's solve and time, a movie's frame count, the native HDR scene format, the Debug tab's Damage taken, heart protection, Link's update, flight, free camera and Movement speed, a horse's jump step, texture compaction, the physics solver's steps, the sound job and the music manager, Link's driven body, the counters cut to whole frames, the fixed resolution's scale, Disable camera centering, a moving floor's carry, the Voice Language option, the OptimizeChangeBank heap retries, song notes, the ocarina's note wait, a loop of one frame on one pose, the saved steering rate, the job barriers, dynamic resolution, the preload manager's choice the frame's real time at the step divides, Sprint and a jump's takeoff (speed and velocity), the field of view, the shadow size, steady sun shadows, the camera jitter, and widescreen and ultrawide (23 sites, `host/oot_wide_sites.c`). `nx2/oot_fov.py`, `oot_shadow.py`, `oot_shadow_fit.py`, `oot_jitter.py` and `oot_wide.py` are gone. What is left of `oot_patches.py`: the output size's eight edits and the gameplay HUD wrapper (#1855); why each stays is in hooks.md. - **The host's calls into the game** (the menus' mouse, the pause background's pieces, Link's moves by his controller, the heap retries) go through `game_call` (`game_call_more` for a call with x8, its own LR, or s0/s1 handed back). - **Players' ExeFS patch mods** (already on main): a file that would stop a site resolving is refused, named with the site, instead of stopping the lift (`nx2/exefs_patches.py` `refuse_site_clashes`). - **Skip title screen** (`host/oot_autoload.c`, sites `menu.buttonWait*`): A 300 ms after the game waits on `Title_00`, `SystemLoadList_00` and `SystemSaveLoad_00`; the timed presses stay as the fallback (no wait on those three told by 45 s; a wait told later puts the hook path back), and presses stop once the check's A has been taken and the game is loading. It holds while the Insert menu is open (option 1, as on `main`). - **The parity gates** (`scripts/parity_gates.py`, docs/dev/reference/parity-gates.md): gates 3 to 5 for refactors of the game's code, run against `main`, at the 60 cap and with each checkpoint taken once the game has settled. - The tables live in `host/game/sites/`, which every builder and the AppImage carry, so a pull request built by the released launcher over a nightly's tools has them too. Read first: docs/dev/reference/hooks.md, `nx2/hooks.py`, `host/game/sites.h`, `host/oot_sites.c`, then any one port (`refactor(text): Text speed and Text size through the hook site text.letterStep`) and its test. Prior work: supersedes the unopened branch `feat/title-skip-hooked` (the title skip as a text patch). See #659 and #1577 (the title skip and the boot save meet this one's Skip title screen). Replaces #2253 (the same change before the last moves, squashed); #1958 is rebased onto this. ## Testing **Self-review (348f2215):** the ports read and write what `main`'s patches did, under the same conditions, on the same paths. Fixed with a game-free test each: `sites.def` in the lift key; an `after` site on an instruction a `replace` site took; `apply`'s host-def; republishing a live rule table; gate 4's noise counting the save picture; Voice Language reading entry 0 past the count, as `main` does; `of = N` for ordinal anchors (`jump.takeoffVelocity` uses `ordinal = 1, of = 2`); Skip title's fallback; the handler chain's callee, guest-context cursor, grace period, and refusal of a run-time handler on the 39 sites that change a worker thread's outcome. All 66 site, hook, flag, title skip and gate checks pass; the lift of 348f2215's tree is byte for byte the lift of 3c58d599 (96 of 96 generated files). Skip title's changed fallback is to run again in the game (branch only). **By hand, this PC (the user, at 03ce25a2's game code, the market-entrance save):** Text speed and size, Disable camera centering, Movement speed 2x, cloth at 144, and widescreen at 21:9 look as they should. The menus' mouse does not take the mouse on Linux, as on `main`: it is a Windows feature (`host/posix/display_sdl.c` answers no game menu, on both); Windows on Beanstalk. Flight: to confirm against `main`. **At 3c58d599 / 03ce25a2, whose game code is the same** (320f745c keeps the lifted game code byte for byte; it adds the site finding and the host's handler chains). Linux CachyOS 7.3.3, RTX 3090, NVIDIA 620.70.06, this PC. A pack over base 8aa74983 (5 min 43 s: lift and split 90 s, compile 216 s cold, no failure; every site of the 132 placed, one warning as before: `preload.choice before f_832b9880+0x548`). `main` a2dc5385's runtime against this one, every game run a `--mode shared` job of the queue (gate 2 `timing`), a throwaway user folder (headless, no audio; a window for the Insert menu's keys and the wide picture), `RX_VK_LOAD=create` on both sides (programs at first use; gate 2 keeps the default). The same inputs and readings on both sides, over the control bridge (inputs, teleports, option rows, the live input file, timed Insert-menu keys), each item read from numbers and log lines with a written pass rule: | Check (rows of the plan) | Result | What it read | |---|---|---| | Skip title screen (4; this branch alone) | PASS 7/7 | each save: `Title_00`, `SystemLoadList_00`, `SystemSaveLoad_00` waited and A on each, then `loaded`, Link in the save's map; no save: the title stays; the Insert menu open: no press; the row turned off while waiting: no press; the menu closed later: the A only after it (title waited at frame 148, A at 11016), then loaded | | Skip opening; a movie at 144 (3, 12) | PASS 6/6 | title to control 13.8 / 12.8 s with the row on, 370 / 387 s off; the opening's time at 144 as at 60 on both | | Camera speed: yaw, half deflection, pitch, Z-target (6) | PASS 17/17 | yaw -71.2 / -142.4 degrees at 100 / 200 %, pitch span 12 / 24 degrees, identical on both | | Native mouse look (7) | PASS 4/4 | yaw -90.0 degrees on both, no drift | | Transition autosave, the save trace (5) | PASS on the trace lines | the walk Field, Market, Field twice more on each side: the same 10 `save trace:` lines (reasons 4, 10, 2, 6, 2, 1, 4, 6, 6, 2) on both, every time; the row off: the same 13 lines with `transition autosave suppressed` on both. No file written on either side (as in the gates' runs here) | | Text box, button prompts live, HUD after the pause (1, 2, 9, 44) | prompts PASS; text speed and size not reached | a Market guard's question box on both, the prompt glyphs (Xbox, PS5, Keyboard, Switch) changing live on both. The box asked a question, so A chose rather than turned a page: text speed and size are by eye. The shots differ by Link's spot as the search reached the guard | | High frame rates: step divides, steering, time of day, swimming (11, 21-31, 33, 38, 39, 43) | PASS at 60 and 144; uncapped within `main`'s own spread | walking 4.48 / 4.48 m/s at 60, 4.50 / 4.49 at about 100 fps (144 cap), 4.68 / 4.50 uncapped; music, the time-of-day flags' rates the same; uncapped steering 272 and 338 (two runs of `main`) against 317 deg/s, swimming 6.05 and 6.63 against 5.97 m/s | | A jump's takeoff (moving onto sites) | PASS at 60 | backflip rise 0.33 / 0.33 m, distance 4.034 / 4.038 m, 2.05 s in the air; at 144 the drive's backflip did not take off on either side (by eye) | | Sprint | the same on both | sprints 2.06 / 2.03 and 5.43 / 5.26 m/s at 144, 2.97 / 3.08 and 5.26 / 5.28 at 60, walks 4.4 to 4.5 | | Damage taken, heart protection, free camera (14, 15, 17) | PASS | life lost in Death Mountain Crater's heat per setting within tolerance; heart protection: none in 15 s on both; free camera: Link 0.0 m while the view moves; the Debug rows the host read (the recordings' option lines) identical | | Movement speed, flight (16, 18) | the rows set alike; the effect by eye | the timed keys set Movement speed 2x and flight on both sides alike (option lines); the drive walked into the house's walls and the double tap did not take off | | Heap retries, forced (35) | PASS 12/12 | `HOS_GPU_ALLOC_TEST_FAIL=8,8`: the same retry lines and kinds, made in a parent, the game alive | | zstd, textures, loads (10, 20, 40) | PASS 12/12 | four teleports 4 to 6 s each on both, the same zstd and tex lines, none lifted; no run hung | | Dynamic and fixed resolution (41) | PASS 7/7 | the row's values and text, Auto's picture sizes | | Field of view, shadows, the steady fit (moving onto sites) | lines PASS | the row's values (100/150/50/100) and every `shadow:` line the same (the steady fit's list differs by one passing size as Link moved); shots of the same spot and light, apart by Link's and Navi's placement | | A mod's ExeFS patch over a site (45) | PASS 3/3 | `it changes f_80643f10+0x30 ... it would stop the game's hook site camera.yawSpeed`; a patch elsewhere applies; exit 0 | | Voice Language kept (34) | by eye | the same on both (Japanese at the first start, English after the restart in English): this drive did not make option.sav keep it | - **Gate 3, behaviour** at 3c58d599 (scenario 2, A `main` a2dc5385, A, B, A): **PASS on all three**, 7 of 7 checkpoints each; kokiri-start 40 flag values compared (14 left out as noise), castle-gate 34 (14), market-entrance 59 (14). Gate 4 inconclusive on all three (no save written in the scenario, 9, 9 and 11 requests on each side); gate 5 PASS on both sides of all three. - **Gate 2, speed** at 3c58d599: Measurements. **The runs below were at 6b01227a**, before Sprint, the takeoff, the field of view, shadows, jitter, widescreen and the host's calls moved; they hold for what was on sites then. **Tested:** Linux CachyOS (kernel 7.3.3), RTX 3090, NVIDIA 620.70.06, this PC. `main` is a2dc5385 built as a pack over the same shared base (8aa74983) as this branch's 6b01227a, so both sides differ only by this branch; every game run through the PC's queue (`shared`, `timing` for gate 2): - `tests/run_all.py --strict` through the queue (light): 920 passed, 23 failed, 18 skipped; `main` a2dc5385 the same way: 22 failed, the same 22 (they fail on `main` too). The 23rd, `tests/test_teleport_check.py`, failed on a cut of `host/hos_main.c` the `game_call` refactor moved; fixed in the branch and passing since (run alone through the queue). `tests/test_crash_record.py` timed out once in the first run and passed in the second. - A dev pack over the shared base and its runtime (`dev.py pack`, `dev.py rt`, through the queue): built on base 8aa74983 in 7 min 36 s (compile 5 min 6 s), no failure; the lift placed every site of the table (`hooks: <site> at ...` for each) and the runtime was made. Rebuilt for gate 2: the lift again placed all 98 sites, one with a warning: `preload.choice before f_832b9880+0x548 (WARNING: after a call, but a label: other paths reach it too, not only the call's return)`. - **Gate 3, behaviour** (`scripts/parity_gates.py`, scenario 2: the 60 cap, each checkpoint once the game has settled; A = `main` a2dc5385, B = this branch at 8ebb143d, whose game code is 6b01227a's; A, B, A on each save): **gate 3 PASS on all three**, every run at all 7 checkpoints, the map, age, life, maximum life, rupees and every compared flag the same (kokiri-start 48 flag values compared, 14 left out as noise; castle-gate 50, 18; market-entrance 61, 14). The two runs of `main` were 0.000 m, 0.0 degrees apart at every checkpoint (scenario 1, at a 1000 cap, had them 4 to 10 m and 114 degrees apart: game time followed the measured frame rate, and a teleport's checkpoint was taken before its arrival). Gate 4: castle-gate PASS (account.sav, slot_00 identical; option.sav, slot_01's progress.sav and caption.sav the same outside their noise, date and picture); kokiri-start and market-entrance inconclusive, no save written in the scenario (9 and 11 requests). Gate 5: PASS on both sides of all three. The gates' own check: `main` against `main` PASS; `--b-env HOS_FPS_MAX=1000 --b-env HOS_FPS_STEP=1` FAIL on the walks as it must (`walk: pos 0.968 m apart (tolerance 0.300)`, `field-walk: pos 3.378 m apart`, 9 flag values). - **Gate 2, speed**: `dev.py ab --scene hyrule-field --options <resolution=3>`, A B A B A B, A `main`'s runtime (Measurements). - **Gate 1, code**: `tests/test_hooks_emit.py` (the empty table emits byte for byte) passes, 3 tests, through the queue (light). `nx2/test_leaf.py` does not run on Linux: its harness is Windows-only (`windows.h`, `__try`, `VirtualAlloc`), on `main` too, and it lifts with the kit's lifter directly, not through the site table. - **Skip title screen**, cold starts of this branch's runtime with the row on (`skip_title_screen=1`), each in a user folder of its own with the save copied in, through the bridge (screenshots on this PC): - kokiri-start: `Title_00` waited at frame 103, A at 120; `SystemLoadList_00` at 234, A at 308; `SystemSaveLoad_00` at 324, A at 397; `skip title: loaded, the player is running at frame 1383, 14.4 s after the first controller read`, in Link's house. - castle-gate: the same three waits and presses (A at 103, 336, 434); loaded at frame 1378, 13.0 s, Hyrule Field. - market-entrance: the same (A at 103, 360, 452); loaded at frame 1498, 12.9 s, Market. - No save: `skip title: no saved game yet: the title screen stays`, no press; still on the title 40 s later. - The Insert menu open from the start (`RX_VK_MENU_SCRIPT=0.5:INS`): `Title_00` waited at frame 89, then no press for 60 s, the title still there. - The row turned off over the bridge while the title waited (menu open): `skip title: the row was turned off while waiting`, no press, the title stays. - Not shown: the presses resuming once the menu closes (the menu script's clock starts before the first frame, so a close at a set time came before the title). - **Camera speed** (sites `camera.*Speed*`), a spot check over the bridge from kokiri-start: the right stick held 40 frames turned the camera 90.3 / 92.6 degrees at 100 % and 174.9 / 174.9 at 200 %, the same on `main` and this branch to 0.1 degree. - A pull request built as the released launcher builds one (a nightly's top folders, each replaced by this branch's): `tests/test_launcher_pr_build.py` from #1958, without its system mods' and SDK's checks: passes (the site tables are found under `host/game/sites/`, every site of build e0f3ccfa's table loads, the AppImage and the Windows builder still carry every top folder). **Still to test:** - Windows, by hand: parity gate 1, `nx2/test_leaf.py` (its harness is Windows-only), expecting the lifted fixture functions as on `main`. - The lab's RX 580: gate 2, `main` against this branch at `resolution=3`, expecting the 2 % neutral band; this PC and the lab: the other two areas of the 3-area bench and the hot sites read apart (`barrier.*`, `anim.loop*`, `physics.floorCarry*`, `heap.*`, `sound.job*`) (by hand). - This PC: the build's cost on a quiet PC, a clean lift and compile of each side (by hand). - This PC, by hand, `main` then this branch with the same steps, each expecting the same as `main`: - Windows: the menus' mouse (Pause, hover Items and Equipment, click a slot; the focus follows the pointer), by hand or @Beanstalk. - Flight: Debug tools on, No-clip flight on, double-tap Jump, hold it to climb, L to descend; flies and turns as on `main`. - Voice Language: change it in the game's own options to Japanese, quit, start again; the voices still Japanese. - Physics at 144: push a block, drop a bomb, knock a pot; at their 60 fps speed. - Sound and songs at 144 with sound on: 5 min in Hyrule Field to night, Zelda's Lullaby (Debug tools > Inventory gives the Fairy Ocarina and the song); tempo and changes right, no doubled sound, each note once. - Ocarina: play it with the pad and the keys, with and without a song lesson; the note wait as on `main`. - Driven body at 144: climb the ladder outside Link's house, ride a moving platform; Link's body follows without jitter. - Whole frames at 144: pick up a rupee (cut Kokiri grass), record and play the scarecrow song at Lake Hylia, drop through the Deku Tree's web floor; each at its 60 fps timing. - Moving floors at 144: stand on a Deku Tree platform; carried at its speed, no slide. - One-frame loops at 144: watch idle Kokiri and Link standing for a minute; no flicker between poses. - Backflip at 144: Z-target, back and A, a few times; the same hop as at 60. - Jitter: DLSS or FSR 3.1 on, stand still; no shimmer, as on `main`. - Gameplay HUD: open and close the pause, change maps; HUD placement as on `main`. - By hand, on an HDR display: HDR Native with the PsychoV35 tone mapper in Hyrule Field at noon; HDR output as on `main`. - By hand, with an adult save with Epona: Epona over a Lon Lon fence at 144 and at 60; the same arc. - Windows: `@Beanstalk the hook sites: a cold build (every player re-lifts once), the game to play, Skip title screen on with a save, Text speed, Camera speed and the Debug tab's Damage taken as on main`. ## Measurements **Verdict:** (3c58d599) no difference shown on this PC: `dev.py ab` gives +3.0 % fps (median 124.4 against 120.8), within the runs' spread. One run of `main`, A2, was disturbed (96.6 fps, p99 38.75 ms: the PC was shared, swap in use); without it `main`'s median is 123.0 and this branch's 124.4, +1.1 %, inside the 2 % band, and the two clean pairs are 120.8 / 125.0 and 125.2 / 124.4. A fourth pair to replace A2 was queued but stopped before it ran (the PC ran short of memory). The RX 580 is still to come. **Setup (3c58d599):** as below; `dev.py ab --scene hyrule-field --options <resolution=3> --runs 3 --allow sim_turf_density --allow sim_turf_fade_start --allow sim_turf_far_power --allow sim_turf_minimum_blades` (a run of `main` had read those Simulated turf rows before its area loaded), side A `main` a2dc5385's runtime, each run a `timing` job alone, the runtime's default program loading. | | Before: main @ a2dc5385 | After: this PR @ 3c58d599 | Δ | |---|---|---|---| | fps (each run) | 120.8 / 96.6 / 125.2 (median 120.8) | 125.0 / 119.0 / 124.4 (median 124.4) | +3.0% | | 1% low fps (1000 / p99) | 78.4 | 101.0 | +28.8% | | median frame time | 8.05 ms | 7.97 ms | -0.08 ms | | p99 frame time | 12.75 ms | 9.90 ms | -2.85 ms | | frames of 50 ms or more (median) | 0 | 0 | +0 | **Spread:** observed fps ranges: A 96.6 to 125.2; B 119.0 to 125.0 (A2 is the disturbed run). ``` A1: 7249 frames in 60 s, 120.8 fps, median 8.05 ms, p99 12.75 ms, 1% low 78.4 fps, 1 cold frames B1: 7499 frames in 60 s, 125.0 fps, median 7.94 ms, p99 9.90 ms, 1% low 101.0 fps, 0 cold frames A2: 5797 frames in 60 s, 96.6 fps, median 8.64 ms, p99 38.75 ms, 1% low 25.8 fps, 2 cold frames B2: 7137 frames in 60 s, 119.0 fps, median 8.05 ms, p99 14.57 ms, 1% low 68.6 fps, 1 cold frames A3: 7510 frames in 60 s, 125.2 fps, median 7.91 ms, p99 10.04 ms, 1% low 99.6 fps, 0 cold frames B3: 7463 frames in 60 s, 124.4 fps, median 7.97 ms, p99 9.86 ms, 1% low 101.4 fps, 2 cold frames ``` **The build at 3c58d599:** a pack over base 8aa74983, this PC, not quiet: lift and split 90 s (coverage 12 s, emit and write 38 s, the patches 1.3 s), compile 216 s (every object again: the system headers had changed), 5 min 43 s in all; the executable 612,171,000 bytes against `main`'s 612,108,656 (+62 KB). **At 6b01227a** (before the last ports moved), for the record: within the neutral band, +0.6 % fps (median 127.9 against 127.1), every run of the branch above every run of `main`. **Switches:** none added, so no default changes. The names the diff carries are already `main`'s switches, which the gate script (`scripts/parity_gates.py`) and its docs set for their own runs: no Discord, no mods, the bridge's input alone, no pacing, a fixed step and Output resolution (`HOS_DISCORD`, `HOS_MODS`, `HOS_INPUT_EXCLUSIVE`, `HOS_INPUT_SCRIPT_BACKGROUND`, `HOS_NO_PACING`, `HOS_NO_SDL`, `HOS_REALTIME_STEP`, `HOS_OUTPUT_RES`, `HOS_RT_POOL_MB`, `HOS_TEXT_SPEED`, `HOS_OOT_TRACE_SAVES`, `RX_VK_FRAMEGEN`). `LONGSHOT_JOB` and `LONGSHOT_JOB_MODE` are the job queue's, read to refuse a run outside a `--mode shared` job. `HOS_OOT_BOOT_SAVE` ([#1577](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/1577), not merged) is set only with `--boot-save`. **Setup:** Linux CachyOS 7.3.3-1, NVIDIA RTX 3090, driver 620.70.06; Hyrule Field, child (open, far view) (window 3840x2049); quality preset Custom, Render resolution 67 % (1707x960, `resolution=3` pinned), output 2560x1440, frame generation Off, V-Sync Off; uncapped (`HOS_FPS_MAX=1000`); the frame trace, 60 s each after a warm-up until no frame waited for a pipeline, 3 interleaved pairs, the median; `dev.py ab`, side A `main` a2dc5385's runtime (its pack over the same base; the tool's label says `main @ 068fb8eb`, a mislabel of the side, the runs' manifests name main's runtime). | | Before: main @ a2dc5385 | After: this PR @ 6b01227a | Δ | |---|---|---|---| | fps (each run) | 127.1 / 126.8 / 127.3 (median 127.1) | 127.5 / 127.9 / 128.2 (median 127.9) | +0.6% | | 1% low fps (1000 / p99) | 107.8 | 109.4 | +1.5% | | median frame time | 7.85 ms | 7.81 ms | -0.04 ms | | p99 frame time | 9.28 ms | 9.14 ms | -0.14 ms | | frames of 50 ms or more (median) | 0 | 0 | +0 | **Spread:** observed fps ranges: A 126.8 to 127.3; B 127.5 to 128.2. ``` A1: 7625 frames in 60 s, 127.1 fps, median 7.82 ms, p99 9.69 ms, 1% low 103.2 fps, 0 cold frames B1: 7650 frames in 60 s, 127.5 fps, median 7.82 ms, p99 9.23 ms, 1% low 108.3 fps, 1 cold frames A2: 7607 frames in 60 s, 126.8 fps, median 7.86 ms, p99 9.28 ms, 1% low 107.8 fps, 0 cold frames B2: 7671 frames in 60 s, 127.9 fps, median 7.81 ms, p99 9.14 ms, 1% low 109.4 fps, 0 cold frames A3: 7636 frames in 60 s, 127.3 fps, median 7.85 ms, p99 9.20 ms, 1% low 108.7 fps, 0 cold frames B3: 7692 frames in 60 s, 128.2 fps, median 7.80 ms, p99 9.07 ms, 1% low 110.2 fps, 0 cold frames ``` **The build** (the re-lift every player makes once), dev packs on one shared base and work folder, this PC (Ryzen, `znver4`), not a quiet one (other sessions' runs, swap in use): | | lift | of which: image and discovery / emit and write / patches | compile | |---|---|---|---| | `main` a2dc5385 | 131 s | 35 s / 54 s / 7.0 s | 8 s (63 objects, the rest from the object store) | | this branch, first build | 115 s | 53 s / 39 s / 1.8 s | 306 s (391 objects, cold) | | this branch, again after `main`'s | 166 s | 90 s / 50 s / 2.0 s | 9 s (from the object store) | The lift is the same order on both sides (the text patches' phase falls from 7 s to 2 s; the site resolver is inside "image and discovery", whose 35 to 90 s spread here is the PC's load, as the read phase's 16 s against 42 s shows). A clean compile of each side on a quiet PC is still to come; the executable is 612,157,288 bytes against `main`'s 612,108,656 (+48 KB). ## Risks - **The camera clearance keeps fewer locals**: `f_8073a4a0` no longer keeps its integer and flag registers as locals (on `main` #2009's vector-only exemption kept them; its `after` sites now put it in `no_local`, as do the vector-only rule sites in `f_80706be0`). #2009 measured the clearance's first read at about once a frame; gate 2 at 3c58d599 read +1.1 % over the clean pairs, inside the 2 % band. - **Every player lifts once more**: `host/game/sites.def` is now part of the lift's key. - **A port that does something other than its text patch did**: each site's callback or rule replaces a patch's C; a wrong register or a missed path changes a feature, or (the heap retries, the barriers) brings back a crash or a hang. The ports' game-free checks compile each site as the lift emits it beside the patch it replaced where they can; gates 1 to 3 and the per-feature runs above are the rest. Revert the branch to go back. - **Every player re-lifts once**: the lift's key hashes the site tables. A site that stops resolving (another game build, a player's code mods together) stops the build with the site's name, where a text patch was silently left out; one ExeFS patch over a site alone is refused instead. - **Cost at play**: 132 hooks of one byte load and a predicted branch each when dormant, the 95 engine ones on and calling through a pointer; sites in loops (`player.lifeHit`, the barriers, `anim.loop*`, `jitter.view*`, `wide.bubble`) and the functions that now keep their context are what gate 2 must read. - **Game code in the repository**: `sites.toml`'s signatures are a few masked instruction words of the game per site, with function names and offsets, as `nx2/oot_wide.py` on `main` holds; no other game data. - **Skip title screen changes for every player who has it on**: it presses on the game's own waits now; a build without the sites, or no wait told by 45 s, falls back to the old timed presses. It meets #659 and #1577. - A player notices nothing else: no new option, no settings or save change. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [ ] Tested on my own PC, in the game for a change the game runs, as Testing says. (At 3c58d599: the per-feature checks against `main` (every reading the same, or inside `main`'s own spread), gate 3 PASS on all three saves, gate 2 no difference shown. Not yet: the by-eye list in Still to test.) - [x] `mise run test` passes (any failure that also fails on `main` is named). (run_all --strict, which is `mise run test`: the 22 failures left also fail on `main` a2dc5385, named in https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2253#issuecomment-73352.) - [x] Measured against `main`, or Measurements says why there is nothing to measure. (This PC; the RX 580 and a clean build's time to come, in Still to test.) - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A check under `tests/` that reads changed source is updated, not weakened. (`test_drive_target` checks the takeoff sites directly: their signatures, arguments and callback registers, exactly-once resolution, and a stop when the body's load moves or a third copy appears; six mutations caught.) - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Linux built here; Windows on Beanstalk, to come.) - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
refactor(hooks): the player features on hook sites, and Skip title screen on the game's own waits
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 8s
PR description / Description follows the template (pull_request_target) Successful in 11s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 12s
CI / Workflow lint (actionlint) (pull_request) Successful in 13s
Third-party parts / As their notes say (pull_request) Successful in 14s
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Website build and checks (pull_request) Failing after 45s
3c58d59958
Every player feature that changed the game by a text patch, an edit after an instruction by address or a
direct call by fixed address now does it from a hook site (host/game/sites/, sites.toml: 132 sites, each
found by its function's words and checked by a guard) or through game_call. What is still done another way
(the HUD wrapper, the eight output-size edits, boot and a thread's entry) and why is in
docs/dev/reference/hooks.md. A player's ExeFS patch over a site is refused at build.

Skip title screen presses A on the game's own title and save-load waits, only with a saved game, and never
while the Insert menu is open or after the row is turned off.

The parity gates (scripts/parity_gates.py, docs/dev/reference/parity-gates.md) compare a refactor with main
in the game: behaviour at checkpoints, saves written, and what the game starts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Author
Owner

Opened before its game runs, as asked: this is #2253 squashed into one commit, plus the last moves onto sites (Sprint, the takeoff, field of view, shadows, jitter, widescreen and the host's calls through game_call; 132 sites). The per-feature checks (main against this, the same inputs), gate 2 and gate 3 are running on this head now; results go into Testing when they finish.

Opened before its game runs, as asked: this is #2253 squashed into one commit, plus the last moves onto sites (Sprint, the takeoff, field of view, shadows, jitter, widescreen and the host's calls through game_call; 132 sites). The per-feature checks (main against this, the same inputs), gate 2 and gate 3 are running on this head now; results go into Testing when they finish.
HumanBean force-pushed feat/hook-sites-squashed from 3c58d59958
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 8s
PR description / Description follows the template (pull_request_target) Successful in 11s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 12s
CI / Workflow lint (actionlint) (pull_request) Successful in 13s
Third-party parts / As their notes say (pull_request) Successful in 14s
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Website build and checks (pull_request) Failing after 45s
to 320f745ce6
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 27s
CI / Website build and checks (pull_request) Failing after 40s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 42s
CI / Workflow lint (actionlint) (pull_request) Successful in 45s
Third-party parts / As their notes say (pull_request) Successful in 54s
PR description / Description follows the template (pull_request_target) Successful in 33s
2026-11-22 18:14:46 +00:00
Compare
Author
Owner

New head 320f745c (still one commit; the previous head was 3c58d599): sites defined once apart from each build's locations, found by call targets, vtable slots, ordinals and slices as well as words (from Morphe's fingerprints and Mixin), clear reports of candidates and near misses, and several handlers on one site in a set order (MixinExtras-style chaining). The lifted C of all 132 sites is byte for byte the same as 3c58d599's, so the feature checks running on 3c58d599 hold.

New head 320f745c (still one commit; the previous head was 3c58d599): sites defined once apart from each build's locations, found by call targets, vtable slots, ordinals and slices as well as words (from Morphe's fingerprints and Mixin), clear reports of candidates and near misses, and several handlers on one site in a set order (MixinExtras-style chaining). The lifted C of all 132 sites is byte for byte the same as 3c58d599's, so the feature checks running on 3c58d599 hold.
HumanBean force-pushed feat/hook-sites-squashed from 320f745ce6
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 27s
CI / Website build and checks (pull_request) Failing after 40s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 42s
CI / Workflow lint (actionlint) (pull_request) Successful in 45s
Third-party parts / As their notes say (pull_request) Successful in 54s
PR description / Description follows the template (pull_request_target) Successful in 33s
to 03ce25a21c
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 7s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 12s
CI / Workflow lint (actionlint) (pull_request) Successful in 12s
Third-party parts / As their notes say (pull_request) Successful in 13s
CI / Website build and checks (pull_request) Failing after 20s
PR description / Description follows the template (pull_request_target) Successful in 4s
2026-11-22 19:32:12 +00:00
Compare
Author
Owner

New head 03ce25a2 (still one commit; previous 320f745c): the hook sites' side-by-side checks build their places from made-up lifted text of the lift's form (test_oot_barrier, test_ocarina_wait and 7 more), and hooks.md's examples use made-up words. Tests and docs only: the lift's 96 generated files are byte for byte the same, so the feature checks running hold.

New head 03ce25a2 (still one commit; previous 320f745c): the hook sites' side-by-side checks build their places from made-up lifted text of the lift's form (test_oot_barrier, test_ocarina_wait and 7 more), and hooks.md's examples use made-up words. Tests and docs only: the lift's 96 generated files are byte for byte the same, so the feature checks running hold.
Author
Owner

Testing and Measurements at 3c58d599 (game code the same as 03ce25a2), RTX 3090, driver 620.70.06, CachyOS 7.3.3, main a2dc5385 against this, the same inputs on both: no regression found. Title skip, opening skip, mouse look, camera, heap retries, dynamic resolution and the ExeFS refusal pass; movement at 60, 144 and uncapped agrees once frames stalled on first-use loads are left out; gate 3 PASS on all three saves (7/7 checkpoints); the one extra autosave trace line did not repeat (four repeat walks identical). Gate 2: +1.1 % over the two clean pairs, inside the 2 % band (one main run was disturbed by other load on the PC). Still to test: the by-eye list in Still to test, Windows on Beanstalk, the RX 580.

Testing and Measurements at 3c58d599 (game code the same as 03ce25a2), RTX 3090, driver 620.70.06, CachyOS 7.3.3, main a2dc5385 against this, the same inputs on both: no regression found. Title skip, opening skip, mouse look, camera, heap retries, dynamic resolution and the ExeFS refusal pass; movement at 60, 144 and uncapped agrees once frames stalled on first-use loads are left out; gate 3 PASS on all three saves (7/7 checkpoints); the one extra autosave trace line did not repeat (four repeat walks identical). Gate 2: +1.1 % over the two clean pairs, inside the 2 % band (one main run was disturbed by other load on the PC). Still to test: the by-eye list in Still to test, Windows on Beanstalk, the RX 580.
Author
Owner

Description: who runs the HDR and Epona checks (by hand), and the Verdict line's form.

Description: who runs the HDR and Epona checks (by hand), and the Verdict line's form.
Author
Owner

By hand on this PC: Text speed and size, camera centering, Movement speed 2x, cloth at 144 and widescreen at 21:9 look right. The menus' mouse is Windows-only on main too (Linux keeps the mouse captured in both), so it moves to the Windows run. Flight still to confirm against main.

By hand on this PC: Text speed and size, camera centering, Movement speed 2x, cloth at 144 and widescreen at 21:9 look right. The menus' mouse is Windows-only on main too (Linux keeps the mouse captured in both), so it moves to the Windows run. Flight still to confirm against main.
HumanBean force-pushed feat/hook-sites-squashed from 03ce25a21c
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 7s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 12s
CI / Workflow lint (actionlint) (pull_request) Successful in 12s
Third-party parts / As their notes say (pull_request) Successful in 13s
CI / Website build and checks (pull_request) Failing after 20s
PR description / Description follows the template (pull_request_target) Successful in 4s
to 348f2215fa
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 10s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 19s
CI / Workflow lint (actionlint) (pull_request) Successful in 20s
Third-party parts / As their notes say (pull_request) Successful in 23s
PR description / Description follows the template (pull_request_target) Successful in 10s
CI / Website build and checks (pull_request) Failing after 46s
2026-11-23 16:30:40 +00:00
Compare
Author
Owner

New head 348f2215 (one commit; previous 03ce25a2): the self-review's fixes. The ports hold; fixed with a test each: sites.def in the lift key, an after site on a replaced instruction, a live table republished, gate 4's noise, Voice Language past the count (as main), of = N on ordinal anchors, Skip title's fallback, and the handler chains (callee, fiber cursor, grace period, outcome sites refused). test_drive_target checks the takeoff sites directly. 66 checks pass; the lifted game code is byte for byte the same (96/96). Skip title runs again in the game next.

New head 348f2215 (one commit; previous 03ce25a2): the self-review's fixes. The ports hold; fixed with a test each: sites.def in the lift key, an after site on a replaced instruction, a live table republished, gate 4's noise, Voice Language past the count (as main), of = N on ordinal anchors, Skip title's fallback, and the handler chains (callee, fiber cursor, grace period, outcome sites refused). test_drive_target checks the takeoff sites directly. 66 checks pass; the lifted game code is byte for byte the same (96/96). Skip title runs again in the game next.
Author
Owner

The branch-only Skip title run on 348f2215 found a regression from the review's fallback change: on kokiri-start the stop-after-loading rule fired on the same frame as the save check's A, before that press reached the game, and the game stayed on the menu (at 3c58d599 it loaded and ran at frame 1364). Being fixed with a game-free test of the press delay; the run is repeated before this goes further.

The branch-only Skip title run on 348f2215 found a regression from the review's fallback change: on kokiri-start the stop-after-loading rule fired on the same frame as the save check's A, before that press reached the game, and the game stayed on the menu (at 3c58d599 it loaded and ran at frame 1364). Being fixed with a game-free test of the press delay; the run is repeated before this goes further.
HumanBean force-pushed feat/hook-sites-squashed from 348f2215fa
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 10s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 19s
CI / Workflow lint (actionlint) (pull_request) Successful in 20s
Third-party parts / As their notes say (pull_request) Successful in 23s
PR description / Description follows the template (pull_request_target) Successful in 10s
CI / Website build and checks (pull_request) Failing after 46s
to d1ce425a2a
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 7s
PR description / Description follows the template (pull_request_target) Successful in 11s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 12s
CI / Workflow lint (actionlint) (pull_request) Successful in 12s
Third-party parts / As their notes say (pull_request) Successful in 13s
CI / Website build and checks (pull_request) Failing after 32s
2026-11-23 17:27:28 +00:00
Compare
Author
Owner

New head d1ce425a (one commit; previous 348f2215): the Skip title fix. The game's loading flag was already up when it waited on the save check, so the new stop fired before the check's A was taken. Presses now stop only for a load that begins after the check's A was pressed and released; a game-free test of the press delay and the early flag failed on 348f2215 and passes. test_skip_title and the other checks that read host/oot_autoload.c pass. The branch-only Skip title game run (three saves, no save, menu open, row off, menu resume) is running on this head now.

New head d1ce425a (one commit; previous 348f2215): the Skip title fix. The game's loading flag was already up when it waited on the save check, so the new stop fired before the check's A was taken. Presses now stop only for a load that begins after the check's A was pressed and released; a game-free test of the press delay and the early flag failed on 348f2215 and passes. test_skip_title and the other checks that read host/oot_autoload.c pass. The branch-only Skip title game run (three saves, no save, menu open, row off, menu resume) is running on this head now.
Author
Owner

Superseded by #2286, the builder rewritten in Rust, which carries this pull request whole: the hook sites, the 132 sites and Skip title screen on the game's own waits. This pull request's latest version (d1ce425a) is being folded into #2286, with nx2/hooks.py and nx2/oot_patches.py ported to its Rust sites and edits crates; it lands with #2286's next push. #2286 merges alone, so this one closes without merging.

Superseded by [#2286](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2286), the builder rewritten in Rust, which carries this pull request whole: the hook sites, the 132 sites and Skip title screen on the game's own waits. This pull request's latest version (d1ce425a) is being folded into #2286, with `nx2/hooks.py` and `nx2/oot_patches.py` ported to its Rust `sites` and `edits` crates; it lands with #2286's next push. #2286 merges alone, so this one closes without merging.
HumanBean closed this pull request 2026-11-23 17:52:28 +00:00
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 7s
PR description / Description follows the template (pull_request_target) Successful in 11s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 12s
CI / Workflow lint (actionlint) (pull_request) Successful in 12s
Third-party parts / As their notes say (pull_request) Successful in 13s
CI / Website build and checks (pull_request) Failing after 32s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2272
No description provided.