Difference between revisions of "Packet Template"

From SWGANH Wiki
Jump to: navigation, search
Line 14: Line 14:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
|align="center" style="background:#B3C0DE; color:white;"|'''BYTE'''||'''uint8'''
+
|{{bool}}||'''bool''' (1byte)
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''uint16'''
+
|{{sbyte}}||'''sbyte''' (1byte, signed)
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''uint32'''
+
|{{byte}}||'''byte''' (1byte, unsigned)
 
|-
 
|-
|align="center" style="background:#3C5466; color:white;"|'''FLOAT'''||'''uint32'''
+
|{{short}}||'''short''' (2bytes, signed)
 
|-
 
|-
|align="center" style="background:#3C4565; color:white;"|'''LONG'''||'''uint64'''
+
|{{ushort}}||'''ushort''' (2bytes, unsigned)
 
|-
 
|-
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''ASCII String'''
+
|{{int}}||'''int''' (4bytes, signed)
 
|-
 
|-
|align="center" style="background:#8BD9A3; color:white;"|'''U_STRING'''||'''Unicode String'''
+
|{{uint}}||'''uint''' (4bytes, unsigned)
 
|-
 
|-
|align="center" style="background:#3EC166; color:white;"|'''C_STRING'''||'''Customization String'''
+
|{{float}}||'''float''' (4bytes, signed)
 
|-
 
|-
|align="center" style="background:#25733D; color:white;"|'''B_STRING'''||'''Byte String'''
+
|{{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)
 
|-
 
|-
 
|align="center" style="background:#C6C600; color:white;"|'''{ }'''||'''LIST Component'''
 
|align="center" style="background:#C6C600; color:white;"|'''{ }'''||'''LIST Component'''

Revision as of 05:57, 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)
{ } 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...