SHIP06

From SWGANH Wiki
Revision as of 21:55, 7 January 2008 by Snow (Talk | contribs)

Jump to: navigation, search

Baseline - SHIP06

SWGANH Wiki is a repository of Star Wars Galaxies Developer information. This site is only meant to be used by SWGANH Developer team.

SHIP Packet Type QuickNav
SHIP01 - SHIP03 - SHIP04 - SHIP06 - SHIP08 - SHIP09

BaseLine Struct


INT:         ??
INT:         ??
INT:         ??
SHORT:       ??
FLOAT:       ??
FLOAT:       Min Speed
FLOAT:       ??
FLOAT:       ??

//Orientation floats: (see notes below)
FLOAT:       ??
FLOAT:       ??
FLOAT:       ??
//

FLOAT:       ??
FLOAT:       Max Speed (see notes)
LONG:        Ship Object ID

INT:         ?? [1]
INT:         ??

INT:         ?? [2]

INT:         ?? [1]
INT:         ??

Component CRC List:
INT:    List size
INT:    List Update Counter
{
    BYTE:    ??
    INT:     Component Index
    INT:     Component CRC
}

SHORT:       ?? [3]
SHORT:       ??
SHORT:       ??
SHORT:       ??

FLOAT:       Current Frontshield
FLOAT:       Current Backshield
INT:         ??

Deltas Struct



Variable Descriptions


Obj_OperandCount = 18


Orientation Floats - have something to do with pitch/yaw/roll The first 2 floats have been seen to be the same. The last float has been seen as 1/2 of the first 2 floats. Default Values = { 10.472f,10.472f,5.23599f } These floats have also appeared in SHIP1.

Max speed: This is the _real_ max speed value. The display value for max speed is in SHIP1. This Value * 10 = Max Speed. (ex. if this = 45. 45 * 10 = 450 max speed)

[1] - These 2 ints could be the start of a new list.

[2] - LENGTH FOR SOMETHING, swg will allocate this number of bytes

[3] - these shorts might be 2 int's for lists.

Notes


(Ramsey's Break)

This packet sets ShipObject components and attaches them to the chasis. It also makes the ship energy display. The components of the ship object are presented in the list, if the chasis isnt provided a debug warning will throw but not crash the client, saying that it needs to be attached. Ship components include a reactor, the reactors status (damaged, pristine etc) are also listed in this packet.

Tags


50% This packet has been partially reversed.

Sample Packet


05 00 0C 5F A7 68 04 5A D1 D6 13 00   ......._.h.Z....
00 00 50 49 48 53 06 B6 00 00 00 17 00 6E 00 00   ..PIHS.......n..
00 0F 00 73 74 72 69 6E 67 5F 69 64 5F 74 61 62   ...string_id_tab
6C 65 00 00 00 00 00 00 00 00 00 00 00 00 00 00   le..............
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00 00 00 00 00 00 73 00 00 00 04 00 00 00 1F 00   ......s.........
00 00 07 00 00 00 07 00 00 00 15 00 00 00 00 00   ................
00 00 00 04 FC 2E D7 00 01 00 00 00 3E 98 D3 79   ............>..y
00 02 00 00 00 CD E8 36 A4 00 04 00 00 00 FD 53   .......6.......S
08 B0 00 05 00 00 00 FD 53 08 B0 00 06 00 00 00   ........S.......
8F 6A A4 4C 00 07 00 00 00 91 D4 AB 5A 00 00 00   .j.L........Z...
00 00 00 00 00 00 00 75 44 00 00 75 44 00 00 00   .......uD..uD...
00 01 0A EA