Difference between revisions of "Development:Network:process combat"

From Ghoulwiki
Jump to: navigation, search
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== example packetlog : cycling nav targets ==
 
== example packetlog : cycling nav targets ==
  
 +
=== cycle-target-nav ===
 
<pre>
 
<pre>
// a packet like this each time a nav target is selected by pressing n, here atlantis
+
-- packetlogs/combat-cycle-target-nav.c
TCP(6777,'vega'):Recv(Data(28,{0x00,0x00,0x00,0x14,0x01,0x00,0x00,0x00,0x16,0x00,0x01,0xDD,0x77,0x48,0x75,0x43,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0xBD,0xBC,0x01,0xB0},"????????????wHuC????????????"))
+
Packet({from=client,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0x0},{cmd=22,serial=474,datalen=4,flags=0x0}}})
 +
</pre>
 +
 
 +
=== fire-weapons-space ===
 +
<pre>
 +
-- packetlogs/combat-fire-weapons-space.c
 +
-- // fire weapons into space (admonisher standard, 4x heavy ion beam, 2x pugilist, very short fire hold)
 +
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=57,pri=1,flags=0x0},{cmd=20,serial=474,datalen=41,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=60,pri=1,flags=0xd6},{cmd=20,serial=474,datalen=44,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_UNFIREREQUEST,head={{len=55,pri=1,flags=0x0},{cmd=21,serial=474,datalen=39,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_UNFIREREQUEST,head={{len=51,pri=1,flags=0xd6},{cmd=21,serial=474,datalen=35,flags=0x0}}})
 +
</pre>
 +
 
 +
=== target-other-player ===
 +
<pre>
 +
-- packetlogs/combat-target-other-player.c
 +
-- // target and lock other player using p (nearest to crosshair)
 +
Packet({from=client,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0x0},{cmd=22,serial=474,datalen=4,flags=0x0}}})
 +
</pre>
 +
 
 +
=== fire-weapons-other-player ===
 +
<pre>
 +
-- packetlogs/combat-fire-weapons-other-player.c
 +
-- // shoot at other player (admonisher standard, 4x heavy ion beam, 2x pugilist, very short fire hold)
 +
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=57,pri=1,flags=0x0},{cmd=20,serial=474,datalen=41,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=60,pri=1,flags=0xd6},{cmd=20,serial=474,datalen=44,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=47,pri=1,flags=0x0},{cmd=20,serial=474,datalen=31,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=474,datalen=34,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_UNFIREREQUEST,head={{len=55,pri=1,flags=0x0},{cmd=21,serial=474,datalen=39,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_UNFIREREQUEST,head={{len=51,pri=1,flags=0xd6},{cmd=21,serial=474,datalen=35,flags=0x0}}})
 +
</pre>
 +
 
 +
=== other-player-targets-me ===
 +
<pre>
 +
-- packetlogs/combat-other-player-targets-me.c
 +
Packet({from=server,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0xd6},{cmd=22,serial=483,datalen=4,flags=0x0}}})
 +
</pre>
 +
 
 +
=== other-player-shoots-me ===
 +
<pre>
 +
-- packetlogs/combat-other-player-shoots-me.c
 +
-- // other player shoots at me
 +
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=60,pri=1,flags=0xd6},{cmd=20,serial=483,datalen=44,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=483,datalen=34,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_UNFIREREQUEST,head={{len=51,pri=1,flags=0xd6},{cmd=21,serial=483,datalen=35,flags=0x0}}})
 +
</pre>
 +
 
 +
=== shoot-and-kill-other-player ===
 +
<pre>
 +
-- packetlogs/combat-shoot-and-kill-other-player.c
 +
