Difference between revisions of "SceneCreateObjectByCrc"
From SWGANH Wiki
(→Variable Descriptions) |
(→Sample Packet) |
||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{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''' | ||
|- | |- | ||
− | | | + | |{{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''' | ||
|} | |} | ||
− | + | {{beginlist|unknown|unknown count}} | |
:{| class="wikitable" | :{| class="wikitable" | ||
− | | | + | |{{int}}|{{unknown}} |
− | | | + | |} |
− | | | + | {{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 | + | * '''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 | + | :in ground and space. Use 0,0,0,1 for default orientation. |
:'''<font color=red>TODO</font>''': Add Page about Quaternions | :'''<font color=red>TODO</font>''': Add Page about Quaternions | ||
Line 71: | Line 69: | ||
:Each Object is created by the CRC of its object template | :Each Object is created by the CRC of its object template | ||
:file in /object/ of the client. | :file in /object/ of the client. | ||
− | :Leave Orientation to 0 | + | :Leave Orientation to 0,0,0,1 and Position to 0,0,0 for data |
:objects or contained objects(MISO, WEAO, TANO etc.) | :objects or contained objects(MISO, WEAO, TANO etc.) | ||
:'''<font color=red>TODO</font>''': Post a list of the object_template, quest, and mission CRC Tables. | :'''<font color=red>TODO</font>''': Post a list of the object_template, quest, and mission CRC Tables. | ||
Line 85: | Line 83: | ||
|- | |- | ||
|} | |} | ||
− | |||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Sample Packet== | ==Sample Packet== | ||
<pre> | <pre> | ||
− | + | 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 | ||
</pre> | </pre> |
Latest revision as of 07: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
Variable DescriptionsOperand_Count = 5 Opcode = FE89DDEA
|
Tags
|
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