|
|
Line 11: |
Line 11: |
| ===Struct=== | | ===Struct=== |
| ---- | | ---- |
− | {| class="wikitable" | + | {{field types}} |
− | |-
| + | |
− | |{{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||'''LIST Component'''
| + | |
− | |-
| + | |
− | |{{uncertain}}||uncertain||'''Uncertain Values'''
| + | |
− | |-
| + | |
− | |{{unknown}}||unknown||'''Unknown Variable Name'''
| + | |
− | |-
| + | |
− | |}
| + | |
| | | |
| ===Variable Descriptions=== | | ===Variable Descriptions=== |
Revision as of 05:59, 21 March 2007
|
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
Render |
Keyword |
Type Details
|
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, mostly used for object ids)
|
ULONG
|
ulong |
ulong (8bytes, unsigned, mostly used for object ids)
|
DOUBLE
|
double |
double (8bytes, signed)
|
A_STRING
|
a_string |
ANSI/ASCII String (2 -packets- or 4 -files- bytes size + 1byte chars, ASCII:leading0+7bits, ANSI:8bits)
|
U_STRING
|
u_string |
Unicode String (4bytes size + 2bytes chars)
|
C_STRING
|
c_string |
Customization String (look here for details)
|
B_STRING
|
b_string |
Byte String (4bytes size + 1byte chars, used for session key only)
|
{ }
|
list |
LIST Component (this is a sub section repeated as a list of data. Indent Variable types with 1 space.)
|
?
|
uncertain |
Uncertain Values (use a single question mark ? in the name to display uncertainty in the variables understanding.)
|
??
|
unknown |
Unknown Variable Name (use ?? or Unknown for the name to display that there is no clue as to what the data does.)
|
XML style list tags sample: (use as many ":" as needed to multi-indent)
{{beginlist|myitems|mycount}}
:{| class="wikitable"
|}
{{endlist|myitems}}
<myitems count=mycount>
<myitems/>
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...