Difference between revisions of "AttributeListMessage"

From SWGANH Wiki
Jump to: navigation, search
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{PageHeader|Server Packet|AttributeListMessage (F3F12F2A)}}
 
+
 
{| border="0" width="90%" cellpadding=6
 
{| border="0" width="90%" cellpadding=6
 
|-
 
|-
Line 6: Line 5:
 
===Struct===
 
===Struct===
 
----
 
----
 
+
{| align="center"
 +
|-
 +
||
 
{| class="wikitable"
 
{| class="wikitable"
 +
|{{short}}||'''Opperand_Count'''
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''Opperand_Count'''
+
|{{int}}||'''Opcde'''
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''Opcde'''
+
|{{long}}||'''ObjectID'''
|-
+
|align="center" style="background:#3C4565; color:white;"|'''LONG'''||'''ObjectID'''
+
|-
+
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''ListCount'''
+
 
|-
 
|-
 +
|{{int}}||'''ListCount'''
 
|}
 
|}
{| class="wikitable"
+
{{beginlist|attributes|ListCount}}
|-
+
:{| class="wikitable"
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''ObjectAttributeName'''
+
|{{a_string}}||'''ObjectAttributeName'''
|-
+
|align="center" style="background:#8BD9A3; color:white;"|'''U_STRING'''||'''ObjectAttributeValue'''
+
 
|-
 
|-
 +
|{{u_string}}||'''ObjectAttributeValue'''
 +
|}
 +
{{endlist|attributes}}
 
|}
 
|}
  
Line 31: Line 31:
 
Opperand_Count     = '''3'''
 
Opperand_Count     = '''3'''
  
Opcode     = '''F3F12F2A
+
Opcode     = '''F3F12F2A'''
'''
+
 
----
 
----
  
 
* '''ObjectID''':
 
* '''ObjectID''':
 
ObjectID that you are listing attributes for.
 
ObjectID that you are listing attributes for.
 
 
* '''ListCount''':
 
* '''ListCount''':
 
Counter of Attributes to list.
 
Counter of Attributes to list.
 
 
* '''ObjectAttributeName''':
 
* '''ObjectAttributeName''':
 
Name of attribute to display from ''string/en/obj_attr_n.stf''
 
Name of attribute to display from ''string/en/obj_attr_n.stf''
 
 
* '''ObjectAttributeValue''':
 
* '''ObjectAttributeValue''':
 
Value to display next to the attribute.
 
Value to display next to the attribute.
Line 57: Line 53:
 
|-
 
|-
 
|}
 
|}
 
 
|}
 
|}
 +
==Sample Packet (pre-cu)==
 +
<pre>
 +
03 00                                          // Operand Count
 +
2A 2F F1 F3                                    // OpCode
 +
4A 1F 9C 1F 01 00 00 00                        // Object ID
 +
13 00 00 00                                    // List Count
 +
09 00   // A_string
 +
63 6F 6E 64 69 74 69 6F 6E                // "condition"
 +
07 00 00 00                                // U_string size
 +
34 00 36 00 31 00 2F 00 39 00 35 00 30 00  // "461/950"
 +
06 00     // A_string size
 +
76 6F 6C 75 6D 65   // "volume"
 +
01 00 00 00        // U_string size
 +
31 00              // "1"
 +
07 00   // A_string size
 +
63 72 61 66 74 65 72   // "crafter"
 +
16 00 00 00   // U_string size
 +
44 00 65 00 6D 00 6F 00 73 00 74 00 68 00 65   
 +
00 6E 00 65 00 73 00 20 00 4B 00 61 00 67 00    // "Demosthenes Kaggazzari"
 +
67 00 61 00 7A 00 7A 00 61 00 72 00 69 00   
  
----
+
etc...
 
+
</pre>
==Sample Code==
+
----
+
  
 
<pre>
 
<pre>
Insert Code Snippet Here...
 
</pre>
 
  
==Sample Packet==
+
CU struct by cAble
 +
                                    ...
  
<pre>
+
04 00 #Operand
Insert Sample Packet Here...
+
2A 2F F1 F3 #Opcode
 +
2C 47 CE F8 16 00 00 00 #Object/item ID
 +
 
 +
 
 +
08 00 00 00 #Unknown INT. belived to be list size, but list larger than 8.  
 +
 
 +
 
 +
09 00 #Astring
 +
63 6F 6E 64 69 74 69 6F 6E #Astring text
 +
 
 +
09 00 00 00 #uString
 +
31 00 30 00 30 00 30 00 2F 00 31 00 30 00 30
 +
00 30 00 #Ustring text
 +
 
 +
 
 +
06 00 #astring
 +
76 6F 6C 75 6D 65 #Astring Text
 +
 
 +
01 00 00 00 #Ustring
 +
31 00 #Usting Text
 +
 
 +
07 00 #Astring
 +
63 72 61 66 74 65 72 #Astring Text
 +
 
 +
06 00 00 00 #Ustring
 +
72 00 65 00 69 00 63 00 6B 00 6F 00 #uString text
 +
 
 +
 
 +
