FreeOrion

Forums for the FreeOrion project
It is currently Mon Jul 16, 2018 12:50 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Thu Dec 21, 2017 4:19 pm 
Offline
Space Krill

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


Top
 Profile  
 
PostPosted: Thu Dec 21, 2017 9:15 pm 
Offline
Space Kraken

Joined: Sat Dec 10, 2011 5:46 am
Posts: 135
Quote:
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 2018-07-13.9a06376 0.4.8 RC2
Donates are welcome: BTC:14XLekD9ifwqLtZX4iteepvbLQNYVG87zK


Top
 Profile  
 
PostPosted: Thu Dec 21, 2017 9:39 pm 
Offline
Space Krill

Joined: Thu Dec 21, 2017 2:51 pm
Posts: 3
o01eg wrote:
Quote:

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.


Top
 Profile  
 
PostPosted: Thu Dec 21, 2017 10:07 pm 
Offline
Programmer

Joined: Sun Feb 14, 2016 12:08 am
Posts: 389
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.


Top
 Profile  
 
PostPosted: Fri Dec 22, 2017 12:26 am 
Offline
Space Krill

Joined: Thu Dec 21, 2017 2:51 pm
Posts: 3
dbenage-cx,

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


Top
 Profile  
 
PostPosted: Fri Dec 22, 2017 4:08 am 
Offline
Space Kraken

Joined: Sat Dec 10, 2011 5:46 am
Posts: 135
clgillis wrote:
o01eg wrote:
Quote:

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 2018-07-13.9a06376 0.4.8 RC2
Donates are welcome: BTC:14XLekD9ifwqLtZX4iteepvbLQNYVG87zK


Top
 Profile  
 
PostPosted: Sat Jan 13, 2018 12:15 am 
Offline
Programmer

Joined: Sun Feb 14, 2016 12:08 am
Posts: 389
Note in next test release, the mplobby-* options are renamed.

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


Top
 Profile  
 
PostPosted: Sun Jan 14, 2018 7:52 pm 
Offline
Space Kraken

Joined: Sat Dec 10, 2011 5:46 am
Posts: 135
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 2018-07-13.9a06376 0.4.8 RC2
Donates are welcome: BTC:14XLekD9ifwqLtZX4iteepvbLQNYVG87zK


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group