Difference between revisions of "Packet Template"

From SWGANH Wiki
Jump to: navigation, search
(Struct)
Line 42: Line 42:
 
|{{c_string}}||'''Customization String''' (each char: 2bytes)
 
|{{c_string}}||'''Customization String''' (each char: 2bytes)
 
|-
 
|-
|{{b_string}}||'''Byte String''' (each char: 1byte)
+
|{{b_string}}||'''Byte String''' (each char: 1byte, used for session key only)
 
|-
 
|-
|align="center" style="background:#C6C600; color:white;"|'''{ }'''||'''LIST Component'''
+
|{{list}}||'''LIST Component'''
 
|-
 
|-
|align="center" style="background:#DF97A7; color:white;"|'''?'''||'''Uncertain Values'''
+
|{{uncertain}}||'''Uncertain Values'''
 
|-
 
|-
|align="center" style="background:#C84966; color:white;"|'''?? '''||'''Unknown Variable Name'''
+
|{{unknown}}||'''Unknown Variable Name'''
 
|-
 
|-
 
|}
 
|}

Revision as of 05:15, 21 March 2007

Exquisite-khelpcenter.png Instructions
In order to keep all documentation the same format, please use the source to this page to begin a new packet description, the template contains all the options, simply remove what is not required and fill in the details.


Struct


BOOL bool (1byte)
SBYTE sbyte (1byte, signed)
BYTE byte (1byte, unsigned)
SHORT short (2bytes, signed)
USHORT ushort (2bytes, unsigned)
INT int (4bytes, signed)
UINT uint (4bytes, unsigned)
FLOAT float (4bytes, signed)
LONG long (8bytes, signed)
ULONG ulong (8bytes, unsigned)
DOUBLE double (8bytes, signed)
A_STRING ANSI/ASCII String (each char: 1byte)
U_STRING Unicode String (each char: 2bytes)
C_STRING Customization String (each char: 2bytes)
B_STRING Byte String (each char: 1byte, used for session key only)
{ } LIST Component
? Uncertain Values
?? Unknown Variable Name

Variable Descriptions


Opperand_Count = 9

Opcode = FFFFFFFF


  • Additional Descriptions go here...
  • --
  • ---
  • ----

Tags


S→C This packet originates on the server.

C→S This packet originates on the client.

100% This packet has been completely reversed.

75% This packet has been partially reversed.

50% This packet has been partially reversed.

25% This packet has been partially reversed.

0% This packet has not been reversed.

Sample Code

Insert Code Snippet Here...

Sample Packet

Insert Sample Packet Here...