forked from hipstercat/giantsd
Moved fun fact to the right value
This commit is contained in:
parent
0ad02a046c
commit
d46598ae5e
@ -246,12 +246,12 @@ class Netserver:
|
||||
payload.putLong(0x41) # unknown - 65
|
||||
payload.putLong(0x14) # max players
|
||||
payload.putLong(0x02) # current players
|
||||
payload.putByte(len((name + "\x00").encode("utf-16-le"))) # player name length FUN FACT: setting it to a bad value makes the client crash on connect
|
||||
payload.putByte(len((name + "\x00").encode("utf-16-le"))) # player name length
|
||||
payload.write(b'\x01\x00\x00') # unknown - 3585 - or \x16\x01\x00\x00
|
||||
payload.putLong(len((self.server.name + "\x00").encode("utf-16-le"))) # SERVERNAME LENGTH
|
||||
for _ in range(4):
|
||||
payload.putLong(0) # unknown
|
||||
payload.putLong(204+len((name+"\x00").encode("utf-16-le"))) # 204+playerlen
|
||||
payload.putLong(204+len((name+"\x00").encode("utf-16-le"))) # 204+playerlen that's an offset FUN FACT: setting it to a bad value makes the client crash on connect
|
||||
payload.putLong(0x34) # unknown - 52
|
||||
payload.write(self.guid) # instance guid
|
||||
payload.write(
|
||||
|
Loading…
Reference in New Issue
Block a user