Springsharp 2.1 Data file format

Started by Guinness, July 22, 2009, 02:47:00 PM

Previous topic - Next topic

Guinness

Because I'm thinking about auto-parsing SS data files for various purposes, I spent some time decoding the SS data format (which if you've ever looked in the file, you know is just a list of values with no descriptors).

Since it took me a decent enough chunk of time to do this, I thought it worthwhile to share. Chances are at least some here already have this, but here goes:

Quote
SS Version
Name
Country
Type
Hull metric or imperial
Main Battery Metric or Imperial (0 Imperial, 1 metric)
2nd Battery Metric or Imperial
3rd Battery Metric or Imperial
4th Battery Metric or Imperial
5th Battery Metric or Imperial
Torpedoes metric or imperial
Armor in Metric or Imperial (0 Imperial, 1 Metric)
Laid Down Year
Misc Weight Total
Length
Beam
Draught
Transom Bool
BC
Freeboard at Stern
Stern Overhang
Quarter Deck %
Freeboard at 5
Freeboard at 6
Midships %
Freeboard at 8
Freeboard at 9
Forecastle %
Freeboard at 11
Freeboard at 12
Freeboard at Stem
Bow Angle
Num of Guns - 1st battery
Caliber of Guns - 2st Battery
Type: 0 - Muzzle Loader, 1 - BL, 2 - QF, 3 - AA, 4 - DP, 5 - Auto, 6 - MG
Above Freeboard - 1st Battery
Below Freeboard - 1st Battery
Weight - 1st Battery
Num of Guns - 2nd battery
Caliber of Guns 2nd Battery
Type of gun - 2nd battery
Above Freeboard - 2nd Battery
Below Freeboard - 2nd Battery
Weight - 2nd Battery
Num of Guns - 3rd Battery
Caliber of guns - 3rd battery
Type of guns - 3rd Battery
Above Freeboard - 3rd Battery
Below Freeboard - 3rd Battery
Weight - 3rd Battery
Num of Guns - 4th Battery
Caliber of Guns - 4th battery
Type of Guns - 4th battery
Above Freeboard - 4th Battery
Below Freeboard - 4th Battery
Weight - 4th Battery
Num of Guns - 5th Battery
Caliber of Guns - 5th Battery
Type of Guns - 5th Battery
Above Freeboard - 5th Battery
Below Freeboard - 5th Battery
Weight - 5th Battery
Num of Shells for Main battery
Num of Mounts - 1st Battery
Mount type - 1st Battery: 0-BS, 1-T(F), 2-OB, 3-T(B), 4-MH, 5-M, 6-Casemate
Mount Location - 1st Battery: 0-C(D), 1-C(FA), 2-C(AF), 3-C(F), 4-C(C), etc.
Num of Mounts - 2nd Battery
Mount type - 2nd Battery
Mount Location - 2nd Battery
Num of Mounts - 3rd Battery
Mount type - 3rd Battery
Mount Location - 3rd Battery
Num of Mounts - 4th Battery
Mount type - 4th Battery
Mount Location - 4th Battery
Num of Mounts - 5th Battery
Mount type - 5th Battery
Mount Location - 5th Battery
Above Water Torpedo num
Below Water Torpedo num
Torpedo Diam
Main Belt Thickness
Main Belt Length
Main Belt Height
End Belt Thickness
End Belt Length
End Belt Height
Upper Belt Thickness
Upper Belt Length
Upper Belt Height
TB Thickness
TB Length
TB Height
Main Battery Face
Main Battery Other
Main Battery below
2nd Battery Face
2nd Battery Other
2nd Battery below
3rd Battery Face
3rd Battery Other
3rd Battery Below
4th Battery Face
4th Battery Other
4th Battery Below
5th Battery Face
5th Battery Other
5th Battery Below
Deck Thickness
CT Thickness
Top Speed
Cruising Speed
Range
Num of Screws
% of coal bunker
Coal Boilers Bool
Oil Boiler Bool
Diesel Bool
Petrol Bool
Batteries Bool
Simple Recip Bool
Complex Recip Bool
Turbines Bool
Direct Drive Bool
Geared Bool
Electric Bool
Hydraulic Bool
Trim
Bulge Beam
Engine Year
Main Battery Year
2nd Battery Year
3rd Battery Year
4th Battery Year
5th Battery Year
Trim
Trim

And yes, if you look, Trim is listed three times. That's not an error...