Here is the order of stats in the flatfile - but you'll have to check how this lines up with the start of the data sequence in the ship blob (haven't checked if this lines up with the start of the ship blob, or if there are a handful (say 1-9) bytes of other stuff at the beginning of it)
Each of these fields are 1 byte, so two hex digits
Code:
Right warp total (damaged + undamaged)
Right warp current
Left warp total
Left warp current
Center warp total
Center warp current
Impulse total
Impulse current
Apr total
Apr current
Bridge total
Bridge current
Sensor total
Sensor current
Scanner total
Scanner current
DamCon total
DamCon current
Repair total
Repair current
Fwd hull total
Fwd Hull current
Aft hull total
Aft hull current
Center hull total
Center hull current
Tractor total
Tractor current
Excess dam total
Excess dam current
Transporters total
Transporters current
??? total
??? current
Battery total
Battery current
Labs total
Labs current
Cargo total
Cargo current
Armour total
Armour current
Cloak total
Cloak current
Probe total
Probe current
Barracks total
Barracks current
Then there are 25 pairs, one for each weapons hardpoint,
Weapons on hardpoint i total
Weapons on hardpoint i current
Then we get 11 bytes of ???
Then a burst covering drones:
Drone type
Drone speed
Drone reloads
???
Drone racks
???
Max drones
Then 4 bytes of ???
Current drones
Then 4 bytes of ???
Heh, then it gets a little tricky
For each of the 25 hardpoints, there are 4 entries of 2 bytes each
current number of drones in the hardpoint
current number of racks in the hardpoint
size/type of drone rack in the hardpoint
and 2 bytes of ???
Then we get a big chunk of ???
However, 325 bytes past the RWtotal, we get
Shuttles max, then
Shuttles curr
Then another glorious whack of ???,
until, 440 bytes past the RWtotal, we get
Marines max
Marines current
Marines current again?
Tbombs max
Tbombs current
Tbombs current again?
Spares max
Spares current
Spares current again?
Finally, we get the information on the four fighter bays
For each bay:
Total fighters in the bay
Current fighters in the bay
Default number of fighters in the bay
One byte of ????
4 bytes telling you how long the string for the fighter type is
followed by the actual fighter type currently loaded (e.g. H-Hornet-1 or whatever)
4 bytes telling how long the string for the default fighter type is
followed by the default fighter type for that bay (from the shiplist)
loads o' fun
dave