Difference between revisions of "ClientRandomNameResponse"

From SWGANH Wiki
Jump to: navigation, search
m (Protected "ClientRandomNameResponse": Page is complete [edit=sysop:move=sysop])
(Variable Descriptions)
 
(7 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
===Struct===
 
===Struct===
 
----
 
----
 
+
{| align="center"
 +
|-
 +
||
 
{| class="wikitable"
 
{| class="wikitable"
|{{short}}||'''Operand_Count'''
+
|{{short}}||'''Op Count'''
 
|-
 
|-
 
|{{int}}||'''Opcode'''
 
|{{int}}||'''Opcode'''
Line 17: Line 19:
 
|{{a_string}}||'''STFFile'''
 
|{{a_string}}||'''STFFile'''
 
|-
 
|-
|{{int}}|{{unknown}}
+
|{{int}}|'''String spacer'''
 
|-
 
|-
 
|{{a_string}}||'''Approval_String'''
 
|{{a_string}}||'''Approval_String'''
 +
|}
 
|}
 
|}
  
Line 25: Line 28:
 
----
 
----
  
Opperand_Count     = '''4'''
+
Op Count     = '''4'''
  
 
Opcode     = '''E85FB868'''
 
Opcode     = '''E85FB868'''
Line 39: Line 42:
  
 
* '''STFFile''':
 
* '''STFFile''':
:The name of the .STR file used to store the string to display. For this packet use "ui"
+
:The name of the .STF file used to store the string to display. For this packet use "ui"
  
* '''Unknown''':
+
* '''string spacer''':
:Always used 0. Data is not used by Client in ASM.
+
:Always used 0.  
:Is between most of the STFFile variables.
+
:Is between most of the STF File variables.
  
 
* '''Approval_Type''':
 
* '''Approval_Type''':
Line 51: Line 54:
  
 
|valign=top|
 
|valign=top|
 +
 
===Tags===
 
===Tags===
 
----
 
----
Line 60: Line 64:
 
|-
 
|-
 
|}
 
|}
 
 
|}
 
|}
 
----
 
 
==Sample Code==
 
 
<pre>
 
Insert Code Snippet Here...
 
</pre>
 
  
 
==Sample Packet==
 
==Sample Packet==
  
 
<pre>
 
<pre>
Insert Sample Packet Here...
+
04 00      // Op Count
 +
68 B8 5F E8 // ClientRandomNameResponse
 +
25 00                                    // string count
 +
6F 62 6A 65 63 74 2F                      // object/
 +
63 72 65 61 74 75 72 65 2F                // creature/
 +
70 6C 61 79 65 72 2F                      // player/
 +
68 75 6D 61 6E 5F 6D 61 6C 65 2E 69 66 66 // human_male.iff
 +
11 00 00 00                        // u-string count
 +
4E 00 65 00 61 00 73 00 63 00 65    // N.e.a.s.c.e
 +
00 75 00 72 00 65 00 20 00          // .u.r.e. .
 +
45 00 67 00 65 00 73 00 61 00 63 00 65 00        E.g.e.s.a.c.e.
 +
02 00 // string count
 +
75 69 // ui
 +
00 00 00 00 // string spacer
 +
0D 00 // string count
 +
6E 61 6D 65 5F 61 70 70 72 6F 76 65 64 // name_approved
 
</pre>
 
</pre>

Latest revision as of 11:54, 10 January 2008

Server Packet - ClientRandomNameResponse (E85FB868)

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 Op Count
INT Opcode
A_STRING Player_Race_IFF
U_STRING RandomName
A_STRING STFFile
INT String spacer
A_STRING Approval_String

Variable Descriptions


Op Count = 4

Opcode = E85FB868


  • Player_Race_IFF:
This string is the TRE game directory location of the race object of type Player.
"object/creature/player/*.iff"

Note: Not to be confused with creature objects, or any other object types.

  • RandomName:
Unicode string of the generated Name. Space seperates First Name and Surname
  • STFFile:
The name of the .STF file used to store the string to display. For this packet use "ui"
  • string spacer:
Always used 0.
Is between most of the STF File variables.
  • Approval_Type:
"name_approved" Allows you to use the name.

Note: must be "name_approved" for generated name to take.

Tags


S→C This packet originates on the server.

100% This packet has been completely reversed.

Sample Packet

04 00       // Op Count
68 B8 5F E8 // ClientRandomNameResponse
25 00                                     // string count
6F 62 6A 65 63 74 2F                      // object/
63 72 65 61 74 75 72 65 2F                // creature/
70 6C 61 79 65 72 2F                      // player/
68 75 6D 61 6E 5F 6D 61 6C 65 2E 69 66 66 // human_male.iff
11 00 00 00                         // u-string count
4E 00 65 00 61 00 73 00 63 00 65    // N.e.a.s.c.e
00 75 00 72 00 65 00 20 00          // .u.r.e. .
45 00 67 00 65 00 73 00 61 00 63 00 65 00        E.g.e.s.a.c.e.
02 00 // string count
75 69 // ui
00 00 00 00 // string spacer
0D 00 // string count
6E 61 6D 65 5F 61 70 70 72 6F 76 65 64 // name_approved