Import & Export Schema for Spacemaster Game Setup

The recent bout of updates has reminded me how much work can go into setting up initial conditions. This is a request thread for a way to Import using spacemaster to automate the process. Specifically a way to do it without touching the database. eg loading a list of completed research when creating a new game, or prefilling templates for NPR’s/PR’s for scenarios.

The elements required to implement this ask on the input side:

  • A parser, Probably JSON, with defined schema.
    • The text file is the user facing part
    • User follows schema to define the scenario parameters to be loaded
  • UI Element to trigger import/export processes
    • I’d like to see this implemented for Research Technologies, Shipyards, and Installations at a minimum. One less manual task to deal with when configuring campaigns and scenarios.
  • Input sanitation followed by logic checks
    • Such as not allowing negative numbers, validating that its a valid tech, checking prerequisites, etc. Everything you need to prevent getting a type mismatch or other invalid entry.
  • Performing the resulting database update
    • Essentially using the existing SM Functions (Instant Research, SM: Add SY, Edit Installation, etc) but without all the individual keyboard interactions.

I think once an import system exists, then an export system to serialize back to JSON should also be implemented.

Longer term i’d like to be able to import/export racial projects and the other more dynamic values. Ground unit designs & formation templates, and eventually whole class designs. I know that is much tougher because of how complex things like component design & ground unit class design can get and thus how hard preprocessing them for validity on import would also be.

Eventual goal would be to be able to go from a clean install of 3.5.0 to playing a preconfigured scenario in under 5 minutes, tech, classes, fleet compositions, but that is probably out of scope for a while.

Thank you

5 Likes