게임/소스정보

cmd2packets

SGhacker 2011. 10. 17. 14:37
incoming packet header format for command 2:

00 00 00 00 92 11 0D 00 9E 03 9E 03 02 00 05 00

(DWORD) Null Padding - 00 00 00 00
(WORD) UDP Checksum - 92 11
(WORD) Packet Lengh (Discludes null-padding) - 0D 00
(WORD) Sent Packets To Player - 9E 03
(WORD) Recv Packets From Player - 9E 03
(BYTE) Packet Type/command - 02
(BYTE) Unused - 00
(BYTE) Senders Player ID - 05
(BYTE) Status - 00
(VOID) Packets






0x09
In Game - Unit Click/Selection
Lengh = 2 + (2nd byte * 2)

09 01 5D 0E
(BYTE) Num of Units selected
~For each unit selected~
(WORD) Unit ID

This packet notifys ALL other ingame players of new unit selections.



0x0A
In Game - Add Unit To Selection
Lengh = 2 + (2nd byte * 2)

0A 01 2C 0E
(BYTE) Num of Units selected
~For each unit selected~
(WORD) Unit ID

This packet notifys ALL other ingame players of new units being add to the selection buffer.



0x0C
In Game - Building being constructed/now Landing
Lengh = 8

0C 1F 09 00 5C 00 9C 00
(BYTE) Unknown
(WORD) Map Square X
(WORD) Map Square Y
(WORD) Building's Unique Code

This packet notifys ALL other ingame players when a peon is commanded to build a building, or when a building is commanded to land on the map.



0x14
In Game - Move Selected Units
Lengh = 10

14 8E 00 75 0F 00 00 E4 00 00
(WORD) Location X
(WORD) Location Y
(WORD) Unit ID
(WORD) Unknown - 0xE4
(BYTE) Unknown - 0x00

This packet notifys ALL other ingame players when you click to move your selected units to a location to the map/another unit.
If the unit ID field is null, then the location is map, otherwise it should specify the unit ID your now moveing your selected units to, in witch case the correct action would automaticly be triggerd. (like mine a mineral for IE)



0x15
In Game - Selected Units Action
Lengh = 11

15 76 00 37 0B 59 0E E4 00 4F 00
(WORD) Location X
(WORD) Location Y
(WORD) Unit ID
(WORD) Unknown - 0xE4
(WORD) Unit Action

This packet notifys ALL other ingame players when you trigger a action command and then uses it to command your selected units in your unit buffer to do there *Action* on the targeted map/other unit.
Unit ID Field will be null if it was targeted on the map and not a unit.



0x18
In Game - Cancel Selected Building
Lengh = 1

18
Blank

This packet notifys ALL other ingame players that you canceled a selected building from building.



0x19
In Game - Cancel Unit Morphing
Lengh = 1

19
Blank

This packet notifys ALL other ingame players that you Canceled the selected Zerg Egg from morphing into a unit.



0x1A
In Game - Stop Selected Units
Lengh = 2

1A 00
(BYTE) Unknown - 0x00 (Action?)

This packet notifys ALL other ingame players that the units in your selected unit buffer have been commanded to stop what they are doing.



0x1E
In Game - Selected Units Return
Lengh = 2

1E 00
(BYTE) Unknown - 0x00 (Action?)

This packet notifys ALL other ingame players that the units in your selected unit buffer have been commanded to return there cargo.



0x1F
In Game - Build Unit
Lengh = 3

1F 40 00
(WORD) Unit's Unique Code

This packet notifys ALL other ingame players that the building in your selected unit buffer has been commanded to build a unit.



0x20
In Game - Cancel Build Unit
Lengh = 3

20 01 00
(WORD) Unit Slot

This packet notifys ALL other ingame players that the building in your selected unit buffer has been commanded to Stop building a unit.
The WORD In this packet notifys you what number in the queue the unit was, witch got canceled.



0x21
In Game - Cloak Unit
Lengh = 2

21 00
(BYTE) Unknown - 0x00

This packet notifys ALL other ingame players that the units in your selected unit buffer are being commanded to Cloak.



0x22
In Game - Uncloak Unit
Lengh = 2

22 00
(BYTE) Unknown - 0x00

This packet notifys ALL other ingame players that your units on your selected unit buffer are being commanded to Uncloak.



0x23
In Game - Morph Selected Unit's
Lengh = 3

23 29 00
(WORD) Unit's Unique Code

