Tools: victory-probe-mod, an F4 mod menu and unattended test plans (outside the workspace, the layer unchanged) #2825

Open
github-bot wants to merge 4 commits from github-bot/gh-2825 into main AGit
Owner

@⁠RomanFama592 on GitHub · 2026-11-29 17:46 UTC · original
RomanFama592:feature/victory-probe-mod → main · +5892 −0 · 16 files · 4 commits · open

Related #2340 (superseded, closed)

What it changes

tools/victory-probe-mod is a mod DLL that VIctory loads from %LOCALAPPDATA%\victory\mods (#1892). Nothing in the layer changes: the crate is outside the workspace, so the workspace's Cargo.lock (hashed into every user's shader cache key) does not change, and CI does not build it.

It gives two things:

  • A mod menu (F4) over the game: teleport to saved places (with the camera angle and distance), save and delete places, set and freeze the world clock, god mode or no fall damage, the menu's position and language (English, Spanish, Portuguese; the game's own by default). The menu never takes the focus; while it is shown a low-level hook takes only its own keys.
  • Unattended test plans: a text file of steps (goto, hour, freeze, wait, end…) the DLL runs inside the game, then report.md / report.csv with the medians of fps, ms, p95, CPU and GPU ms, draws and dropped draws per stretch, and a screenshot of each. run-bench.ps1 compares variants (another exe and/or switches) with nobody at the PC: it starts the game, presses Continue, runs the plan, lets end close the game with SC_CLOSE, rotates the repeats (A B A B) and writes summary.md with each variant's medians side by side. It never kills the game.

Why: comparing builds or switches needs the same scene, time of day and camera every run. The time of day alone moved one spot from about 16 fps at night to 6 fps at noon on an RTX 4060 Ti 8 GB.

Teleports call the title's own "place this entity" routine on one of its threads from an execute debug-register breakpoint; no title code is changed (writing the position from outside snaps back). Each one is checked first (offsets for this build, not spawning, moved since a load, not in a vehicle, the window in front) and its arrival afterwards; a refused one says why.

God mode and no fall damage work the same way, with execute breakpoints and no title code changed. The player's health is not a plain value in the player's objects: it is a health component found through the entity's handle, split in segments, each one XOR'd and rotated with a key of its own (health decodes it). Where the title's damage handler takes the damage from the health to decide whether a hit kills, the damage becomes 0 for the player: any damage with god mode, only a fall's damage type with no fall damage. A fall that kills is decided there, so keeping only the health is not enough (the player lay dead with full health). God mode also holds the routine that takes damage off a segment.

Places keep the camera's distance from the player too, and each stretch of a report says when its camera ended farther or nearer than the saved one (! in a "camera m" column), since the same angle from farther away is another picture.

Everything is driven through files (mod.txt in; state.txt and mod-log.txt out), so a person, a script or an agent can run tests the same way. docs/victory-probe-mod.md has the plan syntax, the full file contract with every field and log line, exit codes, a run from start to end, a code map and a troubleshooting table; AGENTS.md points to it.

Asset policy: the built-in table holds only per-build offsets under names of our own and the build's BLAKE3 prefix, both allowed by docs/asset-policy.md; offsets are never used on a build they were not found for. Screenshots, logs and reports stay in %LOCALAPPDATA%\victory\probe\. cargo xtask policy --staged: ok.

How it was tested

  • GPU and profile: RTX 4060 Ti 8 GB, Ryzen 9 5900X, 64 GB, Windows 11; Series X at 1440p, DLSS balanced.
  • A run of the example plan (plans/bench-example.txt), starting with the player in a car:
stretch fps ms/frame p95 ms CPU ms GPU ms draws
casa 20:00 14.9 67.1 90.7 48.6 53.6 6934
porche 07:00 8.6 116.7 149.7 51.7 70.5 13049
salida_casa 23:00 6.8 148.5 262.5 45.3 143.0 8553
avenida 01:00 13.7 73.2 99.5 41.9 66.3 5547
avenida 13:00 14.4 69.5 100.9 49.3 59.9 7940
  • run-bench.ps1: 17 unattended runs for #1944 on 2026-11-29, none needing a hand, and a night of 96 on 2026-11-30 (warm-up, 13 switches × 3, 6 × 3 on a memory plan, 12 branches × 3). Two things that night found are handled now: a keys-file write that met the file busy is retried instead of ending the batch, and a plan follower stops at once when the game ends (a lost GPU) instead of waiting an hour.
  • The menu in the three languages; keys hidden from the game while it is shown (GetAsyncKeyState); teleports refused with the right reason after a load, a respawn, in a menu, in a car; a window put in front halfway (the plan took the game back); focus lost for good (5 tries, then a clean close).
  • A VICTORY_MENU_DLSS=balanced variant: the log showed DLSS quality for the base run and balanced for that one, and victory-settings.txt was byte-identical afterwards.
  • A second PC (RTX 5060 Ti 8 GB, 32 GB RAM), by @⁠Yuanzer: the build, the menu, a plan with a teleport, the report and end; a report bug he found is fixed.
  • God mode and no fall damage, each on its own: falls of about 11, 39 and 54 m (a teleport above the street), alive, able to walk and with the same health; with both off, the same 39 m fall kills and the player respawns. Both turned on and off from the menu. Gunfire, vehicles, explosions, fire and drowning are not tried yet.
  • cargo test --release --manifest-path tools/victory-probe-mod/Cargo.toml: 28 passed (no game, GPU or files needed). Clippy with -D warnings: clean.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related:
    • #1892 (merged): the mods folder this loads from; nothing outside tools/, docs/, AGENTS.md and .gitignore changes here.
    • #2846 (mod exports for the title's start, present and input): independent; this works without it.
    • #617 (scripts/bench.ps1), #2571, #2805 (VICTORY_AUTOPILOT), #1925 (a teleport tool): other bench and route tools; this one teleports with the title's own routine, holds the world clock and runs a written plan with screenshots and a report.
    • #2340: superseded by this, closed.

Not there yet: god mode tried against kinds of damage other than falls, weather, finding the clock on another build (watch finds offsets meanwhile), and screenshots are BMP files taken from the screen, so the game window must stay visible.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KLpN79F7xTDfDJESyhfu7f

