Tools: victory-probe-mod, an F4 mod menu and unattended test plans (outside the workspace, the layer unchanged) #2825
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2825
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2825"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@RomanFama592 on GitHub · 2026-11-29 17:46 UTC · original
RomanFama592:feature/victory-probe-mod→main· +5892 −0 · 16 files · 4 commits · openRelated #2340 (superseded, closed)
What it changes
tools/victory-probe-modis 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'sCargo.lock(hashed into every user's shader cache key) does not change, and CI does not build it.It gives two things:
goto,hour,freeze,wait,end…) the DLL runs inside the game, thenreport.md/report.csvwith the medians of fps, ms, p95, CPU and GPU ms, draws and dropped draws per stretch, and a screenshot of each.run-bench.ps1compares variants (another exe and/or switches) with nobody at the PC: it starts the game, presses Continue, runs the plan, letsendclose the game withSC_CLOSE, rotates the repeats (A B A B) and writessummary.mdwith 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 (
healthdecodes 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.txtin;state.txtandmod-log.txtout), so a person, a script or an agent can run tests the same way.docs/victory-probe-mod.mdhas 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.mdpoints 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
plans/bench-example.txt), starting with the player in a car: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.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).VICTORY_MENU_DLSS=balancedvariant: the log showed DLSS quality for the base run and balanced for that one, andvictory-settings.txtwas byte-identical afterwards.end; a report bug he found is fixed.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
tools/,docs/,AGENTS.mdand.gitignorechanges here.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.Not there yet: god mode tried against kinds of damage other than falls, weather, finding the clock on another build (
watchfinds 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
halfon cards with 16-bit operations, and its count invictory translate#2833@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, andwrite 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 sVICTORY_KEYSholds 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 workingplan.txtkey schedule — ours is posted on the venue claims thread, but yours is evidently already driving scenes hands-free. Happy to trade: rbtreewineserverdiff (protocol-matched to Proton 11) + exact consent-gate mechanics (stick-tap focus, scroll-to-bottom before SELECT).@RomanFama592 on GitHub · 2026-11-29 19:30 UTC · original
Thanks for the details. Short answers:
Enter 0.2(the pad's A, a 0.2 s press) to the layer'sVICTORY_KEYS_FILEevery 3 s until the mod'sstate.txtshows 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.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 (Wto step,Yto get out of a vehicle, the right stick for the camera).Upstream
1082df39addedVICTORY_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.@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):
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.%LOCALAPPDATA%\victory\mods;state.txtidentified buildb99f876b74d4a77fand moved fromphase=need-movetophase=readyafter oneW 1key-file step.start,freeze on,hour 12:00,wait 10 noon-smoke,endcompleted. It wrote a screenshot plusreport.md/report.csvunder%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
modsfolder 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: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:
It froze 12:00, teleported to
casa, ran a 10 s measured stretch, wrote07-wait-casa-noon.bmp, producedreport.md/report.csv, restored the clock, and closed the game throughend. The report was:Report bug: in the earlier teleport run, where the measured segment contained exactly one frame line, the original
Samplescolumn was blank (report.csvhad an empty field) even though the other metrics were present. The cause is PowerShell scalar unwrapping:$in = Within $frames $gbecomes a single object, so$in.Countis empty. The same issue can affect P95/GPU sample extraction. The minimal fix is: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.
@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 ofWithinnow wraps it in@(), so a stretch with a single frame line getsSamples = 1and 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 reportsSamples 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, letsendclose the game, and writessummary.mdwith 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 thepostscreenshot.github-bot referenced this pull request2026-11-29 23:43:54 +00:00
tools: victory-probe-mod — F4 mod menu with an automated, 100% autonomous test systemto tools: victory-probe-mod — F4 mod menu and fully unattended test planstools: victory-probe-mod — F4 mod menu and fully unattended test plansto Tools: victory-probe-mod, an F4 mod menu and unattended test plans (outside the workspace, the layer unchanged)43c80a0436to8fe7322c7dgithub-bot referenced this pull request2026-11-30 16:51:58 +00:00
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_01KLpN79F7xTDfDJESyhfu7fView 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.Merge
Merge the changes and update on Forgejo.