Multiplayer standalone server

Describe your experience with the latest version of FreeOrion to help us improve it.

Moderator: Oberlus

Forum rules
Always mention the exact version of FreeOrion you are testing.

When reporting an issue regarding the AI, if possible provide the relevant AI log file and a save game file that demonstrates the issue.
Post Reply
Message
Author
Magnate
Space Dragon
Posts: 425
Joined: Sat Nov 08, 2014 3:44 pm

Multiplayer standalone server

#1 Post by Magnate »

Hi all,

I'm considering using the freeoriond standalone server, but I notice that it's sensitive to player disconnection. Is there any way to change this? The big advantage of a standalone server is that I could leave it running on a server that runs 24/7, and players could connect and do turns as and when (like the Dominions games if anyone plays those). The important thing is that they can disconnect and reconnect without the server crashing or terminating or restarting, the server needs to just wait until all the turns are in and then progress to the next turn, whether players are connected or not.

I'm guessing this might be a significant piece of work to modify the current server code, if it assumes all players will remain connected for the entire game?

I ask because my friends and I can manage about 100 turns in an evening, but not a whole game, and the late game would be far nicer played asynchronously, because we can then take our time without boring each other.

CC

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

Re: Multiplayer standalone server

#2 Post by o01eg »

I've already planned this to implement https://github.com/freeorion/freeorion/issues/2243 and it requires to change not only server code but client code as well.
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

Magnate
Space Dragon
Posts: 425
Joined: Sat Nov 08, 2014 3:44 pm

Re: Multiplayer standalone server

#3 Post by Magnate »

Excellent news! When I have some free time I'll help out - I'm retiring in about 19 years!

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

Re: Multiplayer standalone server

#4 Post by o01eg »

Hi, are you still into game? I've mostly finished implementation of this standalone server: https://github.com/freeorion/freeorion/issues/2243
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

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

Re: Multiplayer standalone server

#5 Post by o01eg »

Last piece to support this was merged! Now it possible to start standalone server without presences of players.
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