Development:Network:process other ships

From Ghoulwiki
Revision as of 22:36, 17 June 2012 by Ghoulsblade (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

example packetlogs

other-player-join-docked

-- packetlogs/other-player-join-docked.c
-- // peer1_0 = server > client. new player joins, ends up in same system docked at planet atlantis
Packet({from=server,cmd=CMD_ENTERCLIENT,head={{len=9427,pri=1,flags=0xd6},{cmd=13,serial=465,datalen=9411,flags=0x0}}})
Packet({from=server,cmd=CMD_SNAPCARGO,head={{len=263,pri=1,flags=0xd6},{cmd=40,serial=0,datalen=247,flags=0x0}}})
Packet({from=server,cmd=CMD_DOCK,head={{len=25,pri=1,flags=0xd6},{cmd=38,serial=465,datalen=9,flags=0x0}}})
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=71,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=55,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=465,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=465,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=465,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=465,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=465,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=465,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=465,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=465,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=465,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=465,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=465,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=465,datalen=50,flags=0x0}}})

other-player-undocks

-- packetlogs/other-player-undocks.c
-- // peer1_0 = server > client. other player undocks from planet, was already online
Packet({from=server,cmd=CMD_UNDOCK,head={{len=20,pri=1,flags=0xd6},{cmd=39,serial=465,datalen=4,flags=0x0}}})
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=75,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=59,flags=0x0}}})

other-player-jumps-out-of-system

-- packetlogs/other-player-jumps-out-of-system.c
-- // peer1_0 = server > client. other player jumps out of system
Packet({from=server,cmd=CMD_EXITCLIENT,head={{len=16,pri=1,flags=0xd6},{cmd=14,serial=465,datalen=0,flags=0x0}}})
Packet({from=server,cmd=CMD_KILL,head={{len=16,pri=1,flags=0xd6},{cmd=27,serial=465,datalen=0,flags=0x0}}})

other-player-jumps-back-into-system

-- packetlogs/other-player-jumps-back-into-system.c
-- // peer1_0 = server > client. other player jumps back into system
Packet({from=server,cmd=CMD_ENTERCLIENT,head={{len=9470,pri=1,flags=0xd6},{cmd=13,serial=471,datalen=9454,flags=0x0}}})
Packet({from=server,cmd=CMD_SNAPCARGO,head={{len=263,pri=1,flags=0xd6},{cmd=40,serial=0,datalen=247,flags=0x0}}})

other-player-docks-at-planet

-- packetlogs/other-player-docks-at-planet.c
-- // peer1_0 = server > client. other player docks at planet atlantis
Packet({from=server,cmd=CMD_DOCK,head={{len=25,pri=1,flags=0xd6},{cmd=38,serial=471,datalen=9,flags=0x0}}})
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=71,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=55,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=471,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=471,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=471,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=471,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=471,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=471,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=471,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=471,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=471,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=471,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=471,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=471,datalen=50,flags=0x0}}})

other-player-disconnects-while-docked

-- packetlogs/other-player-disconnects-while-docked.c
-- // peer1_0 = server > client. other player disconnects while docked
Packet({from=server,cmd=CMD_EXITCLIENT,head={{len=16,pri=1,flags=0xd6},{cmd=14,serial=471,datalen=0,flags=0x0}}})
Packet({from=server,cmd=CMD_KILL,head={{len=16,pri=1,flags=0xd6},{cmd=27,serial=471,datalen=0,flags=0x0}}})