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

Move zeros in the packet to follow documentation update #576

Merged
merged 1 commit into from
Jul 2, 2023

Conversation

DAMcraft
Copy link
Contributor

@DAMcraft DAMcraft commented Jul 1, 2023

"01" + "000000000000000000" + "ffff00fefefefefdfdfdfd12345678" + "0000000000000000"

According to https://wiki.vg/Raknet_Protocol#Unconnected_Ping, the packet is a byte, (01), followed by 8 bytes for the time. In the code, there are 9 bytes in that part! (two extra zeroes!)
After the time, it should be followed by MAGIC.

Now, wiki.vg says the following about it:

. Size (Bytes) Range Notes
Magic 16 00ffff00fefefefefdfdfdfd12345678 Always those hex bytes, corresponding to RakNet's default OFFLINE_MESSAGE_DATA_ID

Oh! There are the first two zeroes missing! I wonder where they went? (spoiler: they are in the part for the time...)

image

TL;DR: I moved two zeroes

@PerchunPak PerchunPak changed the title moved zeroes Move zeros in the packet to follow documentation update Jul 1, 2023
@PerchunPak PerchunPak merged commit bcead10 into py-mine:master Jul 2, 2023
8 checks passed
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.

None yet

3 participants