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

To investigate: List Server branch returning 0 for Player Count as -7 #6

Open
SoftwareGuy opened this issue Jan 25, 2022 · 1 comment

Comments

@SoftwareGuy
Copy link
Collaborator

This is just acting as a bookmark for the discussion in private chat on the Discord. So apparently this is what's happening, that for some reason 0s are being translated into -7 for some reason.

  • My games' dedicated server connects to the list server and sends a message to the list server and says 0 players online.
  • The list server receives the player count as a '0' and seems to set it as such in its memory.
  • A normal game client instance connects to the list server and gets the list of servers. It gets a GetServersReply packet and consumes it but instead of saying 0 players it becomes -7 players. The maximum player count, 16, in this case behaves correctly.
  • NetworkMessages are up to date between both server and client(s).

Could this possibly a bit packer error or some jank going on?

@SoftwareGuy
Copy link
Collaborator Author

Seems to be related to BitCount(16) attribute causing corruption.
Maybe a Unity 2020 thing? James says he can't replicate it.
Possibly need to do a reproduction project, I guess.

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

No branches or pull requests

1 participant