Difference between revisions of "ChatRoomMessage"

From SWGANH Wiki
Jump to: navigation, search
 
(Tags)
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{PageHeader|Server Packet|ChatRoomMessage (CD4CE444)}}
{|
+
|- align="center"
+
||{{PacketGuide}}
+
|-
+
|}
+
 
+
 
{| border="0" width="90%" cellpadding=6
 
{| border="0" width="90%" cellpadding=6
 
|-
 
|-
Line 11: Line 5:
 
===Struct===
 
===Struct===
 
----
 
----
 
+
{| align="center"
 +
|-
 +
||
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
|align="center" style="background:#B3C0DE; color:white;"|'''BYTE'''||'''uint8'''
+
|{{short}}|'''Operand Count'''
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''uint16'''
+
|{{int}}|'''Opcode'''
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''uint32'''
+
|{{a_string}}|'''Game Name'''
 
|-
 
|-
|align="center" style="background:#3C5466; color:white;"|'''FLOAT'''||'''uint32'''
+
|{{a_string}}|'''Galaxy Name'''
 
|-
 
|-
|align="center" style="background:#3C4565; color:white;"|'''LONG'''||'''uint64'''
+
|{{a_string}}|'''Character Name'''
 
|-
 
|-
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''ASCII String'''
+
|{{int}}|'''Room ID'''
 
|-
 
|-
|align="center" style="background:#8BD9A3; color:white;"|'''U_STRING'''||'''Unicode String'''
+
|{{u_string}}|'''Message'''
 
|-
 
|-
|align="center" style="background:#3EC166; color:white;"|'''C_STRING'''||'''Customization String'''
+
|{{u_string}}|'''OutOfBandPackage'''
|-
+
|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'''
+
 
|-
 
|-
 +
|}
 
|}
 
|}
  
Line 43: Line 32:
 
----
 
----
  
Opperand_Count     = '''9'''
+
Opperand_Count     = '''5'''
  
Opcode     = '''FFFFFFFF'''
+
Opcode     = '''CD4CE444'''
 
----
 
----
  
* Additional Descriptions go here...
+
* '''Game Name Size'''
* --
+
:Size of the Game Name, only seen SWG.
* ---
+
 
* ----
+
* '''Game Name'''
 +
:As above SWG
 +
 
 +
* '''Galaxy Name Size'''
 +
:Size of the Galaxy Name
 +
 
 +
* '''Galaxy Name'''
 +
:Example 'Bria'
 +
 
 +
* '''Character Name Size'''
 +
:Size of belows Character name
 +
 
 +
* '''Character Name'''
 +
:Character name thats Sending the Chat
 +
 
 +
* '''Chat Size'''
 +
:Size of Unicode Chat Coming from client
 +
 
 +
* '''Chat'''
 +
:The unicode text of the message being sent.
 +
 
 +
* '''OutOfBandPackage'''
 +
:OutOfBand Packages are structures used to send objects with a message. They are available here, but are only USED in emails. The client will not send one for chat.
 +
HOWEVER: The server can be coded to send one as a script or system event. The STRUCT is not filled out because they can be big. They have their own seperate page, see Additional Info.
  
 
|valign=top|
 
|valign=top|
 +
 
===Tags===
 
===Tags===
 
----
 
----
Line 60: Line 73:
 
||{{ServerPacket}}
 
||{{ServerPacket}}
 
|-
 
|-
||{{0%}}
+
||{{100%}}
 
|-
 
|-
 
|}
 
|}
 
 
|}
 
|}
 
----
 
 
==Sample Code==
 
----
 
 
<pre>
 
Insert Code Snippet Here...
 
</pre>
 
  
 
==Sample Packet==
 
==Sample Packet==
  
 
<pre>
 
<pre>
Insert Sample Packet Here...
+
05 00
 +
44 E4 4C CD                      // ChatRoomMessage
 +
03 00                            // string count
 +
53 57 47                          // SWG
 +
0A 00                            // String count
 +
53 68 61 64 6F 77 66 69 72 65    // Shadowfire
 +
05 00                            // string count
 +
65 73 27 65 6D                    // es'em
 +
68 D5 28 03                      // Room ID
 +
0D 00 00 00                                    // string count
 +
61 00 6E 00 79 00                              // a.n.y.
 +
6F 00 6E 00 65 00 20 00 61 00 72 00 6F 00 75 00 // o.n.e...a.r.o.u.
 +
6E 00 64 00                                    // n.d
 +
00 00 00 00
 
</pre>
 
</pre>
 +
[[Category:Nogard]]

Latest revision as of 07:50, 11 May 2008

Server Packet - ChatRoomMessage (CD4CE444)

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 Operand Count
INT Opcode
A_STRING Game Name
A_STRING Galaxy Name
A_STRING Character Name
INT Room ID
U_STRING Message
U_STRING OutOfBandPackage

Variable Descriptions


Opperand_Count = 5

Opcode = CD4CE444


  • Game Name Size
Size of the Game Name, only seen SWG.
  • Game Name
As above SWG
  • Galaxy Name Size
Size of the Galaxy Name
  • Galaxy Name
Example 'Bria'
  • Character Name Size
Size of belows Character name
  • Character Name
Character name thats Sending the Chat
  • Chat Size
Size of Unicode Chat Coming from client
  • Chat
The unicode text of the message being sent.
  • OutOfBandPackage
OutOfBand Packages are structures used to send objects with a message. They are available here, but are only USED in emails. The client will not send one for chat.

HOWEVER: The server can be coded to send one as a script or system event. The STRUCT is not filled out because they can be big. They have their own seperate page, see Additional Info.

Tags


S→C This packet originates on the server.

100% This packet has been completely reversed.

Sample Packet

05 00 
44 E4 4C CD                       // ChatRoomMessage
03 00                             // string count
53 57 47                          // SWG
0A 00                             // String count
53 68 61 64 6F 77 66 69 72 65     // Shadowfire
05 00                             // string count
65 73 27 65 6D                    // es'em
68 D5 28 03                       // Room ID
0D 00 00 00                                     // string count
61 00 6E 00 79 00                               // a.n.y.
6F 00 6E 00 65 00 20 00 61 00 72 00 6F 00 75 00 // o.n.e...a.r.o.u.
6E 00 64 00                                     // n.d
00 00 00 00