-- // shoot and kill other player
 +
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=57,pri=1,flags=0x0},{cmd=20,serial=486,datalen=41,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=60,pri=1,flags=0xd6},{cmd=20,serial=486,datalen=44,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=47,pri=1,flags=0x0},{cmd=20,serial=486,datalen=31,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=486,datalen=34,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=47,pri=1,flags=0x0},{cmd=20,serial=486,datalen=31,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=486,datalen=34,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=67,pri=1,flags=0xd6},{cmd=41,serial=0,datalen=51,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_KILL,head={{len=16,pri=1,flags=0xd6},{cmd=27,serial=483,datalen=0,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_KILL,head={{len=16,pri=1,flags=0xd6},{cmd=27,serial=483,datalen=0,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=51,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=35,flags=0x0}}})
 +
... several CMD_SAVEDATA ...
 +
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=52,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=36,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_ENTERCLIENT,head={{len=173,pri=1,flags=0xd6},{cmd=13,serial=0,datalen=157,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=47,pri=1,flags=0x0},{cmd=20,serial=486,datalen=31,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=486,datalen=34,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_UNFIREREQUEST,head={{len=55,pri=1,flags=0xb2},{cmd=21,serial=486,datalen=39,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_UNFIREREQUEST,head={{len=51,pri=1,flags=0xd6},{cmd=21,serial=486,datalen=35,flags=0x0}}})
 +
</pre>
 +
 
 +
=== other-player-respawns-docked ===
 +
<pre>
 +
-- packetlogs/combat-other-player-respawns-docked.c
 +
-- // other player respawns, is docked on planet
 +
Packet({from=server,cmd=CMD_ENTERCLIENT,head={{len=9607,pri=1,flags=0xd6},{cmd=13,serial=492,datalen=9591,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_SNAPCARGO,head={{len=20,pri=1,flags=0xd6},{cmd=40,serial=0,datalen=4,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_DOCK,head={{len=25,pri=1,flags=0xd6},{cmd=38,serial=492,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=492,datalen=50,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
 +
</pre>
 +
 
 +
=== other-player-shoots-and-kills-me ===
 +
<pre>
 +
-- packetlogs/combat-other-player-shoots-and-kills-me.c
 +
-- // other player shoots and kills me
 +
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=60,pri=1,flags=0xd6},{cmd=20,serial=492,datalen=44,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=492,datalen=34,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=492,datalen=34,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_KILL,head={{len=16,pri=1,flags=0xd6},{cmd=27,serial=486,datalen=0,flags=0x0}}})
 
</pre>
 
</pre>

Latest revision as of 23:33, 17 June 2012

example packetlog : cycling nav targets

cycle-target-nav

-- packetlogs/combat-cycle-target-nav.c
Packet({from=client,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0x0},{cmd=22,serial=474,datalen=4,flags=0x0}}})

fire-weapons-space

-- packetlogs/combat-fire-weapons-space.c
-- // fire weapons into space (admonisher standard, 4x heavy ion beam, 2x pugilist, very short fire hold)
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=57,pri=1,flags=0x0},{cmd=20,serial=474,datalen=41,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=60,pri=1,flags=0xd6},{cmd=20,serial=474,datalen=44,flags=0x0}}})
Packet({from=client,cmd=CMD_UNFIREREQUEST,head={{len=55,pri=1,flags=0x0},{cmd=21,serial=474,datalen=39,flags=0x0}}})
Packet({from=server,cmd=CMD_UNFIREREQUEST,head={{len=51,pri=1,flags=0xd6},{cmd=21,serial=474,datalen=35,flags=0x0}}})

target-other-player

-- packetlogs/combat-target-other-player.c
-- // target and lock other player using p (nearest to crosshair)
Packet({from=client,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0x0},{cmd=22,serial=474,datalen=4,flags=0x0}}})

fire-weapons-other-player

-- packetlogs/combat-fire-weapons-other-player.c
-- // shoot at other player (admonisher standard, 4x heavy ion beam, 2x pugilist, very short fire hold)
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=57,pri=1,flags=0x0},{cmd=20,serial=474,datalen=41,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=60,pri=1,flags=0xd6},{cmd=20,serial=474,datalen=44,flags=0x0}}})
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=47,pri=1,flags=0x0},{cmd=20,serial=474,datalen=31,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=474,datalen=34,flags=0x0}}})
Packet({from=client,cmd=CMD_UNFIREREQUEST,head={{len=55,pri=1,flags=0x0},{cmd=21,serial=474,datalen=39,flags=0x0}}})
Packet({from=server,cmd=CMD_UNFIREREQUEST,head={{len=51,pri=1,flags=0xd6},{cmd=21,serial=474,datalen=35,flags=0x0}}})

