--headless-server-mode=x,x
Run as a headless server.
Where x is an optional comma delimited command list of one or
more of the following:
'exit' - which quits the application after a game has no more
connected players.
'vps' - which does NOT read commands from the local console
(for some vps's).
'lan' - which does not broadcast the hosting server to the
masterserver (for local LAN games).
A 4th option would be good here , to specify an .mgg file from https://github.com/ZetaGlest/zetaglest-data/tree/develop/data or any other path. (it would help with https://github.com/ZetaGlest/zetaglest-data/pull/129)
UPDATE:
There's already some existing code that opens an .mgg file, see https://github.com/ZetaGlest/zetaglest-data/pull/129#issuecomment-399732512 for some extra details (hint: the
--auto-test
option). Also, the headless server by default reads one of the 2 files in https://github.com/ZetaGlest/zetaglest-data/tree/develop/data. Those filenames are hard-coded into the source code.