Difference between revisions of "Packet Template"

From SWGANH Wiki
Jump to: navigation, search
(Struct)
(Struct)
Line 11: Line 11:
 
===Struct===
 
===Struct===
 
----
 
----
 
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
|{{bool}}||'''bool''' (1byte)
+
|{{bool}}||bool||'''bool''' (1byte, 0:false, other value:true)
 
|-
 
|-
|{{sbyte}}||'''sbyte''' (1byte, signed)
+
|{{sbyte}}||sbyte||'''sbyte''' (1byte, signed)
 
|-
 
|-
|{{byte}}||'''byte''' (1byte, unsigned)
+
|{{byte}}||byte||'''byte''' (1byte, unsigned)
 
|-
 
|-
|{{short}}||'''short''' (2bytes, signed)
+
|{{short}}||short||'''short''' (2bytes, signed)
 
|-
 
|-
|{{ushort}}||'''ushort''' (2bytes, unsigned)
+
|{{ushort}}||ushort||'''ushort''' (2bytes, unsigned)
 
|-
 
|-
|{{int}}||'''int''' (4bytes, signed)
+
|{{int}}||int||'''int''' (4bytes, signed)
 
|-
 
|-
|{{uint}}||'''uint''' (4bytes, unsigned)
+
|{{uint}}||uint||'''uint''' (4bytes, unsigned)
 
|-
 
|-
|{{float}}||'''float''' (4bytes, signed)
+
|{{float}}||float||'''float''' (4bytes, signed)
 
|-
 
|-
|{{long}}||'''long''' (8bytes, signed)
+
|{{long}}||long||'''long''' (8bytes, signed)
 
|-
 
|-
|{{ulong}}||'''ulong''' (8bytes, unsigned)
+
|{{ulong}}||ulong||'''ulong''' (8bytes, unsigned)
 
|-
 
|-
|{{double}}||'''double''' (8bytes, signed)
+
|{{double}}||double||'''double''' (8bytes, signed)
 
|-
 
|-
|{{a_string}}||'''ANSI/ASCII String''' (each char: 1byte)
+
|{{a_string}}||a_string||'''ANSI/ASCII String''' (each char: 1byte, ASCII:leading0+7bits, ANSI:8bits)
 
|-
 
|-
|{{u_string}}||'''Unicode String''' (each char: 2bytes)
+
|{{u_string}}||u_string||'''Unicode String''' (each char: 2bytes)
 
|-
 
|-
|{{c_string}}||'''Customization String''' (each char: 2bytes)
+
|{{c_string}}||c_string||'''Customization String''' (each char: 2bytes)
 
|-
 
|-
|{{b_string}}||'''Byte String''' (each char: 1byte, used for session key only)
+
|{{b_string}}||b_string||'''Byte String''' (each char: 1byte, used for session key only)
 
|-
 
|-
|{{list}}||'''LIST Component'''
+
|{{list}}||list||'''LIST Component'''
 
|-
 
|-
|{{uncertain}}||'''Uncertain Values'''
+
|{{uncertain}}||uncertain||'''Uncertain Values'''
 
|-
 
|-
|{{unknown}}||'''Unknown Variable Name'''
+
|{{unknown}}||unknown||'''Unknown Variable Name'''
 
|-
 
|-
 
|}
 
|}

Revision as of 06:22, 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 bool (1byte, 0:false, other value:true)
SBYTE sbyte sbyte (1byte, signed)
BYTE byte byte (1byte, unsigned)
SHORT short short (2bytes, signed)
USHORT ushort ushort (2bytes, unsigned)
INT int int (4bytes, signed)
UINT uint uint (4bytes, unsigned)
FLOAT float float (4bytes, signed)
LONG long long (8bytes, signed)
ULONG ulong ulong (8bytes, unsigned)
DOUBLE double double (8bytes, signed)
A_STRING a_string ANSI/ASCII String (each char: 1byte, ASCII:leading0+7bits, ANSI:8bits)
U_STRING u_string Unicode String (each char: 2bytes)
C_STRING c_string Customization String (each char: 2bytes)
B_STRING b_string Byte String (each char: 1byte, used for session key only)
{ } list LIST Component
? uncertain Uncertain Values
?? unknown 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...