Difference between revisions of "Packet Template"

From SWGANH Wiki
Jump to: navigation, search
(Struct)
 
(13 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
|-
 
|-
 
|}
 
|}
 
<noinclude><-- Page Begins HERE --></noinclude>
 
  
 
{| border="0" width="90%" cellpadding=6
 
{| border="0" width="90%" cellpadding=6
Line 13: Line 11:
 
===Struct===
 
===Struct===
 
----
 
----
 
 
{| class="wikitable"
 
{| class="wikitable"
 +
|{{int}}||description of the int value
 
|-
 
|-
|align="center" style="background:#B3C0DE; color:white;"|'''BYTE'''||'''uint8'''
+
|{{ushort}}||description of the ushort value
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''uint16'''
+
|{{float}}||description of the float value
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''uint32'''
+
|{{u_string}}||description of the u_string value
|-
+
|align="center" style="background:#3C5466; color:white;"|'''FLOAT'''||'''uint32'''
+
|-
+
|align="center" style="background:#3C4565; color:white;"|'''LONG'''||'''uint64'''
+
|-
+
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''ASCII String'''
+
|-
+
|align="center" style="background:#8BD9A3; color:white;"|'''U_STRING'''||'''Unicode String'''
+
|-
+
|align="center" style="background:#3EC166; color:white;"|'''C_STRING'''||'''Customization String'''
+
|-
+
|align="center" style="background:#25733D; color:white;"|'''B_STRING'''||'''Byte String'''
+
|-
+
|align="center" style="background:#C6C600; color:white;"|'''{ }'''||'''LIST Component'''
+
|-
+
|align="center" style="background:#DF97A7; color:white;"|'''?'''||'''Uncertain Values'''
+
|-
+
|align="center" style="background:#C84966; color:white;"|'''?? '''||'''Unknown Variable Name'''
+
 
|-
 
|-
 +
|...||...
 
|}
 
|}
 +
[http://wiki2.swganh.org/index.php/Category:Field_Type Look here for all available types]
  
 
===Variable Descriptions===
 
===Variable Descriptions===
 
----
 
----
 
  
 
Opperand_Count     = '''9'''
 
Opperand_Count     = '''9'''
  
 
Opcode     = '''FFFFFFFF'''
 
Opcode     = '''FFFFFFFF'''
 +
----
 +
 +
* Additional Descriptions go here...
 +
* --
 +
* ---
 +
* ----
  
 
|valign=top|
 
|valign=top|
 
===Details===
 
----
 
'''Action'''
 
::Action Description goes here...
 
 
 
===Tags===
 
===Tags===
 
----
 
----
Line 82: Line 63:
  
 
==Sample Code==
 
==Sample Code==
----
 
  
 
<pre>
 
<pre>

Latest revision as of 07:16, 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


INT description of the int value
USHORT description of the ushort value
FLOAT description of the float value
U_STRING description of the u_string value
... ...

Look here for all available types

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...