Difference between revisions of "ChatOnUninviteFromRoom"

From SWGANH Wiki
Jump to: navigation, search
(Sample Packet)
(Sample Packet)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{PageHeader|Server Packet|ChatOnUninviteFromRoom (BE33C7E8)}}
{|
+
|- 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}}||'''Room Name'''
 
|-
 
|-
|align="center" style="background:#3C5466; color:white;"|'''FLOAT'''||'''uint32'''
+
|{{a_string}}||'''Game'''
 
|-
 
|-
|align="center" style="background:#3C4565; color:white;"|'''LONG'''||'''uint64'''
+
|{{a_string}}||'''Server'''
 
|-
 
|-
|align="center" style="background:#D8F2E0; color:#3C4565;"|'''A_STRING'''||'''ASCII String'''
+
|{{a_string}}||'''Moderator'''
 
|-
 
|-
|align="center" style="background:#8BD9A3; color:white;"|'''U_STRING'''||'''Unicode String'''
+
|{{a_string}}||'''Game'''
 
|-
 
|-
|align="center" style="background:#3EC166; color:white;"|'''C_STRING'''||'''Customization String'''
+
|{{a_string}}||'''Server'''
 
|-
 
|-
|align="center" style="background:#25733D; color:white;"|'''B_STRING'''||'''Byte String'''
+
|{{a_string}}||'''Target'''
 
|-
 
|-
|align="center" style="background:#C6C600; color:white;"|'''{ }'''||'''LIST Component'''
+
|{{int}}||'''ErrorCode'''
 
|-
 
|-
|align="center" style="background:#DF97A7; color:white;"|'''?'''||'''Uncertain Values'''
+
|{{int}}||'''RequestID'''
|-
+
|align="center" style="background:#C84966; color:white;"|'''?? '''||'''Unknown Variable Name'''
+
 
|-
 
|-
 +
|}
 
|}
 
|}
  
Line 43: Line 38:
 
----
 
----
  
Opperand_Count     = '''9'''
+
Opperand_Count     = '''6'''
  
Opcode     = '''FFFFFFFF'''
+
Opcode     = '''BE33C7E8'''
 
----
 
----
  
* Additional Descriptions go here...
+
* '''RoomPathName''':
* --
+
:The full ChatServer path and name for the room including the RoomName specified on creation. Example: "SWG.TestCenter.Chat.tcpa"
* ---
+
 
* ----
+
* '''Game''':
 +
:The name of the game ("SWG") this player is on. Part of ChatAvatarId 3 ASTRINGs representing the player on the ChatServer. "Game.Server.name"  name is the lowercase of the first name for the player.
 +
 
 +
* '''Server''':
 +
:The name of the server (Galaxy) this player is on. Part of ChatAvatarId object.
 +
 
 +
* '''Moderator''':
 +
:The first name of the player who is a moderator for the room this action is affecting. Must be only firstname and lowercase. Part of ChatAvatarId object.
 +
 
 +
* '''Target''':
 +
:The first name of the player the moderator is targeting with this packet. Must be only firstname and lowercase. Part of ChatAvatarId object.
 +
 
 +
* '''ErrorCode''':
 +
:A integer containing a code for the error that occured. Used to determine what error message to display.
 +
::0:Success: You uninvited [Target] from [RoomPathName].
 +
::4: Failed to uninvite [Target] from [RoomPathName]: avatar not found.
 +
::5: Failed to uninvite [Target] from [RoomPathName]: room does not exist.
 +
::9: Failed to uninvite [Target] from [RoomPathName] room is not private.
 +
::13: Failed to uninvite [Target] from [RoomPathName]:that avatar is not currently invited.
 +
::16: Failed to uninvite [Target] from [RoomPathName]: you are not a moderator.
 +
::<font color="orange">'''Default: Failed to uninvite [Target] from [RoomPathName].</font>
 +
 
 +
* '''RequestID''':
 +
:For every request made, the client attaches an ID number to identify it. It is unique for each request type (opcode) and incremented for each request. Similar to Update Counters used in Objects. For every response that had a request with a RequestID, the same RequestID must be sent back. It is used to identify key information regarding the response, such as what the full RoomPathName was and it is used in error message generation. Also can be used to eliminate duplicate requests.
  
 
|valign=top|
 
|valign=top|
 +
 
===Tags===
 
===Tags===
 
----
 
----
Line 60: Line 79:
 
||{{ServerPacket}}
 
||{{ServerPacket}}
 
|-
 
|-
||{{25%}}
+
||{{100%}}
 
|-
 
|-
 
|}
 
|}
Line 67: Line 86:
  
 
----
 
----
 
==Sample Code==
 
----
 
 
<pre>
 
Insert Code Snippet Here...
 
</pre>
 
  
 
==Sample Packet==
 
==Sample Packet==
Line 85: Line 97:
 
E8 C7 33 BE                                        // ChatOnUninviteFromRoom
 
E8 C7 33 BE                                        // ChatOnUninviteFromRoom
 
22 00                                              // string count
 
22 00                                              // string count
53 57 47 2E 53 68 61 64 6F 77 66 69 72 65 2E 74 75  // WG.Shadowfire.tu
+
53 57 47 2E 53 68 61 64 6F 77 66 69 72 65 2E 74 75  // SWG.Shadowfire.tu
 
74 6F 72 69 61 6C 2E 43 68 61 74 2E 72 6F 75 73 65  // torial.Chat.rouse
 
74 6F 72 69 61 6C 2E 43 68 61 74 2E 72 6F 75 73 65  // torial.Chat.rouse
 
03 00                              // string count
 
03 00                              // string count
Line 100: Line 112:
 
72 6F 75 73 65                    // rouse
 
72 6F 75 73 65                    // rouse
 
00 00 00 00  
 
00 00 00 00  
01 00 00 00  
+
01 00 00 00 // RequestID
 
F3  
 
F3  
 
</pre>
 
</pre>

Latest revision as of 06:36, 11 May 2008

Server Packet - ChatOnUninviteFromRoom (BE33C7E8)

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 Room Name
A_STRING Game
A_STRING Server
A_STRING Moderator
A_STRING Game
A_STRING Server
A_STRING Target
INT ErrorCode
INT RequestID

Variable Descriptions


Opperand_Count = 6

Opcode = BE33C7E8


  • RoomPathName:
The full ChatServer path and name for the room including the RoomName specified on creation. Example: "SWG.TestCenter.Chat.tcpa"
  • Game:
The name of the game ("SWG") this player is on. Part of ChatAvatarId 3 ASTRINGs representing the player on the ChatServer. "Game.Server.name" name is the lowercase of the first name for the player.
  • Server:
The name of the server (Galaxy) this player is on. Part of ChatAvatarId object.
  • Moderator:
The first name of the player who is a moderator for the room this action is affecting. Must be only firstname and lowercase. Part of ChatAvatarId object.
  • Target:
The first name of the player the moderator is targeting with this packet. Must be only firstname and lowercase. Part of ChatAvatarId object.
  • ErrorCode:
A integer containing a code for the error that occured. Used to determine what error message to display.
0:Success: You uninvited [Target] from [RoomPathName].
4: Failed to uninvite [Target] from [RoomPathName]: avatar not found.
5: Failed to uninvite [Target] from [RoomPathName]: room does not exist.
9: Failed to uninvite [Target] from [RoomPathName] room is not private.
13: Failed to uninvite [Target] from [RoomPathName]:that avatar is not currently invited.
16: Failed to uninvite [Target] from [RoomPathName]: you are not a moderator.
Default: Failed to uninvite [Target] from [RoomPathName].
  • RequestID:
For every request made, the client attaches an ID number to identify it. It is unique for each request type (opcode) and incremented for each request. Similar to Update Counters used in Objects. For every response that had a request with a RequestID, the same RequestID must be sent back. It is used to identify key information regarding the response, such as what the full RoomPathName was and it is used in error message generation. Also can be used to eliminate duplicate requests.

Tags


S→C This packet originates on the server.

100% This packet has been completely reversed.


Sample Packet

00 09 
05 0C 
00 19 
65 
06 00 
E8 C7 33 BE                                         // ChatOnUninviteFromRoom
22 00                                               // string count
53 57 47 2E 53 68 61 64 6F 77 66 69 72 65 2E 74 75  // SWG.Shadowfire.tu
74 6F 72 69 61 6C 2E 43 68 61 74 2E 72 6F 75 73 65  // torial.Chat.rouse
03 00                              // string count
53 57 47                           // SWG
0A 00                              // string count
53 68 61 64 6F 77 66 69 72 65      // Shadowfire
08 00                              // string count
72 75 62 69 6E 6C 65 65            // rubinlee
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
72 6F 75 73 65                     // rouse
00 00 00 00 
01 00 00 00 // RequestID
F3