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

getActivePlayer() in getSmallFakeRandNum() causes desyncs #9767

Merged
merged 2 commits into from Apr 14, 2023

Conversation

seroperson
Copy link
Collaborator

@seroperson seroperson commented Apr 14, 2023

Hello! I did some MP debugging and looks like getActivePlayer() in getSmallFakeRandNum() causes a lot of desyncs across players because it differs on host and non-host player. With enabled logging it looks like (left - host; right - another one player):
image

I'm not sure if getStartYear() is suitable here, point me if we should use something else.

@ilteroi
Copy link
Collaborator

ilteroi commented Apr 14, 2023

this is a very good find!

in fact, since getStartYear() is constant, it does not introduce any variation between successive calls, so it's not needed at all.

it's a bit unfortunate that getActivePlayer() does not work but we'll have to live with it.

@ilteroi ilteroi merged commit 5a10ec9 into LoneGazebo:master Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants