Difference between revisions of "Game Opcodes:Set Actor Position"

From FFXIV Classic Wiki
Jump to: navigation, search
(Created page with "Sets the spawn parameters for an actor that was just instantiated. :; Opcode - 0x0CE :; Source - Server :; Data Size - 48 bytes :; Requirements - None == Data == {| class="...")
 
Line 30: Line 30:
 
|-
 
|-
 
| 0x26 || uint16 || 2 Bytes || isZoningPlayer || This has to be 1 if the actor is a player being zoned.
 
| 0x26 || uint16 || 2 Bytes || isZoningPlayer || This has to be 1 if the actor is a player being zoned.
|}
 
 
 
{| class="wikitable sortable" width="100%"
 
! colspan=5 | markerData - Index length 40 bytes, 16 indices max
 
|-
 
! width="50px" style="text-align: center; font-size: 14px;" | Offset
 
! width="60px" style="text-align: center; font-size: 14px;" | Data Type
 
! width="60px" style="text-align: center; font-size: 14px;" | Length
 
! width="60px" style="text-align: center; font-size: 14px;" | Variable
 
! style="text-align: center; font-size: 14px;" | Description
 
|-
 
| 0x00 || uint32 || 4 Bytes || playerID || The ID of a player in the group
 
|-
 
| 0x08 || uint32 || 4 Bytes || unknown || Each player has a different value assigned here.  Unknown use case
 
|-
 
| 0x14 || uint32 || 4 Bytes || playerX || X position of the player.  Floating point value.
 
|-
 
| 0x18 || uint32 || 4 Bytes || playerY || Y position of the player.  Floating point value.
 
|-
 
| 0x1C || uint32 || 4 Bytes || playerZ || Z position of the player.  Floating point value.
 
|-
 
| 0x20 || uint32 || 4 Bytes || playerO || Orientation of the player.  Floating point value.
 
 
|}
 
|}
  
 
== Notes ==
 
== Notes ==
 
:* Sent from the server at a regular interval, likely due to client not being programmed to send a request for such data when the player opens the map.
 
 
 
  
 
== Visual Layout ==
 
== Visual Layout ==
Line 70: Line 43:
 
|-
 
|-
 
! 0x00
 
! 0x00
| colspan="8" style="background:#CEE0F2" | '''playerGroupID'''
+
| colspan="4" style="background:#CEE0F2" | '''unknown'''
| colspan="4" style="background:#8FA6E8" | '''groupType'''
+
| colspan="4" style="background:#8FA6E8" | '''actorID'''
| 00 || 00 || 00 || 00
+
| colspan="4" style="background:#8FA6E8" | '''xPosition'''
 +
| colspan="4" style="background:#CEE0F2" | '''yPosition'''
 
|-
 
|-
 
! 0x10
 
! 0x10
 +
| colspan="4" style="background:#8FA6E8" | '''zPosition'''
 +
| colspan="4" style="background:#8FA6E8" | '''rotation'''
 +
| 00 || 00 || 00 || 00
 
| colspan="16" rowspan="39" style="background:#f1cbff" | '''markerData'''
 
| colspan="16" rowspan="39" style="background:#f1cbff" | '''markerData'''
 
|-
 
|-

Revision as of 10:25, 29 July 2018

Sets the spawn parameters for an actor that was just instantiated.

Opcode - 0x0CE
Source - Server
Data Size - 48 bytes
Requirements - None

Data

Offset Data Type Length Variable Description
0x00 uint32 4 Bytes unknown
0x04 uint32 4 Bytes actorID The actor ID that this applies to.
0x08 float 4 Bytes xPosition The X position of the spawning actor.
0x0C float 4 Bytes yPosition The Y position of the spawning actor.
0x10 float 4 Bytes zPosition The Z position of the spawning actor.
0x14 float 4 Bytes rotation The rotation of the spawning actor.
0x24 uint16 2 Bytes spawnType The animation to play when this actor spawns.
0x26 uint16 2 Bytes isZoningPlayer This has to be 1 if the actor is a player being zoned.

Notes

Visual Layout

Packet Data layout
0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0xA 0xB 0xC 0xD 0xE 0xF
0x00 unknown actorID xPosition yPosition
0x10 zPosition rotation 00 00 00 00 markerData
0x20
0x30
0x40
0x50
0x60
0x70
0x80
0x90
0xA0
0xB0
0xC0
0xD0
0xE0
0xF0
0x100
0x120
0x130
0x140
0x150
0x160
0x170
0x180
0x190
0x1A0
0x1B0
0x1C0
0x1D0
0x1E0
0x1F0
0x200
0x210
0x220
0x230
0x240
0x250
0x260
0x270
0x280
0x290 numEntries 00 00 00 00


markerData layout
0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0xA 0xB 0xC 0xD 0xE 0xF
0x00 playerID[0] 00 00 00 00 unknown[0] 00 00 00 00
0x10 00 00 00 00 playerX[0] playerY[0] playerZ[0]
0x20 playerO[0] 00 00 00 00