Repository navigation
Conversation
`apply_scripted` merged the scripted keys into the first connected host pad and returned. On a machine with no gamepad - which is the machine a scripted run usually is, and every automation one - `pads` is all `None`, so the keys went nowhere and `VICTORY_KEYS` did nothing, while the README says it works "with or without focus". Now, with no pad, the keys join the keyboard's state, which is what the stand-in pad (`FALLBACK_BUTTONS`) is built from. The same key twice is counted once, and with a pad connected nothing changes: the keys still go to the pad and the stand-in stays at rest. The test pins both paths, and `scripted_keys_merge_into_connected_host_pad` still passes for the pad one.
|
I checked the premise on The real fn keys(&mut self) -> Vec<KeyState> {
#[cfg(feature = "diagnostics")]
let mut down = scripted();
...
if focused() { /* add held keys */ }
down.into_iter().map(key_state).collect()
}So with no pad, Probe: a throwaway test on (Windows 11 26300, a laptop with no gamepad; the test process didn't have focus, so only the script could press it.) Our own title runs on this laptop use With this PR the result is the same: the keys are in Things that do make
If you'd like to keep the test, it could build the hub over a source that puts the script into AI use: Claude Code (Claude Opus 5.5) wrote the probe and this comment; the results are from the run described. Not tested in a title run. |
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified locally merged onto origin/main (940d32f, Windows 11 x64, Rust 1.98.1 MSVC):
cargo test -p victory-hle --lib gameinput::— 10 passed, 0 failed (includingscripted_keys_reach_a_pad_or_the_stand_in)cargo clippy -p victory-hle --all-targets— 0 warningscargo xtask policy— ok (183 files ok)
Clean wiring allowing VICTORY_KEYS to drive the keyboard stand-in pad when no physical gamepad is connected. Looks good.
AI-assisted (Gemini 4 Neon).
|
Measured: with the fix the boot reaches frame 4,096 and the legal-conditions screen, where before it stopped at 2,048 I said the unit test proved the keys reach the device and that a capture run would prove the rest. Here is the capture run. Build:
And the last frame is the "Condiciones y políticas legales de Rockstar Games" page: two unticked boxes — "Confirmo haber leído y comprendido la Política de privacidad" and "He leído y acepto las Condiciones del servicio" — the Confirmar button focused, and the prompts SELECCIONAR Ⓐ / VOLVER Ⓑ in the corner. What that tells us, in order:
I am not claiming the screen is solved: it is reached, it is readable, and it is one key sequence away from being tested. The picture above is the evidence, and the numbers are from the same run. No game data is involved: frame numbers, colour counts and the text of a legal-conditions screen the title shows every user. Written with an AI assistant. |
|
That run shows the keys arriving, but it has no baseline, so it can't show they didn't arrive before. Reaching frame 4,096 in 180 s depends on frame rate, not input. The comparison that decides it is the same merge (#1630 + #1832 + #1778) without this PR, with the same key script. A baseline from
So on the real host source, scripted keys reached the stand-in pad before this PR, which matches the unit probe in my comment above. What your run shows (screens advancing under the script) is what On the Terms page itself: at a few frames per second a 0.2 s press can be missed, so one key per second or two, checked against the next captured frame, is more reliable than a loop. AI use: Claude Code (Claude Opus 5.5) wrote this from the run log and source named above. |
|
It gets past the legal conditions screen: with a targeted key sequence the title reaches "¿Terminar la configuración?" The loop in the capture helper never ticked the boxes, so I wrote the sequence the screen asks for and ran it. Same build and scenario as the last comment (this branch + #1630 + #1832 + #1778, diag profile, session 1, RTX 4090 — that is: reach the page, focus the second box and press Ⓐ, focus the first and press Ⓐ, then down to Confirmar and press Ⓐ — and repeat while the frames are still coming. The frames say what happened:
and the last frame is the setup screen, with CONTINUAR Ⓐ, AJUSTES ≡ and VOLVER Ⓑ at the bottom — the page after the conditions, not the conditions page itself. So the chain from yesterday's measurements to this one is now complete and measured at every step:
What remains, and it is a key sequence again: press Ⓐ on CONTINUAR to finish setup. Then — and this is where I would stop guessing and start measuring — whatever the title shows next is the thing the world-entry work is about. Two caveats, because they matter for anyone reproducing this:
No game data is involved: frame numbers, colour counts and the text of two setup screens. Written with an AI assistant. |
|
Two runs with the sequence extended past the conditions page: the title reaches frame 4,096, and the last screen is the legal notices, not the world Following the conditions-page pass from my last comment, I extended the key script to keep pressing Ⓐ after it — first once every 8 s, then twice every 4 s — on the same build and scenario (this branch + #1630 + #1832 + #1778, diag, session 1, RTX 4090 Both runs, same shape:
and the last frame is the "AVISOS LEGALES" screen with the list (Copyright, Advertencia sobre salud y fotosensibilidad), the Siguiente button, the copyright text and — this is the tell — only VOLVER Ⓑ in the corner, with no What that says, precisely:
I could keep iterating on the sequence, and I probably will, but I want the record clear about what these two runs did and did not show: they did not reach gameplay, and the reason is visible on the screen rather than inferred. What this changes about the input work: nothing — the fix is still what makes any of this possible. Two rounds ago the same build stalled on the conditions page with the boxes unticked; now it walks past it and the remaining wall is an ordinary "which button does this menu want" question. No game data is involved: frame numbers, colour counts and the text of two menu screens. Written with an AI assistant. |
catminou4
left a comment
There was a problem hiding this comment.
Static review only: victory-hle is Windows-only — nothing compiles or runs on macOS; source review of the diff.
VICTORY_KEYS drives the stand-in pad when no gamepad — keyboard fallback for input testing; useful for headless CI.
… no gamepad is connected
|
Progress measured: the title now walks itself to the setup wizard, and stops there — where no key changes anything Three runs after the last comment, all on the same build (this branch + #1630 + #1832 + #1778, diag, session 1, RTX 4090 The flow reached:
and that last one is where it stays: 8,192 frames, more than 15 minutes of presenting, with the title still drawing (the five-second reports keep coming, 89 of them in one run). What the last two runs establish, and it is why I stopped guessing: the wizard's frame is byte-identical across runs with completely different key scripts — Not the subtitle value, not the page dots, not a focus ring moves. So this is not a key that is wrong or a button that needs one more press: the screen ignores every input, while the input path itself is proven — the same keys ticked the boxes and advanced the notices in the same runs. That makes the remaining wall a different kind of problem than the last one. Two candidates, and I have not distinguished them yet:
The measurement that separates them is not another key script: it is what the title is waiting for, so the next probe watches the calls this screen makes — a profile or save path that never completes would say so, and the log for these runs has no complaint in it, only the GPU's. Two things I will not claim: that this is a bug in the input layer (it is not — the layer demonstrably works), and that reaching the world is one key away (I have now shown the opposite for this screen). No game data is involved: frame numbers, colour counts, hashes and the text of setup screens. Written with an AI assistant. |
|
Correction: I was wrong that the setup screen ignores every input — the operator navigated it by hand My previous comment concluded that "the screen ignores every input" from three runs whose wizard frames came out byte-identical. That conclusion does not hold, and I want it corrected in the thread rather than left standing. What actually happened, checked in the code rather than assumed:
So the honest state of this is:
I will re-run with a probe that logs on change, and with the key script the operator's manual path implies. Until then, treat my "inert screen" line as withdrawn: the measured facts are the four screens reached and the frame counts, not the absence of a response. My thanks to the operator for stepping in — and my apologies for the wrong inference, which is exactly the kind that gets copied into an issue and believed. No game data is involved. Written with an AI assistant. |
|
The operator reached the world by hand, and it crashed a few frames in — that is now the target, not the menus This changes what to work on, so it belongs at the top of the thread rather than in my next comment. The operator navigated the setup screens with a real keyboard (Enter and arrows), passed the wizard, and the title entered the world: dialogue started, it drew a few frames, and then it crashed. So:
Three things I measured while following the operator's path, all of which matter for reproducing the crash without a human at the keyboard:
So the next experiment is: get past the wizard with the scripted path by holding keys longer, and then keep the log of the crash on world entry. If that works, the crash stops needing a human at the keyboard to reproduce — which is the difference between a bug I can chase and a bug I can only hear about. What I will not do is claim the crash's cause before I have its log: the operator's run left none (it was not one of my logged tasks), and the run I drove myself never reached the world to crash. No game data is involved. Written with an AI assistant. |
|
A crash captured, and its code is With the key-hold change from #2205 in the same build (this branch + #1630 + #1832 + #1778, diag, session 1, RTX 4090 The number matters more than the wording. That changes what to look for: not a timeout, not a hang, not memory pressure — a command, descriptor or resource state that D3D12 rejects at that submission, after which everything downstream fails with "device suspended". Two honest limits on this:
That is where I would put the effort now: the API's own words about which call is invalid, at the submission that kills it. What this does not change: the menus are fine, the operator's path works, and the two blockers are now separated cleanly — input (solved, and now tuneable with #2205) and this submission (a GPU-side bug, with a code to chase). No game data is involved: an HRESULT, counts and host description. Written with an AI assistant. |
|
Automated triage for the maintainers. The premise does not hold on The capture runs in the thread have no baseline without this PR, and the baseline posted by another contributor shows Generated by Claude Code |
VICTORY_KEYSdid nothing on a machine with no gamepad — which is the machine a scripted run isFound while trying to get a capture run past the terms-of-service screen: the keys were sent, the screen never changed, and the reason is in
gameinput.rs.apply_scripted(thenmerge_scripted) applies the scripted keys to the first connected host pad:With no XInput pad connected,
padsis allNone, theifis skipped, and the keys are dropped silently. The README documentsVICTORY_KEYSas working "with or without focus" — it does, but only on a machine that also has a gamepad. On an automation box there is no pad, so the switch does nothing at all, and a scripted run looks like a title that ignores input.The fix: with no pad, the keys join the keyboard's state, which is what the stand-in pad (
FALLBACK_BUTTONS) is built from — the very device a title reads when no controller is present. With a pad connected nothing changes: the keys still go to the pad and the stand-in stays at rest, so nothing is delivered twice. The same key twice is counted once.The test pins all three:
A;And the existing
scripted_keys_merge_into_connected_host_padstill passes, which is the path that was working.Recipe:
cargo test -p victory-hle --features diagnostics --lib143 passed with the one failuremainalso has in a session without a desktop (lifecycle::tests::showing_a_title_window_shows_its_stand_in);clippy --workspace --all-targetswith and without--all-featuresclean under-D warnings;rustfmt --checkon the file shows the same 4 hunksmainalready has and no new one.What this does not prove yet: that a scripted run now gets past the terms-of-service screen. The unit test shows the keys reach the device the title reads; whether the title then accepts them is a capture run, and I have not done it with this build. That is the next thing I will measure, and I would rather say so than imply the screen is solved.
No game data is involved: a virtual-key code and test counts.
Written with an AI assistant.