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 on GitHub. For problems building from source, post in Compile.

Moderator: Oberlus

Post Reply
Message
Author
clgillis
Space Krill
Posts: 5
Joined: Thu Dec 21, 2017 2:51 pm

External Host switches gone between 12.11 and 12.18

#1 Post 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.

o01eg
Programmer
Posts: 2004
Joined: Sat Dec 10, 2011 5:46 am

Re: External Host switches gone between 12.11 and 12.18

#2 Post 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?
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-03-15.b3de094.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

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

Re: External Host switches gone between 12.11 and 12.18

#3 Post 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.

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 »

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: 5
Joined: Thu Dec 21, 2017 2:51 pm

Re: External Host switches gone between 12.11 and 12.18

#5 Post by clgillis »

dbenage-cx,

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

o01eg
Programmer
Posts: 2004
Joined: Sat Dec 10, 2011 5:46 am

Re: External Host switches gone between 12.11 and 12.18

#6 Post 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.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-03-15.b3de094.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

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 »

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
Programmer
Posts: 2004
Joined: Sat Dec 10, 2011 5:46 am

Re: External Host switches gone between 12.11 and 12.18

#8 Post by o01eg »

Thanks, changed parameters in the server's code.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-03-15.b3de094.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

Post Reply