This packet notifys ALL other ingame players that your units in your selected unit buffer are being commanded to morph into new unit's.



0x25
In Game - Unsiege Tank
Lengh = 2

25 00
(BYTE) Unknown - 0x00

This packet notifys ALL other ingame players that your tanks in your selected unit buffer are being commanded to unsiege.



0x26
In Game - Siege Tank
Lengh = 2

26 00
(BYTE) Unknown - 0x00

This packet notifys ALL other ingame players that your tanks in your selected unit buffer are being commanded to siege.



0x27
In Game - Add To Unit's Build Queue
Lengh = 1

27
Blank

This packet notifys ALL other ingame players that you have add unit thingys to your unit.
Like scabs, intersepters etc etc.
(0x20 would notify of cancel)



0x29
In Game - Unload a selected unit
Lengh = 3

29 0B 0E
(WORD) Unit ID

This packet notifys ALL other ingame players that you have selected a single unit to be unloaded from a dropship/overlord/shuttle etc.



0x2A
In Game - Morph Archon
Lengh = 1

2A
Blank

This packet notifys ALL other ingame players that your High Templars in your selected unit buffer are being morphed into Archons.



0x2C
In Game - Burrow Units
Lengh = 2

2C 00
(BYTE) Unknown - 0x00

This packet notifys ALL other ingame players that your supporting-zerg units in your selected unit buffer are being commanded to Burrow.



0x2D
In Game - UnBurrow Units
Lengh = 2

2D 00
(BYTE) Unknown - 0x00

This packet notifys ALL other ingame players that your supporting-zerg units in your selected unit buffer are being commanded to Unburrow.



0x2F
In Game - Building Liftoff
Lengh = 5

2F E0 0E 30 05
(BYTE) Unknown
(BYTE) Unknown
(BYTE) Unit ID? - unknown ;/
(BYTE) Unknown (always lowish number)

This packet notifys ALL other ingame players that your building in your selected unit buffer has lifted off.



0x30
In Game - Upgrade Type 1
Lengh = 2

30 01
(BYTE) Upgrade Type 1

This packet notifys ALL other ingame players that your building in your selected unit buffer has been commanded to Upgrade to the next level.



0x31
In Game - Cancel Upgrade Type 1
Lengh = 1

31
Blank

This packet notifys ALL other ingame players that your building in your selected unit buffer has been commanded to cancel the Upgrade.



0x32
In Game - Upgrade Type 2
Lengh = 2

32 0F
(BYTE) Upgrade Type 2

This packet notifys ALL other ingame players that your building in your selected unit buffer has been commanded to Upgrade.



0x33
In Game - Cancel Upgrade Type 2
Lengh = 1

33
Blank

This packet notifys ALL other ingame players that your building in your selected unit buffer has been commanded to cancel the Upgrade.



0x35
In Game - Morph Zerg Building
Lengh = 3

35 92 00
(WORD) Building's Unique Code

This packet notifys ALL other ingame players that your zerg-building in your selected unit buffer has been commanded to morph into the upgraded version.



0x36
In Game - Stim Selected Units
Lengh = 1

36
Blank

This packet notifys ALL other ingame players that your infentory in your selected unit buffer have been commanded to stim.



0x3C
Game Room Start Game
Lengh = 1

3C
Blank

This Packet Notifys other clients that the host has started the game.



0x3E
Game Room Slots
Lengh = 6 (5th byte maybe?)

3E 07 FF 08 06 00
3E 06 FF 08 06 00
3E 05 05 02 06 00
3E 04 04 02 06 00
3E 03 03 02 06 00
3E 02 02 02 06 00
3E 01 01 02 06 00
3E 00 00 02 06 00
(BYTE) Game Room Slot Number
(BYTE) Player ID (In this slot)
(BYTE) Forgot this one
(BYTE) Players Race
(BYTE) Unknown - 0x00

This packet notifys you of whos where in the game room.
Races:
0x00 = Zerg
0x01 = Terran
0x02 = Protoss
0x06 = Random



0x41
Players race change?
Lengh = 3

41 08 06
(BYTE) unknown - 0x08
(BYTE) Players Race

This packet notifys you of other players race's and race change's in the game room.
Races:
0x00 = Zerg
0x01 = Terran
0x02 = Protoss
0x06 = Random



0x5A
In Game - Morph Dark Archon
Lengh = 1

5A
Blank

This packet notifys ALL other ingame players that your Dark Templars in your selected unit buffer are being morphed into Dark Archons.