**@⁠RomanFama592** on GitHub · 2026-11-29 17:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2825) `RomanFama592:feature/victory-probe-mod` → `main` · +5892 −0 · 16 files · 4 commits · open Related #2340 (superseded, closed) ## What it changes `tools/victory-probe-mod` is a mod DLL that VIctory loads from `%LOCALAPPDATA%\victory\mods` (#1892). Nothing in the layer changes: the crate is outside the workspace, so the workspace's `Cargo.lock` (hashed into every user's shader cache key) does not change, and CI does not build it. It gives two things: - **A mod menu (F4)** over the game: teleport to saved places (with the camera angle and distance), save and delete places, set and freeze the world clock, god mode or no fall damage, the menu's position and language (English, Spanish, Portuguese; the game's own by default). The menu never takes the focus; while it is shown a low-level hook takes only its own keys. - **Unattended test plans**: a text file of steps (`goto`, `hour`, `freeze`, `wait`, `end`…) the DLL runs inside the game, then `report.md` / `report.csv` with the medians of fps, ms, p95, CPU and GPU ms, draws and dropped draws per stretch, and a screenshot of each. `run-bench.ps1` compares variants (another exe and/or switches) with nobody at the PC: it starts the game, presses Continue, runs the plan, lets `end` close the game with `SC_CLOSE`, rotates the repeats (A B A B) and writes `summary.md` with each variant's medians side by side. It never kills the game. Why: comparing builds or switches needs the same scene, time of day and camera every run. The time of day alone moved one spot from about 16 fps at night to 6 fps at noon on an RTX 4060 Ti 8 GB. Teleports call the title's own "place this entity" routine on one of its threads from an execute debug-register breakpoint; no title code is changed (writing the position from outside snaps back). Each one is checked first (offsets for this build, not spawning, moved since a load, not in a vehicle, the window in front) and its arrival afterwards; a refused one says why. God mode and no fall damage work the same way, with execute breakpoints and no title code changed. The player's health is not a plain value in the player's objects: it is a health component found through the entity's handle, split in segments, each one XOR'd and rotated with a key of its own (`health` decodes it). Where the title's damage handler takes the damage from the health to decide whether a hit kills, the damage becomes 0 for the player: any damage with god mode, only a fall's damage type with no fall damage. A fall that kills is decided there, so keeping only the health is not enough (the player lay dead with full health). God mode also holds the routine that takes damage off a segment. Places keep the camera's distance from the player too, and each stretch of a report says when its camera ended farther or nearer than the saved one (`!` in a "camera m" column), since the same angle from farther away is another picture. Everything is driven through files (`mod.txt` in; `state.txt` and `mod-log.txt` out), so a person, a script or an agent can run tests the same way. `docs/victory-probe-mod.md` has the plan syntax, the full file contract with every field and log line, exit codes, a run from start to end, a code map and a troubleshooting table; `AGENTS.md` points to it. Asset policy: the built-in table holds only per-build offsets under names of our own and the build's BLAKE3 prefix, both allowed by `docs/asset-policy.md`; offsets are never used on a build they were not found for. Screenshots, logs and reports stay in `%LOCALAPPDATA%\victory\probe\`. `cargo xtask policy --staged`: ok. ## How it was tested - GPU and profile: RTX 4060 Ti 8 GB, Ryzen 9 5900X, 64 GB, Windows 11; Series X at 1440p, DLSS balanced. - A run of the example plan (`plans/bench-example.txt`), starting with the player in a car: | stretch | fps | ms/frame | p95 ms | CPU ms | GPU ms | draws | |---|---|---|---|---|---|---| | casa 20:00 | 14.9 | 67.1 | 90.7 | 48.6 | 53.6 | 6934 | | porche 07:00 | 8.6 | 116.7 | 149.7 | 51.7 | 70.5 | 13049 | | salida_casa 23:00 | 6.8 | 148.5 | 262.5 | 45.3 | 143.0 | 8553 | | avenida 01:00 | 13.7 | 73.2 | 99.5 | 41.9 | 66.3 | 5547 | | avenida 13:00 | 14.4 | 69.5 | 100.9 | 49.3 | 59.9 | 7940 | - `run-bench.ps1`: 17 unattended runs for #1944 on 2026-11-29, none needing a hand, and a night of 96 on 2026-11-30 (warm-up, 13 switches × 3, 6 × 3 on a memory plan, 12 branches × 3). Two things that night found are handled now: a keys-file write that met the file busy is retried instead of ending the batch, and a plan follower stops at once when the game ends (a lost GPU) instead of waiting an hour. - The menu in the three languages; keys hidden from the game while it is shown (`GetAsyncKeyState`); teleports refused with the right reason after a load, a respawn, in a menu, in a car; a window put in front halfway (the plan took the game back); focus lost for good (5 tries, then a clean close). - A `VICTORY_MENU_DLSS=balanced` variant: the log showed DLSS quality for the base run and balanced for that one, and `victory-settings.txt` was byte-identical afterwards. - A second PC (RTX 5060 Ti 8 GB, 32 GB RAM), by @⁠Yuanzer: the build, the menu, a plan with a teleport, the report and `end`; a report bug he found is fixed. - God mode and no fall damage, each on its own: falls of about 11, 39 and 54 m (a teleport above the street), alive, able to walk and with the same health; with both off, the same 39 m fall kills and the player respawns. Both turned on and off from the menu. Gunfire, vehicles, explosions, fire and drowning are not tried yet. - `cargo test --release --manifest-path tools/victory-probe-mod/Cargo.toml`: 28 passed (no game, GPU or files needed). Clippy with `-D warnings`: clean. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: - #1892 (merged): the mods folder this loads from; nothing outside `tools/`, `docs/`, `AGENTS.md` and `.gitignore` changes here. - #2846 (mod exports for the title's start, present and input): independent; this works without it. - #617 (`scripts/bench.ps1`), #2571, #2805 (`VICTORY_AUTOPILOT`), #1925 (a teleport tool): other bench and route tools; this one teleports with the title's own routine, holds the world clock and runs a written plan with screenshots and a report. - #2340: superseded by this, closed. Not there yet: god mode tried against kinds of damage other than falls, weather, finding the clock on another build (`watch` finds offsets meanwhile), and screenshots are BMP files taken from the screen, so the game window must stay visible. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01KLpN79F7xTDfDJESyhfu7f
A mod DLL (%LOCALAPPDATA%\victory\mods) that gives test runs what a person
at the keyboard otherwise does by hand, and then runs them with nobody at
the PC. Measured on an RTX 4060 Ti 8 GB with a Ryzen 9 5900X, Xbox Series
master build.

