WilliamMiller wrote: Mon Feb 12, 2024 7:19 pm
We are looking at ways to adjust things to make mods and saving/loading individual ships easier to handle for the game. Will post update as soon as we settle upon a course of action, thanks!
Thanks, William!
Tarhunnas wrote: Wed Feb 14, 2024 6:43 pm
I can do adescription of the file format, I am just a little busy now, so it might take a little time.
Could you describe your use case? Perhaps there are easier ways to solve your rquest?
Hi Tarhunnas,
Use case is probably the obvious: I want to read in the ship design information. For that, I need to know what a line with just "1" corresponds to: is that Range or Freeboard or InclinedBelt or...?
Previously, this was explicit:
Code: Select all
Range=1
Freeboard=0
InclinedBelt=0
So a dictionary-style file parser worked. I guess now we'll have to unfortunately use a line-based parser, which will break any time the serialization process changes.
That means I'll need a mapping of file_line_num to trait. If you can provide that, that'd be great.
Best,
Tortuga