Post by sage2 on Jul 28, 2015 16:30:39 GMT -6
Being able to play past 1925 (a likely feature of 1.1 from what the dev has said) will create an opportunity for a mod that extends gun, ships, armor and technology past 1925 (perhaps in a fictional way where air-power at sea never developed). It would be useful to have a modding thread where people can post their understanding of how the .dat files store game value, and interact. I'll start with what I understand so far.
A useful experiment would be to see if there's enough exposed data in these files to add new items, such as a new torpedo type that could be research and mounted, or new army thicknesses allowed after certain improvements. It's not clear what's needed vs. what's hard coded.
The interesting game play files that I see are:
gundata.dat:
c sw ROF mr
'c' is caliber
'ROF' appears to be rounds per minute base value
sw - shell weight, presumably used for calculating ammunition storage weights in designs?
mr - maximum range
hpen.dat
Table for horizontal (deck) penetration. These appear to be the 'maximum' end of game values. Rows are for caliber, columns are ranges.
vpen.dat
Table for vertical (belt) penetration. Likewise, these seem to be 'maximum' end of game values. Same convention for rows/columns as above.
Range in both of the above appears to be in miles? or possible 1000 yard increments?
In both of the above, the numbers seem to be tenths of a inch , so 360 = 36in.
ordanance.dat
'Cal' is caliber
'Cat' is category, probably used in log messages, e.g. "Small / Medium / Large guns fired by enemy"
Weight and Cost are evident
TF1 - TF3, TFC , SW -- not clear what these are or how they are used.
I think this file is where damage values are stored, however, as I don't see another place they would likely be. I'm not sure how to read them, however.
researchareas.dat
Controls the different researchable technologies.
Not clear how this works:
Hydraulic recoil;1900;Y;100;3;59;Gradual national ROF improvement
speculation:
'Name';[default year];[spreads to others?];?;?;?;'Game displayed description'
speedHPtable.dat
Not clear how this works. I think this might be a multiplier factored against the weight of a ship to calculate the required horsepower value.
TorpedoData.dat
May be un-used by RTW game engine?
TYPE - type (category)
CAL - caliber
WH - weight?
RH, SL - I think these are ranges at high speed and low speed, but it's not clear what the unit of measurement is. It might be a multiplier against speed to identify actual range.
SH, SL - I think these are 'high speed' and 'low speed' values
TYPE CAL WH RH SH RL SL N