Wednesday, September 29, 2010

LazerTag Team Ops Packet - Part 3

More features working, more fields decoded. Still no score reporting. I found the 'damage' field and the 'still alive' field but not the who hit you with a candlestick in the library section. Get the Code.

COMMAND_CODE_SCORE_ANNOUNCEMENT
0x031, //command code
0x00, //game id
0x11, // team_number << 4 | player_number
0x0F, //unknown
0x100, //checksum

COMMAND_CODE_PLAYER_REPORT_SCORE
0x040, //command code
0x00, //game id
0x10, // team_number << 4 | player_number
0x00, //damage received
0x01, //still alive
0x00, //unknown
0x00, //unknown
0x00, //unknown
0x02, //unknown
0x100, //checksum

COMMAND_CODE_PLAYER_REPORT_SCORE_RECORDS
0x041, //command code
0x00, //game id
0x10, // team_number << 4 | player_number
0xXX, //unknown
0xXX, //unknown
0xXX, //unknown, looks like hits from a certain player but unable to determine which
0x100, //checksum

I also determined that 0x41 is actually sent by the gun. I am pretty sure it contains the hit report but I have been unable to decode it. With 3 guns it is sometimes 2 bytes of unknown data and sometimes 3. Lastly the 'rank' announce that cycles through all the players.

COMMAND_CODE_GAME_OVER
0x042, //command code
0x00, //game id
0x10, // team_number << 4 | player_number
0x00, //player rank
0x01, //team rank
0x00, //unknown
0x00, //unknown
0x00, //unknown
0x00, //unknown
0x100, //checksum

No comments: