Difference between revisions of "UpdateTransformWithParentMessage"

From SWGANH Wiki
Jump to: navigation, search
 
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{PageHeader|Server Packet|UpdateTransformWithParentMessage (C867AB5A)}}
 
+
 
{| 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}}||'''Operand_Count'''
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''Operand_Count'''
+
|{{int}}||'''Opcode'''
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''Opcode'''
+
|{{long}}||'''CellID'''
 
|-
 
|-
|align="center" style="background:#3C4565; color:white;"|'''LONG'''||'''CellID'''
+
|{{long}}||'''ObjectID'''
 
|-
 
|-
|align="center" style="background:#3C4565; color:white;"|'''LONG'''||'''ObjectID'''
+
|{{short}}||'''PositionX'''
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''PositionX'''
+
|{{short}}||'''PositionY'''
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''PositionZ'''
+
|{{short}}||'''PositionZ'''
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''PositionY'''
+
|{{int}}||'''UpdateCounter'''
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''UpdateCounter'''
+
|{{byte}}|'''Posture'''
|-
+
|align="center" style="background:#B3C0DE; color:white;"|'''BYTE'''||'''<font color=red>??</font>'''
+
|-
+
|align="center" style="background:#B3C0DE; color:white;"|'''BYTE'''||'''Direction'''
+
 
|-
 
|-
 +
|{{byte}}||'''Direction'''
 +
|}
 
|}
 
|}
  
Line 46: Line 46:
  
 
* '''New Position of Object'''.
 
* '''New Position of Object'''.
:''PositionX''':
+
::''PositionX''
:''PositionY''':
+
::''PositionY''
:''PositionZ''':
+
::''PositionZ''
  
  
Line 60: Line 60:
 
* '''UpdateCounter''':
 
* '''UpdateCounter''':
 
:Number of movement updates the object has done. Incremented +1 for each new movement.
 
:Number of movement updates the object has done. Incremented +1 for each new movement.
 
  
 
This is the direction for the object to face after moving. It is calculated by (Angle / 0.0625) where angle is in radians.
 
This is the direction for the object to face after moving. It is calculated by (Angle / 0.0625) where angle is in radians.
  
 
|valign=top|
 
|valign=top|
 +
 
===Tags===
 
===Tags===
 
----
 
----
Line 71: Line 71:
 
||{{ServerPacket}}
 
||{{ServerPacket}}
 
|-
 
|-
||{{75%}}
+
||{{100%}}
 
|-
 
|-
 
|}
 
|}
 
 
|}
 
|}
  
 
----
 
----
  
==Sample Code==
+
==Sample Packet==
----
+
  
 
<pre>
 
<pre>
Insert Code Snippet Here...
+
09 00 // op count
</pre>
+
5A AB 67 C8 // UpdateTransformWithParentMessage
 +
C8 EE 40 00 00 00 00 00 // Cell ID
 +
2A 98 F8 28 00 00 00 00 // Object ID
 +
C7 01 // x
 +
07 00 // y
 +
AB 00 // z
 +
92 2A 00 00 // counter
 +
04 // posture
 +
00 // direction
  
==Sample Packet==
 
 
<pre>
 
Insert Sample Packet Here...
 
 
</pre>
 
</pre>

Latest revision as of 11:48, 31 December 2007

Server Packet - UpdateTransformWithParentMessage (C867AB5A)

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
LONG CellID
LONG ObjectID
SHORT PositionX
SHORT PositionY
SHORT PositionZ
INT UpdateCounter
BYTE Posture
BYTE Direction

Variable Descriptions


Opperand_Count = 9

Opcode = C867AB5A


  • CellID:
Cell where the object is moving.
  • ObjectID:
ObjectID that you are moving.
  • New Position of Object.
PositionX
PositionY
PositionZ


The value is transformed the following way.
(Coordinate * 8) = Position
(Position / 8) = Coordinate
This is to bound the possible position movement in a cell.
  • UpdateCounter:
Number of movement updates the object has done. Incremented +1 for each new movement.

This is the direction for the object to face after moving. It is calculated by (Angle / 0.0625) where angle is in radians.

Tags


S→C This packet originates on the server.

100% This packet has been completely reversed.


Sample Packet

09 00 // op count
5A AB 67 C8 // UpdateTransformWithParentMessage
C8 EE 40 00 00 00 00 00 // Cell ID
2A 98 F8 28 00 00 00 00 // Object ID
C7 01 // x
07 00 // y
AB 00 // z
92 2A 00 00 // counter
04 // posture
00 // direction