other-player-targets-me

-- packetlogs/combat-other-player-targets-me.c
Packet({from=server,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0xd6},{cmd=22,serial=483,datalen=4,flags=0x0}}})

other-player-shoots-me

-- packetlogs/combat-other-player-shoots-me.c
-- // other player shoots at me
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=60,pri=1,flags=0xd6},{cmd=20,serial=483,datalen=44,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=483,datalen=34,flags=0x0}}})
Packet({from=server,cmd=CMD_UNFIREREQUEST,head={{len=51,pri=1,flags=0xd6},{cmd=21,serial=483,datalen=35,flags=0x0}}})

shoot-and-kill-other-player

-- packetlogs/combat-shoot-and-kill-other-player.c
-- // shoot and kill other player
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=57,pri=1,flags=0x0},{cmd=20,serial=486,datalen=41,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=60,pri=1,flags=0xd6},{cmd=20,serial=486,datalen=44,flags=0x0}}})
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=47,pri=1,flags=0x0},{cmd=20,serial=486,datalen=31,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=486,datalen=34,flags=0x0}}})
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=47,pri=1,flags=0x0},{cmd=20,serial=486,datalen=31,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=486,datalen=34,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=67,pri=1,flags=0xd6},{cmd=41,serial=0,datalen=51,flags=0x0}}})
Packet({from=server,cmd=CMD_KILL,head={{len=16,pri=1,flags=0xd6},{cmd=27,serial=483,datalen=0,flags=0x0}}})
Packet({from=server,cmd=CMD_KILL,head={{len=16,pri=1,flags=0xd6},{cmd=27,serial=483,datalen=0,flags=0x0}}})
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=51,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=35,flags=0x0}}})
... several CMD_SAVEDATA ...
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=52,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=36,flags=0x0}}})
Packet({from=server,cmd=CMD_ENTERCLIENT,head={{len=173,pri=1,flags=0xd6},{cmd=13,serial=0,datalen=157,flags=0x0}}})
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=47,pri=1,flags=0x0},{cmd=20,serial=486,datalen=31,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=486,datalen=34,flags=0x0}}})
Packet({from=client,cmd=CMD_UNFIREREQUEST,head={{len=55,pri=1,flags=0xb2},{cmd=21,serial=486,datalen=39,flags=0x0}}})
Packet({from=server,cmd=CMD_UNFIREREQUEST,head={{len=51,pri=1,flags=0xd6},{cmd=21,serial=486,datalen=35,flags=0x0}}})

other-player-respawns-docked

-- packetlogs/combat-other-player-respawns-docked.c
-- // other player respawns, is docked on planet
Packet({from=server,cmd=CMD_ENTERCLIENT,head={{len=9607,pri=1,flags=0xd6},{cmd=13,serial=492,datalen=9591,flags=0x0}}})
Packet({from=server,cmd=CMD_SNAPCARGO,head={{len=20,pri=1,flags=0xd6},{cmd=40,serial=0,datalen=4,flags=0x0}}})
Packet({from=server,cmd=CMD_DOCK,head={{len=25,pri=1,flags=0xd6},{cmd=38,serial=492,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=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})

other-player-shoots-and-kills-me

-- packetlogs/combat-other-player-shoots-and-kills-me.c
-- // other player shoots and kills me
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=60,pri=1,flags=0xd6},{cmd=20,serial=492,datalen=44,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=492,datalen=34,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=492,datalen=34,flags=0x0}}})
Packet({from=server,cmd=CMD_KILL,head={{len=16,pri=1,flags=0xd6},{cmd=27,serial=486,datalen=0,flags=0x0}}})