8000 Zdxsv: replay round jump from a recorded round state by inada-s-ai[bot] · Pull Request #602 · inada-s/pcsx2 · GitHub
[go: up one dir, main page]

Skip to content

Zdxsv: replay round jump from a recorded round state - #602

Merged
inada-s-ai[bot] merged 4 commits into
zdxsv-masterfrom
ai/replay-round-states
Nov 16, 2026
Merged

inada-s-ai[bot] merged 4 commits into
zdxsv-masterfrom
ai/replay-round-states

Conversation

@inada-s-ai
@inada-s-ai inada-s-ai Bot commented Nov 16, 2026 •
Copy link
Copy Markdown

Description of Changes

  • Recording: at each battle load end, the replay takes a round state (about 1 KB of EE RAM the game carries between rounds, plus the battle-socket HLE state) and writes it to the new BattleLogFile.round_states (field 61).
  • Playback: only MS-select load ends (the first one and the first after each game) are used. A key is saved at the first load end. A seek past the newest key, with a round state between them, loads the first load end's key, writes the round state over it (rings and kind-3 bodies rebuilt from the inputs) and runs on from there. A round jump past the played loads targets the file's load end. State hashes are not checked from the jump to the next load end; the RNG at that load end and every hash after it are. The first differing checked frame drops the round states and seeks again the usual way.
  • Files without the field play as before.
  • Test knobs: ZDXSV_REPLAY_ROUND_TAKE=1 (playback takes round states, for old files), ZDXSV_REPLAY_ROUND_BAD=1 (control). New test tests/zdxsv/roundjump.py.

Rationale behind Changes

A first jump to a later round ran every frame from the start (10-25 s). Now it starts from that round's state (about 150 ms) and runs only the frames after it.

Suggested Testing Steps

  • Verified on a private rig (windows-mini), commit 549019c: a new 3-round 4-player recording, ROUND=7 roundjump.py (jump from frame 400 to the third round's MS selection): PASS, player work equals the four live traces, 0 differing hashes and RNGs. ROUND=3: PASS. Control ZDXSV_REPLAY_ROUND_BAD=1: FAIL (caught, the fallback seek then matches the file).
  • Old file with ZDXSV_REPLAY_ROUND_TAKE=1: PASS; recording in 1v1 GGPO: a round state per load end.
  • Not run: a point-of-view switch after a jump, the control bar buttons by hand, Linux/macOS builds (CI).

Did you use AI to help find, test, or implement this issue or feature?

Yes: written and tested by an AI agent (Claude Code).

🤖 Generated with Claude Code

inada-s-ai Bot and others added 4 commits November 16, 2026 14:33
…rst load end's key

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…seeks again without round states

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…roundjump.py test and docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@inada-s-ai
inada-s-ai Bot marked this pull request as ready for review November 16, 2026 06:46
@inada-s-ai
inada-s-ai Bot enabled auto-merge November 16, 2026 06:46
@inada-s-ai
inada-s-ai Bot merged commit 93272b7 into zdxsv-master Nov 16, 2026
2 checks passed
@inada-s-ai
inada-s-ai Bot deleted the ai/replay-round-states branch November 16, 2026 06:59
Sign up for free to join this conversation on Git 5FA6 Hub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

0