Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR] Make CPU init robust to bad stage skins #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JLaferri
Copy link
Member

This resyncs the RNG seed prior to initializing the players (after the stage has been initialized). There is a CPU logic counter that gets initialized via an RNG call around 800a123c. If that counter gets initialized differently on two clients, Nana's logic will periodically differ for the duration of the game, potentially causing desyncs.

I don't really love this code as it creates a decent amount of coupling between playback and online. If say for example the RNG seed location is moved to a different offset in the playback buffer, any replay that still has the old dynamic code will no longer fetch the correct seed and would desync if resync was off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant