Startup option to list save-game metadata
Posted: Thu Aug 05, 2021 2:34 am
Like most people on Linux I think, I have an options-processing frontender to start factorio from the command line. So just `Factorio` hunts down the latest savegame (or autosave), or I can say `Factorio -b sometest` and it'll hunt down the latest save game with `sometest` in its name and start it with benchmarking set up the way I like it, and so on. `Factorio $(mr ~/down)` starts factorio with the last thing I downloaded, because I've got a `mr` command to show me the most recent thing at that path, `Factorio -M seablock` starts Factorio with the most recent save and my seablock mods list, and so on.
But the thing I can't do without some fragile binary spelunking I'm trying to avoid is tell what mods I should have active to load a map. The GUI will show me that, after loading a possibly-wrong set. Any chance of getting a `--show-metadata` startup option to quickly show the same map and mod versions and maybe scenario name info the Load Game screen shows?
or json instead of lua might be more to taste.
I've got this feeling I'm not the first to ask for something like this, but searching for map metadata showed nothing similar in the first maybe couple dozen hits so here it is again I guess.
But the thing I can't do without some fragile binary spelunking I'm trying to avoid is tell what mods I should have active to load a map. The GUI will show me that, after loading a possibly-wrong set. Any chance of getting a `--show-metadata` startup option to quickly show the same map and mod versions and maybe scenario name info the Load Game screen shows?
Code: Select all
$ factorio --show-metadata FILE # same FILE search the other map-loading options use, with the negligible startup overhead of the `--benchmark` option.
{
map_version = "1.1.37",
scenario = "freeplay",
mods = { base = "1.1.37", HallOfFame = "1.9.0" },
}
$
or json instead of lua might be more to taste.
I've got this feeling I'm not the first to ask for something like this, but searching for map metadata showed nothing similar in the first maybe couple dozen hits so here it is again I guess.