External Host switches gone between 12.11 and 12.18

Problems and solutions for installing or running FreeOrion, including discussion of bugs if needed before posting a bug report. For problems building from source, post in Compile.
Post Reply
Message
Author
clgillis
Space Krill
Posts: 3
Joined: Thu Dec 21, 2017 2:51 pm

External Host switches gone between 12.11 and 12.18

#1 Post by clgillis » Thu Dec 21, 2017 4:19 pm

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.

o01eg
Space Kraken
Posts: 161
Joined: Sat Dec 10, 2011 5:46 am

Re: External Host switches gone between 12.11 and 12.18

#2 Post by o01eg » Thu Dec 21, 2017 9:15 pm

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?
Gentoo Linux x64, gcc-7.3, boost-1.65.0
Ubuntu Server 18.04 x64, gcc-7.3, boost-1.65.1
Welcome to multiplayer server at freeorion-test.dedyn.io.Version 0.4.8
Donates are welcome: BTC:14XLekD9ifwqLtZX4iteepvbLQNYVG87zK

clgillis
Space Krill
Posts: 3
Joined: Thu Dec 21, 2017 2:51 pm

Re: External Host switches gone between 12.11 and 12.18

#3 Post by clgillis » Thu Dec 21, 2017 9:39 pm

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.

dbenage-cx
Programmer
Posts: 389
Joined: Sun Feb 14, 2016 12:08 am

Re: External Host switches gone between 12.11 and 12.18

#4 Post by dbenage-cx » Thu Dec 21, 2017 10:07 pm

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.

clgillis
Space Krill
Posts: 3
Joined: Thu Dec 21, 2017 2:51 pm

Re: External Host switches gone between 12.11 and 12.18

#5 Post by clgillis » Fri Dec 22, 2017 12:26 am

dbenage-cx,

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

o01eg
Space Kraken
Posts: 161
Joined: Sat Dec 10, 2011 5:46 am

Re: External Host switches gone between 12.11 and 12.18

#6 Post by o01eg » Fri Dec 22, 2017 4:08 am

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.
Gentoo Linux x64, gcc-7.3, boost-1.65.0
Ubuntu Server 18.04 x64, gcc-7.3, boost-1.65.1
Welcome to multiplayer server at freeorion-test.dedyn.io.Version 0.4.8
Donates are welcome: BTC:14XLekD9ifwqLtZX4iteepvbLQNYVG87zK

dbenage-cx
Programmer
Posts: 389
Joined: Sun Feb 14, 2016 12:08 am

Re: External Host switches gone between 12.11 and 12.18

#7 Post by dbenage-cx » Sat Jan 13, 2018 12:15 am

Note in next test release, the mplobby-* options are renamed.

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

o01eg
Space Kraken
Posts: 161
Joined: Sat Dec 10, 2011 5:46 am

Re: External Host switches gone between 12.11 and 12.18

#8 Post by o01eg » Sun Jan 14, 2018 7:52 pm

Thanks, changed parameters in the server's code.
Gentoo Linux x64, gcc-7.3, boost-1.65.0
Ubuntu Server 18.04 x64, gcc-7.3, boost-1.65.1
Welcome to multiplayer server at freeorion-test.dedyn.io.Version 0.4.8
Donates are welcome: BTC:14XLekD9ifwqLtZX4iteepvbLQNYVG87zK

Post Reply