tuomount / Open-Realms-of-Stars

4X Strategy game
GNU General Public License v2.0
134 stars 32 forks source link

Space Race Editor #734

Open tuomount opened 9 months ago

tuomount commented 9 months ago

Space Race could have now editor. This should be done by adding new space race json in customs.json which could then loaded by using shadow thingy. Not sure if this should be done for 0.26.0 or 0.27.0

BottledByte commented 9 months ago

Due to the constraints of the code how SpaceRaces are treated currently (see my comment in #729 ), such editor would be likely more a "modding" tool than something like "setup your race" screen, which player would want/expect. Additionally, the resource shadowing is currently useful only for loading SpaceRaces at program startup, as the factory reads the data files only once. So the editor would either had to refresh the cache of SpaceRaceFactory or game would have to be restarted.

I recommend to postpone this. There is a lot of new and/or changed things for v0.26 anyway :smile:

tuomount commented 9 months ago

Yes, Idea is to have separate selection(Custom Space Race or similar) for main menu and it would rewrite custom.json after exit. SpaceRaces would be reloaded when starting new game or loading game. Moving this to 0.27.