0D 00 #Astring
 +
73 65 72 69 61 6C 5F 6E 75 6D 62 65 72 0A 00 00 00 #Astring text
 +
 
 +
28 00 #Usting
 +
37 00 72 00 75 00 62 00 72 00 70 00 39 00 62 00 29
 +
00 07 00 66 69 6C 6C 69 6E 67 02 00 00 00 31 00
 +
34 00 #Ustring Text
 +
 
 +
08 00 #Astring
 +
64 75 72 61 74 69 6F 6E #Astring text
 +
 
 +
05 00 00 00 #Ustring Size
 +
31 00 3A 00 33 00 30 00 0A 00 #Ustring Text
 +
 
 +
06 00 #Asting
 +
65 66 66 65 63 74 #Astring text
 +
 
 +
01 00 00 00 #Unknown INT
 +
 
 +
20 00 #Unknown short
 +
 
 +
0D 00 #AstringSize
 +
66 6F 6F 64 5F 6D 6F 76 65 6D 65 6E 74 #Astring
 +
 
 +
02 00 00 00 #Ustring Size
 +
2B 00 30 00 #Ustring text
 +
FF FF FF FF
 +
 
 +
Cables note: In NGE , the operand is  05
 
</pre>
 
</pre>

Latest revision as of 18:49, 21 January 2014

Server Packet - AttributeListMessage (F3F12F2A)

SWGANH Wiki is a repository of Star Wars Galaxies Developer information. This site is only meant to be used by SWGANH Developer team.

Struct


SHORT Opperand_Count
INT Opcde
LONG ObjectID
INT ListCount

<attributes count=ListCount>

A_STRING ObjectAttributeName
U_STRING ObjectAttributeValue

<attributes/>

Variable Descriptions


Opperand_Count = 3

Opcode = F3F12F2A


  • ObjectID:

ObjectID that you are listing attributes for.

  • ListCount:

Counter of Attributes to list.

  • ObjectAttributeName:

Name of attribute to display from string/en/obj_attr_n.stf

  • ObjectAttributeValue:

Value to display next to the attribute.

Tags


S→C This packet originates on the server.

100% This packet has been completely reversed.

Sample Packet (pre-cu)

03 00                                           // Operand Count
2A 2F F1 F3                                     // OpCode
4A 1F 9C 1F 01 00 00 00                         // Object ID
13 00 00 00                                     // List Count
09 00 					   	// A_string
63 6F 6E 64 69 74 69 6F 6E                 	// "condition"
07 00 00 00                                	// U_string size
34 00 36 00 31 00 2F 00 39 00 35 00 30 00  	// "461/950"
06 00 		  			   	// A_string size
76 6F 6C 75 6D 65 			   	// "volume"
01 00 00 00       			   	// U_string size
31 00             			   	// "1"
07 00 					   	// A_string size
63 72 61 66 74 65 72 			   	// "crafter" 
16 00 00 00 				   	// U_string size
44 00 65 00 6D 00 6F 00 73 00 74 00 68 00 65    
00 6E 00 65 00 73 00 20 00 4B 00 61 00 67 00    // "Demosthenes Kaggazzari"
67 00 61 00 7A 00 7A 00 61 00 72 00 69 00     

etc...

CU struct by cAble 
                                    ...

04 00 #Operand
2A 2F F1 F3 #Opcode
2C 47 CE F8 16 00 00 00 #Object/item ID 


08 00 00 00 #Unknown INT. belived to be list size, but list larger than 8. 


09 00 #Astring
63 6F 6E 64 69 74 69 6F 6E #Astring text

09 00 00 00 #uString
31 00 30 00 30 00 30 00 2F 00 31 00 30 00 30
00 30 00 #Ustring text


06 00 #astring
76 6F 6C 75 6D 65 #Astring Text

01 00 00 00 #Ustring 
31 00 #Usting Text

07 00 #Astring
63 72 61 66 74 65 72 #Astring Text

06 00 00 00 #Ustring
72 00 65 00 69 00 63 00 6B 00 6F 00 #uString text


0D 00 #Astring
73 65 72 69 61 6C 5F 6E 75 6D 62 65 72 0A 00 00 00 #Astring text

28 00 #Usting
37 00 72 00 75 00 62 00 72 00 70 00 39 00 62 00 29
00 07 00 66 69 6C 6C 69 6E 67 02 00 00 00 31 00
34 00 #Ustring Text

08 00 #Astring
64 75 72 61 74 69 6F 6E #Astring text 

05 00 00 00 #Ustring Size
31 00 3A 00 33 00 30 00 0A 00 #Ustring Text 

06 00 #Asting
65 66 66 65 63 74 #Astring text

01 00 00 00 #Unknown INT

20 00 #Unknown short

0D 00 #AstringSize
66 6F 6F 64 5F 6D 6F 76 65 6D 65 6E 74 #Astring

02 00 00 00 #Ustring Size
2B 00 30 00 #Ustring text
FF FF FF FF

Cables note: In NGE , the operand is  05