Difference between revisions of "SceneCreateObjectByCrc"

From SWGANH Wiki
Jump to: navigation, search
(Sample Packet)
(Sample Packet)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{PageHeader|Server Packet|SceneCreateObjectByCrc (FE89DDEA)}}
 
+
 
{| 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}}||'''ObjectID'''
 
|-
 
|-
|align="center" style="background:#3C4565; color:white;"|'''LONG'''||'''ObjectID'''
+
|{{float}}||'''QuaternionX'''
 
|-
 
|-
|align="center" style="background:#3C5466; color:white;"|'''FLOAT'''||'''QuaternionW'''
+
|{{float}}||'''QuaternionY'''
 
|-
 
|-
|align="center" style="background:#3C5466; color:white;"|'''FLOAT'''||'''QuaternionX'''
+
|{{float}}||'''QuaternionZ'''
 
|-
 
|-
|align="center" style="background:#3C5466; color:white;"|'''FLOAT'''||'''QuaternionY'''
+
|{{float}}||'''QuaternionW'''
 
|-
 
|-
|align="center" style="background:#3C5466; color:white;"|'''FLOAT'''||'''QuaternionZ'''
+
|{{float}}||'''X-Coordinate'''
 
|-
 
|-
|align="center" style="background:#3C5466; color:white;"|'''FLOAT'''||'''X-Coordinate'''
+
|{{float}}||'''Y-Coordinate'''
 
|-
 
|-
|align="center" style="background:#3C5466; color:white;"|'''FLOAT'''||'''Z-Coordinate'''
+
|{{float}}||'''Z-Coordinate'''
 
|-
 
|-
|align="center" style="background:#3C5466; color:white;"|'''FLOAT'''||'''Y-Coordinate'''
+
|{{int}}||'''ObjectCRC'''
|-
+
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''ObjectCRC'''
+
|-
+
|align="center" style="background:#B3C0DE; color:white;"|'''BYTE'''||'''ByteFlag'''
+
 
|-
 
|-
 +
|{{byte}}||'''ByteFlag'''
 
|}
 
|}
:{
+
{{beginlist|unknown|unknown count}}
 
:{| class="wikitable"
 
:{| class="wikitable"
|-
+
|{{int}}|{{unknown}}
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''<font color=red>Unknown</font>'''
+
|}
|-
+
{{endlist|unknown}}
 
|}
 
|}
:}
 
 
===Variable Descriptions===
 
===Variable Descriptions===
 
----
 
----
Line 51: Line 49:
 
:ObjectID for the new object to create.
 
:ObjectID for the new object to create.
  
* '''Quaternion W / X / Y / Z''':
+
* '''Quaternion X / Y / Z / W''':
 
:Orientation is done in a Quaternion. Use them to orient the object
 
:Orientation is done in a Quaternion. Use them to orient the object
 
:in ground and space. Use 0,0,0,1 for default orientation.
 
:in ground and space. Use 0,0,0,1 for default orientation.
Line 85: Line 83:
 
|-
 
|-
 
|}
 
|}
 
 
|}
 
|}
 
----
 
 
==Sample Code==
 
 
<pre>
 
Insert Code Snippet Here...
 
</pre>
 
  
 
==Sample Packet==
 
==Sample Packet==
Line 110: Line 99:
 
33 33 83 40 //z
 
33 33 83 40 //z
 
77 D6 B2 68 //object/mobile/shared_muftak.iff
 
77 D6 B2 68 //object/mobile/shared_muftak.iff
00 1A      //ByteFlag
+
00         //ByteFlag - Hyperspacing
 
</pre>
 
</pre>

Latest revision as of 08:58, 5 July 2023

Server Packet - SceneCreateObjectByCrc (FE89DDEA)

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 ObjectID
FLOAT QuaternionX
FLOAT QuaternionY
FLOAT QuaternionZ
FLOAT QuaternionW
FLOAT X-Coordinate
FLOAT Y-Coordinate
FLOAT Z-Coordinate
INT ObjectCRC
BYTE ByteFlag

<unknown count=unknown count>

INT ??

<unknown/>

Variable Descriptions


Operand_Count = 5

Opcode = FE89DDEA


  • ObjectID:
ObjectID for the new object to create.
  • Quaternion X / Y / Z / W:
Orientation is done in a Quaternion. Use them to orient the object
in ground and space. Use 0,0,0,1 for default orientation.
TODO: Add Page about Quaternions
  • X / Y / Z Coordinate:
X-Y-Z Coordinate to place the object.
Use, 0,0,0 for default position (items, contained objects, etc).
  • ObjectCRC:
SWGCRC of the template file for the object located in the /object/ directory of the client.
Refer to the CRCTable for list of objects.
  • ByteFlag:
This byte flag enables an additional INT when set to 1. May also be A counter for an INT list.
TODO: Someone Test this byte and the INTs.
  • Additional Info:
Each Object is created by the CRC of its object template
file in /object/ of the client.
Leave Orientation to 0,0,0,1 and Position to 0,0,0 for data
objects or contained objects(MISO, WEAO, TANO etc.)
TODO: Post a list of the object_template, quest, and mission CRC Tables.

Tags


S→C This packet originates on the server.

75% This packet has been partially reversed.

Sample Packet

05 00       //Operand_Count
EA DD 89 FE //SceneCreateObjectByCrc
62 C9 8B 12 1E 00 00 00 //Object ID
00 00 00 00 //oX
D2 3A EA BE //oY
00 00 00 00 //oZ
EA A3 63 3F //oW
F6 28 A4 41 //x
44 1E 65 BF //y
33 33 83 40 //z
77 D6 B2 68 //object/mobile/shared_muftak.iff
00          //ByteFlag - Hyperspacing