Repository navigation
zdxsv replay: match built-in patches by game and codes only - #808
Merged
Merged
Conversation
…max5 replays (sent write-once) did not start Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
A replay or live stream now plays when each game patch it carries has the game and codes (size, address, original, changed) of a built-in patch. The patch name and write mode no longer have to match. Playback applies the file's patches as recorded, so the battle's write mode is kept.
Rationale behind Changes
The lobby sends
rematch_max5as write-once, but the built-in entry is every-frame. Every replay of a battle with that patch failed withgame patch rematch_max5 is not built in. The replay child then exited right after start, which looked like a crash. Only the address and values decide what gets written, and a name is only a label.Suggested Testing Steps
Tested (Devel, private rig):
rplay.pyon a production replay withrematch_max5, stopped after 40 s, before the end of the replay.rematch_max5 applied, 2 codes, onceis logged, there is nonot built inornot started, and playback goes past the second load.Not run: the
server_patches.jsoncontrol (BAD=1).test-oncehas other codes, so it still fails the check.Did you use AI to help find, test, or implement this issue or feature?
Yes. Claude Code found the cause in the replay child's log, made the change and ran the test.
🤖 Generated with Claude Code