Page 1 of 1

External Host switches gone between 12.11 and 12.18

Posted: Thu Dec 21, 2017 4:19 pm
by clgillis
I use an external server to host my FreeOrion games. For this to work I do the following.

1. Run FreeOrion in a batch file on the Host server with FreeOrionD.exe --server-save-dir <Save Directory>
2. Run FreeOrion on the Client with FreeOrion.exe" --force-external-server --external-server-address <Host server address>
3. Select multiplayer
4. Select Host game. Client connects to external server.
5. Load or start a new game with one or more Players and/or AI.
6. Upon the game exiting on the Host server, save files are archived within the batch file and FreeOrion is re-run(it loops in the batch)

As of 12.18 the switches on the server and client side no longer exist. I have toyed with the new server switches, but since it seems that:

1. Hostless mode does not seem to save games when using: FreeOrionD.exe --hostless --mplobby-min-human 1 --mplobby-max-ai 4 --save.path <path to saves> --save.server.path <path to saves>
2. If I don't use the --hostless switch and try to join the server using Join it sits at a black screen. I assume because a host has not entered. Which since the --external-server-address switch has gone away I cannot connect as a host.

So I guess the questions are:

1. Are --force-external-server --external-server-address coming back eventually and if not
2. Am I missing an undocumented switch that allows external host for the client?

Thanks.

Re: External Host switches gone between 12.11 and 12.18

Posted: Thu Dec 21, 2017 9:15 pm
by o01eg
1. Hostless mode does not seem to save games when using: FreeOrionD.exe --hostless --mplobby-min-human 1 --mplobby-max-ai 4 --save.path <path to saves> --save.server.path <path to saves>
Without setting save paths does the server save autosave files in a default folder?

Re: External Host switches gone between 12.11 and 12.18

Posted: Thu Dec 21, 2017 9:39 pm
by clgillis
o01eg wrote:

Without setting save paths does the server save autosave files in a default folder
I tried it without the --save.path and --save.server.path as well and no saves where placed in <DriveLetter>:Users\<username>\AppData\Roaming\FreeOrion\save when playing with the --hostless switch. That default location was provided when running FreeOrionD.exe --help. Sorry I forgot to mention that in the original post.

Re: External Host switches gone between 12.11 and 12.18

Posted: Thu Dec 21, 2017 10:07 pm
by dbenage-cx
Hi cigillis,

Many options have changed names (though I missed mplobby-*):
network.server.uri = external-server-address
network.server.external.force = force-external-server

The command line option --help should list most options.
It may help to output the results to a file for now, hopefully it will see some rework before next release.

Re: External Host switches gone between 12.11 and 12.18

Posted: Fri Dec 22, 2017 12:26 am
by clgillis
dbenage-cx,

Thanks those did the trick and I am back in business.

Re: External Host switches gone between 12.11 and 12.18

Posted: Fri Dec 22, 2017 4:08 am
by o01eg
clgillis wrote:
o01eg wrote:

Without setting save paths does the server save autosave files in a default folder
I tried it without the --save.path and --save.server.path as well and no saves where placed in <DriveLetter>:Users\<username>\AppData\Roaming\FreeOrion\save when playing with the --hostless switch. That default location was provided when running FreeOrionD.exe --help. Sorry I forgot to mention that in the original post.
Could you check logs about saves in hostless mode as I don't have a issues with autosaves at server?

P.S. Oh, you don't need to check it. I didn't publish changes for hostless autosaves.

Re: External Host switches gone between 12.11 and 12.18

Posted: Sat Jan 13, 2018 12:15 am
by dbenage-cx
Note in next test release, the mplobby-* options are renamed.

mplobby-max-ai -> network.server.ai.max
mplobby-min-human -> network.server.human.min

Re: External Host switches gone between 12.11 and 12.18

Posted: Sun Jan 14, 2018 7:52 pm
by o01eg
Thanks, changed parameters in the server's code.