player-data-struct: move 'game' variable to inside the PlayerData struct#1
Open
hex-agon wants to merge 1 commit intopangbox:masterfrom
Open
player-data-struct: move 'game' variable to inside the PlayerData struct#1hex-agon wants to merge 1 commit intopangbox:masterfrom
hex-agon wants to merge 1 commit intopangbox:masterfrom
Conversation
Contributor
|
Interesting: It indeed looks like that construct is not 0x0044 specific. What I'd like to figure out is whether maybe it's still meant to be part of the response or part of the player data (logically speaking.) Also, I wonder if setting this to something other than -1 in 0x0044 will trigger PangYa to try to resume a disconnected game or something interesting like that. |
Contributor
Author
|
I've tried setting the value to some random value and did not see any attempts by the client to join a room or something out of the ordinary while logging in. A sample packet log with the Maybe the original server is serializing the whole struct instead of just partially? |
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.
Move the
Gamevariable from thePlayerMainDatato thePlayerDatastruct. This is due that thePlayerDatastruct is also present when replying to theUser Info Requestpacket in the following packet: https://packets.pangdox.com/packets/gameservice/server/0157.htmlIf we omit the

Gamefrom the struct and open theMy Infotab we can observe alignment issues:By moving the variable we can see the correct alignment:

Note: i did not test this with the pangbox server but with my own, though i do not expect any issues with the change 👀