- F4 menu over the game: teleport to saved places (each keeps its camera
  angle, turned back after the teleport), save/delete places, set and
  freeze the world clock, menu position and language (English, Spanish,
  Portuguese; the game's by default). While it is shown, a low-level
  keyboard hook takes only its own keys from the game.
- Teleports call the title's own placing routine on one of its threads,
  from an execute debug-register breakpoint: no title code is changed.
  Each runs only when it can work (offsets for the build, the player
  found, not spawning, moved since a load or a respawn, not in a vehicle,
  the window in front) and is checked afterwards; otherwise the reason is
  shown.
- Test plans: a text file of steps (start, freeze, hour, goto, wait,
  shot, nudge, retries, on-fail, action-shots, end), checked whole before
  the first step. A plan gets the player out of a vehicle, moves them a
  step, retries each teleport (5 by default), brings the game window back
  if another takes it, keeps the game's idle camera away, takes
  screenshots before/after actions and at the end of each measured
  stretch, restores the clock, and closes the game cleanly on `end` or
  when it gives up.
- run-plan.ps1 puts each stretch together with the layer's log: medians
  of fps, frame time, p95, CPU and GPU (card meter) time, draws, dropped
  draws, the camera angle and the screenshot, in report.md/.csv beside
  the run's screenshots, outside the repository.
- Driven through files only (mod.txt in, state.txt and mod-log.txt out),
  documented line by line for scripts and AI agents in
  docs/victory-probe-mod.md.

Nothing of the title is stored: per-build offsets under our own names,
keyed by the BLAKE3 prefix of the executable (docs/asset-policy.md); the
Xbox Series master build's are built in, other builds take a mod.cfg
section. A crate of its own outside the workspace, so the workspace's
Cargo.lock (hashed into the shader cache key) is unchanged; 24 tests, no
game or GPU needed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KLpN7BE6FrjsqTq22kbwy7
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 17:50:24 +00:00
Author
Owner

@⁠cobrajet302gt on GitHub · 2026-11-29 18:21 UTC · original

From the Wine/Proton RTX 5080 lane (cobrajet302gt, Hermes Agent-assisted — same tooling as the #1633 Proton-4090 reports): tonight we mapped the front-end end to end and died at the picker seam in three modes — clean rc=0, write null+0xa0 @ victory-image+0x9641d7, and write 0x0 @ +0x2215c35 (that last one is the same offset as klbf-lab's keyboard-dead-picker report; two machines now agree it is where late/sparse input goes to die). What finally moved death deepest was continuous 6–7 s key pressure through the wizard (the 0.2 s VICTORY_KEYS holds alone just idle-crash at Frame ~15-17k, run ~10 min).

Question this thread is positioned to answer: does the probe-mod's VICTORY_KEYS_FILE + low-level-hook path survive that front-end budget, and what input cadence do your autonomous plan runs use to get from cold boot to a teleported scene without a human? If the plan-file flow starts by walking the wizard/consent, I'd like the working plan.txt key schedule — ours is posted on the venue claims thread, but yours is evidently already driving scenes hands-free. Happy to trade: rbtree wineserver diff (protocol-matched to Proton 11) + exact consent-gate mechanics (stick-tap focus, scroll-to-bottom before SELECT).

**@⁠cobrajet302gt** on GitHub · 2026-11-29 18:21 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2825#issuecomment-7260421517) From the Wine/Proton RTX 5080 lane (cobrajet302gt, Hermes Agent-assisted — same tooling as the #1633 Proton-4090 reports): tonight we mapped the front-end end to end and died at the picker seam in three modes — clean rc=0, `write null+0xa0 @ victory-image+0x9641d7`, and `write 0x0 @ +0x2215c35` (that last one is the same offset as klbf-lab's keyboard-dead-picker report; two machines now agree it is where late/sparse input goes to die). What finally moved death deepest was continuous 6–7 s key pressure through the wizard (the 0.2 s `VICTORY_KEYS` holds alone just idle-crash at Frame ~15-17k, run ~10 min). Question this thread is positioned to answer: does the probe-mod's `VICTORY_KEYS_FILE` + low-level-hook path survive that front-end budget, and what input cadence do your autonomous plan runs use to get from cold boot to a teleported scene without a human? If the plan-file flow starts by walking the wizard/consent, I'd like the working `plan.txt` key schedule — ours is posted on the venue claims thread, but yours is evidently already driving scenes hands-free. Happy to trade: rbtree `wineserver` diff (protocol-matched to Proton 11) + exact consent-gate mechanics (stick-tap focus, scroll-to-bottom before SELECT).
Author
Owner

@⁠RomanFama592 on GitHub · 2026-11-29 19:30 UTC · original

Thanks for the details. Short answers:

  • The plan runs don't walk the first-run wizard or the consent screens; they start from a profile that has been through them already. The launcher I'm adding to this PR appends Enter 0.2 (the pad's A, a 0.2 s press) to the layer's VICTORY_KEYS_FILE every 3 s until the mod's state.txt shows the player in the world. On this save that is Continue on the title menu. Then the plan takes over, so I have no wizard key schedule to share.
  • Input goes through the layer's own VICTORY_KEYS_FILE (gameinput.rs), not the mod. The mod's low-level keyboard hook only swallows the F4 menu's keys while the menu is shown and never injects anything. In a plan, the mod appends to the same keys file (W to step, Y to get out of a vehicle, the right stick for the camera).
  • All of this is native Windows 11; I haven't run it under Wine/Proton, so I can't say how the hook or the screenshots (copied from the screen) behave there.

Upstream 1082df39 added VICTORY_INPUT_RECORD / VICTORY_INPUT_REPLAY, which record real pad readings with their timings. That may suit a wizard walk better than hand-written key holds.

**@⁠RomanFama592** on GitHub · 2026-11-29 19:30 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2825#issuecomment-7261335775) Thanks for the details. Short answers: - The plan runs don't walk the first-run wizard or the consent screens; they start from a profile that has been through them already. The launcher I'm adding to this PR appends `Enter 0.2` (the pad's A, a 0.2 s press) to the layer's `VICTORY_KEYS_FILE` every 3 s until the mod's `state.txt` shows the player in the world. On this save that is Continue on the title menu. Then the plan takes over, so I have no wizard key schedule to share. - Input goes through the layer's own `VICTORY_KEYS_FILE` (`gameinput.rs`), not the mod. The mod's low-level keyboard hook only swallows the F4 menu's keys while the menu is shown and never injects anything. In a plan, the mod appends to the same keys file (`W` to step, `Y` to get out of a vehicle, the right stick for the camera). - All of this is native Windows 11; I haven't run it under Wine/Proton, so I can't say how the hook or the screenshots (copied from the screen) behave there. Upstream 1082df39 added `VICTORY_INPUT_RECORD` / `VICTORY_INPUT_REPLAY`, which record real pad readings with their timings. That may suit a wizard walk better than hand-written key holds.
Author
Owner

@⁠Yuanzer on GitHub · 2026-11-29 20:04 UTC · original

End-to-end smoke test on the reporter's Windows 11 machine (AI-assisted local runs):

  • i7-14700KF, 32 GB RAM; RTX 5060 Ti 8 GB; title 1.0.2.1; VIctory test build with the mods folder loader.
  • cargo test --release --manifest-path tools/victory-probe-mod/Cargo.toml: 24 passed, 0 failed.
  • cargo clippy --release --all-targets --manifest-path tools/victory-probe-mod/Cargo.toml -- -D warnings: clean.
  • The DLL loaded from %LOCALAPPDATA%\victory\mods; state.txt identified build b99f876b74d4a77f and moved from phase=need-move to phase=ready after one W 1 key-file step.
  • F4 opened the menu over the world. It showed the teleport places, position, time, freeze, settings and close items; the screenshot was captured successfully.
  • A short smoke plan start, freeze on, hour 12:00, wait 10 noon-smoke, end completed. It wrote a screenshot plus report.md/report.csv under %LOCALAPPDATA%\victory\probe\runs, reported the measured stretch, restored the clock, and closed the game.

I did not modify the title or store any title files. The test DLL was removed and the mods folder removed afterward, so the user's installation is back to its pre-test state.

This validates the menu, state machine, keys-file path, clock control, screenshot, report generation and clean plan end on the reporter machine. I did not exercise teleporting in this smoke plan; the menu and report are the parts tested here.

Runs and readings are from the reporter's machine; analysis and wording are AI-assisted.

**@⁠Yuanzer** on GitHub · 2026-11-29 20:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2825#issuecomment-7261782887) End-to-end smoke test on the reporter's Windows 11 machine (AI-assisted local runs): - i7-14700KF, 32 GB RAM; RTX 5060 Ti 8 GB; title 1.0.2.1; VIctory test build with the mods folder loader. - `cargo test --release --manifest-path tools/victory-probe-mod/Cargo.toml`: 24 passed, 0 failed. - `cargo clippy --release --all-targets --manifest-path tools/victory-probe-mod/Cargo.toml -- -D warnings`: clean. - The DLL loaded from `%LOCALAPPDATA%\victory\mods`; `state.txt` identified build `b99f876b74d4a77f` and moved from `phase=need-move` to `phase=ready` after one `W 1` key-file step. - F4 opened the menu over the world. It showed the teleport places, position, time, freeze, settings and close items; the screenshot was captured successfully. - A short smoke plan `start`, `freeze on`, `hour 12:00`, `wait 10 noon-smoke`, `end` completed. It wrote a screenshot plus `report.md`/`report.csv` under `%LOCALAPPDATA%\victory\probe\runs`, reported the measured stretch, restored the clock, and closed the game. I did not modify the title or store any title files. The test DLL was removed and the `mods` folder removed afterward, so the user's installation is back to its pre-test state. This validates the menu, state machine, keys-file path, clock control, screenshot, report generation and clean plan end on the reporter machine. I did not exercise teleporting in this smoke plan; the menu and report are the parts tested here. *Runs and readings are from the reporter's machine; analysis and wording are AI-assisted.*
Author
Owner

@⁠Yuanzer on GitHub · 2026-11-29 20:14 UTC · original

One more end-to-end result and one small report bug found while testing the teleport path.

Teleport plan passed on the same Windows 11 / RTX 5060 Ti / title 1.0.2.1 machine:

Teleport to ?casa?: done
plan: done "probe-mod-teleport-plan"

It froze 12:00, teleported to casa, ran a 10 s measured stretch, wrote 07-wait-casa-noon.bmp, produced report.md/report.csv, restored the clock, and closed the game through end. The report was:

stretch samples fps ms/frame p95 CPU ms GPU ms draws dropped
casa-noon 2 16.75 59.65 76.5 40.65 36.1 6,955.5 252.5

Report bug: in the earlier teleport run, where the measured segment contained exactly one frame line, the original Samples column was blank (report.csv had an empty field) even though the other metrics were present. The cause is PowerShell scalar unwrapping: $in = Within $frames $g becomes a single object, so $in.Count is empty. The same issue can affect P95/GPU sample extraction. The minimal fix is:

$in = @(Within $frames $g)
P95Ms = Median (@(Within $p95s $g) | ForEach-Object P95)
GpuMs = Median (@(Within $cards $g) | ForEach-Object Gpu)

With this patch, the teleport report has a nonblank Sample count and all metrics remain populated. I did not leave the patched script or mod DLL installed; the test installation was removed after the run.

Runs and readings are from the reporter's machine; analysis and wording are AI-assisted.

**@⁠Yuanzer** on GitHub · 2026-11-29 20:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2825#issuecomment-7261926234) One more end-to-end result and one small report bug found while testing the teleport path. **Teleport plan passed** on the same Windows 11 / RTX 5060 Ti / title 1.0.2.1 machine: ```text Teleport to ?casa?: done plan: done "probe-mod-teleport-plan" ``` It froze 12:00, teleported to `casa`, ran a 10 s measured stretch, wrote `07-wait-casa-noon.bmp`, produced `report.md`/`report.csv`, restored the clock, and closed the game through `end`. The report was: | stretch | samples | fps | ms/frame | p95 | CPU ms | GPU ms | draws | dropped | |---|---:|---:|---:|---:|---:|---:|---:|---:| | casa-noon | 2 | 16.75 | 59.65 | 76.5 | 40.65 | 36.1 | 6,955.5 | 252.5 | **Report bug:** in the earlier teleport run, where the measured segment contained exactly one frame line, the original `Samples` column was blank (`report.csv` had an empty field) even though the other metrics were present. The cause is PowerShell scalar unwrapping: `$in = Within $frames $g` becomes a single object, so `$in.Count` is empty. The same issue can affect P95/GPU sample extraction. The minimal fix is: ```powershell $in = @(Within $frames $g) P95Ms = Median (@(Within $p95s $g) | ForEach-Object P95) GpuMs = Median (@(Within $cards $g) | ForEach-Object Gpu) ``` With this patch, the teleport report has a nonblank Sample count and all metrics remain populated. I did not leave the patched script or mod DLL installed; the test installation was removed after the run. *Runs and readings are from the reporter's machine; analysis and wording are AI-assisted.*
run-bench.ps1 starts the game per variant (another exe and/or switches), presses Continue until the
player is in the world, walks them a step so the first teleport is taken, runs the plan with
run-plan.ps1, lets `end` close the game (or closes it with SC_CLOSE), and writes summary.md/csv with
each variant's medians per stretch. Repeats go round the variants (A B A B); the first start's warm-up
restart is handled. It takes over from #2340's bench.ps1.

run-plan.ps1: a stretch with a single frame line had an empty sample count (a function's output is
unrolled, and a lone [pscustomobject] has no Count in Windows PowerShell 5.1). Found by Yuanzer.

Plans: what a step did is shown at once, not after the `post` screenshot 5 s later, when the previous
step's message still stood over a scene the step had changed ("Time frozen at 13:00" over the night of
the `hour 12am` after it).

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

@⁠RomanFama592 on GitHub · 2026-11-29 21:49 UTC · original

Thanks for running the teleport path too, and for the report bug. Fixed in efa1590d: each call site of Within now wraps it in @(), so a stretch with a single frame line gets Samples = 1 and its P95 and GPU values. I checked it on Windows PowerShell 5.1: the count was blank before and is 1 now, and a one-line stretch of a real run reports Samples 1.

The same commit adds run-bench.ps1, which runs one plan on several variants with nobody at the PC: another exe and/or switches per variant. It starts the game, presses Continue until the player is in the world, walks them a step so the first teleport is taken, runs the plan, lets end close the game, and writes summary.md with each variant's medians per stretch side by side. It ran 17 unattended runs here today for #1944 without a hand. It also fixes a message that came 5 s late in plans, after the post screenshot.

**@⁠RomanFama592** on GitHub · 2026-11-29 21:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2825#issuecomment-7263181363) Thanks for running the teleport path too, and for the report bug. Fixed in efa1590d: each call site of `Within` now wraps it in `@()`, so a stretch with a single frame line gets `Samples = 1` and its P95 and GPU values. I checked it on Windows PowerShell 5.1: the count was blank before and is 1 now, and a one-line stretch of a real run reports `Samples 1`. The same commit adds `run-bench.ps1`, which runs one plan on several variants with nobody at the PC: another exe and/or switches per variant. It starts the game, presses Continue until the player is in the world, walks them a step so the first teleport is taken, runs the plan, lets `end` close the game, and writes `summary.md` with each variant's medians per stretch side by side. It ran 17 unattended runs here today for #1944 without a hand. It also fixes a message that came 5 s late in plans, after the `post` screenshot.
A game that did not close within 90 s after SC_CLOSE was ended with Stop-Process; it may have been saving. Now the batch stops there instead, the game stays open for the user to close, and the summary says so. The warm-up restart's close is handled the same way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WiREjCKm8GggGKoLCCVVU3
victory play takes the menu's saved settings (console, DLSS mode, frame generation) over its own options and over --set, so a variant could not change them. A VICTORY_MENU_* entry in a variant is now written into the menu's file for that variant's runs, and the file is put back byte for byte after each run and at the end, whatever happens.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WiREjCKm8GggGKoLCCVVU3
github-bot changed title from tools: victory-probe-mod — F4 mod menu with an automated, 100% autonomous test system to tools: victory-probe-mod — F4 mod menu and fully unattended test plans 2026-11-30 07:40:01 +00:00
An empty victory-settings.txt was deleted when put back (an empty byte array
read as no file); the file is now looked for in VICTORY_HOME first, as
`victory play` does; a BOM no longer hides the first key; and a '$' in a
value stays literal. Found in a review; tested on a copy of each case.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KLpN7AVE3kdGsfyVZos7rv
A "Skip the intro movies" item under Settings, kept in menu.cfg as
`skip_intro = 1`. The layer already skips the Bink movies that play once
with VICTORY_SKIP_BINK=1, and reads that switch once, when it binds the
title's imports; victory loads the mods folder before it runs the title.
So the DLL sets the switch in the process's environment from DllMain when
the menu asks for it and nobody gave it already (an explicit --set wins),
and says so in mod-log.txt. On this title the intro is about 30 s of Bink
movies between the start and the main menu. The switch skips every movie
that plays once in the run, which the guide says; looping ones still play.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KLpN7AVE3kdGsfyVZos7rv
This reverts commit 304896bc. The layer's VICTORY_SKIP_BINK=1 skips every
movie that plays once, and on this title a movie shown in the game (1080x1080,
82 frames, a minute after the start) then left the title calling Bink in a
loop, about 15 million calls a second, and the game froze. The option comes
back once the layer can skip the intro alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KLpN7AVE3kdGsfyVZos7rv
github-bot changed title from tools: victory-probe-mod — F4 mod menu and fully unattended test plans to Tools: victory-probe-mod, an F4 mod menu and unattended test plans (outside the workspace, the layer unchanged) 2026-11-30 16:46:03 +00:00
github-bot force-pushed github-bot/gh-2825 from 43c80a0436 to 8fe7322c7d 2026-11-30 16:46:04 +00:00 Compare
spots.cfg lines take a sixth number, the camera's distance from the player
when the place was saved (`name = x y z yaw pitch dist`; older lines still
load). `save` records it, `view` tells it with the camera's and the
player's positions, and each `plan: segment` line adds `dist <m> [want <m>]`.
run-plan.ps1 shows it as a "camera m" column, marked `!` when it is more
than 0.5 m from the saved one: the same yaw and pitch from farther away is
another picture of the place.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KLpN79F7xTDfDJESyhfu7f
The player's health is not a plain float in the player's objects: it is a
health component found through the entity's handle and the title's
archetype table, split in segments, each value XOR'd and rotated with a key
of its own (decoded as the title's own segment routine reads it). `health`
writes it to the log.

God mode ("God mode" in the menu, `god on|off`) and no fall damage ("No fall
damage", `nofall on|off`) change no title code: execute breakpoints in the
debug registers, like the teleport's.
- In the title's damage event handler, where it takes the damage from the
  entity's health to decide whether the hit kills: for the player the
  damage becomes 0 (god mode: any damage; no fall damage: events of a
  fall's damage type). A fall that kills is decided there and never takes
  health off segment by segment: keeping only the health left the player
  lying dead.
- God mode also watches the routine that takes damage off one segment.

New built-in offsets for the Xbox Series master: health_table, health_hit,
health_fatal, fall_type. Tried in the game: falls of about 11, 39 and 54 m
with either on: alive, able to walk, health unchanged; with both off: dead
and respawned. Other kinds of damage are not tried yet.

Tools: `trace <address>` (an execute breakpoint noted with registers and
call stack, like `watch` for writes; notes now carry rbp, rsp and r10-r15),
`peek <address> [words]`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KLpN79F7xTDfDJESyhfu7f
This pull request has changes conflicting with the target branch.
  • README.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2825/head:github-bot/gh-2825'
git switch 'github-bot/gh-2825'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2825'
git switch 'github-bot/gh-2825'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2825'
git switch 'github-bot/gh-2825'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2825'
git switch 'main'
git merge --squash 'github-bot/gh-2825'
git switch 'main'
git merge --ff-only 'github-bot/gh-2825'
git switch 'main'
git merge 'github-bot/gh-2825'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
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
github/trustno1-coder--VIctory-NVIDIA!2825
No description provided.