What I'm doing wrong setting up multiplayer game?

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
User avatar
Oberlus
Cosmic Dragon
Posts: 5715
Joined: Mon Apr 10, 2017 4:25 pm

What I'm doing wrong setting up multiplayer game?

#1 Post by Oberlus »

Geoff the Medio wrote:Set up a multiplayer game with no human players, and just yourself as an observer or moderator. You can specify starting species, and have the turns run automatically.
I set up a multiplayer game using the GUI, myself as an observer, added 6 AIs and started the game. Then I got kicked out to the main screen with a "You are no longer connected to the server" or something like this.

I attach the freeorion(d).logs. It didn't go pass the first turn.
Attachments
freeoriond.log
(219.57 KiB) Downloaded 202 times
freeorion.log
(89.64 KiB) Downloaded 190 times

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

Re: What I'm doing wrong setting up multiplayer game?

#2 Post by o01eg »

17:39:24.595964 [debug] FSM : ServerFSM.cpp:239 : ServerFSM::HandleNonLobbyDisconnection : Lost connection to player #7, named "AI_7".
17:39:24.596019 [error] FSM : ServerFSM.cpp:258 : Player #7, named "AI_7"quit before empire was eliminated.
17:39:24.596031 [debug] FSM : ServerFSM.cpp:271 : ServerFSM::HandleNonLobbyDisconnection : All human players disconnected; server terminating.
17:39:24.596039 [error] FSM : ServerFSM.cpp:275 : Unable to recover server terminating.
Looks like AI_7 died. Do you have its log?
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

User avatar
Oberlus
Cosmic Dragon
Posts: 5715
Joined: Mon Apr 10, 2017 4:25 pm

Re: What I'm doing wrong setting up multiplayer game?

#3 Post by Oberlus »

Actually yes (lost the other logs since I started another non-multiplayer game with 6 AIs).
Attachments
AI_7.log
(76.09 KiB) Downloaded 202 times

User avatar
Vezzra
Release Manager, Design
Posts: 6095
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

Re: What I'm doing wrong setting up multiplayer game?

#4 Post by Vezzra »

Oberlus wrote:...added 6 AIs...
o01eg wrote:Looks like AI_7 died.
Um... something is not right here? With 6 AIs there shouldn't be an AI_7...?

User avatar
Oberlus
Cosmic Dragon
Posts: 5715
Joined: Mon Apr 10, 2017 4:25 pm

Re: What I'm doing wrong setting up multiplayer game?

#5 Post by Oberlus »

Maybe I added 7 AIs, now I can't tell...
I tried it again with 3 AIs and it worked fine (really laggy from turn 200 onwards). Sly vs Egassem vs Eaxaw. Sly pwns.

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

Re: What I'm doing wrong setting up multiplayer game?

#6 Post by dbenage-cx »

From server log, looks like 7 Ais were added (although AI_7 is just the player name).

Don't think you hit this particular issue, but if changing branches where the python files change, might try removing *.pyc files before starting the game.
e.g. on linux from freeorion directory: $ find . -name *.pyc -delete (omit -delete to verify what will be deleted)

I assume by lag, you mean during the turn update/saving steps, if not can you describe the lag (and ignore the other questions).
Do the updates still take as long if you completely exit the client and reload?
Is there a noticeable change when saving between different save formats (Options->Other): binary, non-binary compressed, non-binary non-compressed?
With a game running where update/save lag is an issue, and without exiting, please click Next Turn after each step and see if there is a large improvement (each likely to have some).
- Move all of the AI log files to a new folder (or delete).
- Change logging for "ai general" and "python" to Error
- Move freeorion.log and freeoriond.log to the new folder (or delete).
- Change all other logging options to Info

User avatar
Oberlus
Cosmic Dragon
Posts: 5715
Joined: Mon Apr 10, 2017 4:25 pm

Re: What I'm doing wrong setting up multiplayer game?

#7 Post by Oberlus »

I've already "played" four of such games with me as observer and no other error/problem arised.
I've got FO crashes/unexpected exits when I first start FO after recompiling and starting a new game (few: maybe half the times), that does not happen again after I try to start the same game after the crash/exit. SO maybe this problem I got here was related to this behaviour.

dbenage-cx wrote:I assume by lag, you mean during the turn update/saving steps, if not can you describe the lag (and ignore the other questions).
Do the updates still take as long if you completely exit the client and reload?
Is there a noticeable change when saving between different save formats [...]?
The lag is as follows:
Right after I click on Start, the game begins and turns pass at around 2-3 turns per second without me doing anything else. In fact, I wouldn't know how to stop/pause the game, sitreps just keep coming (BTW, I don't know who's empire are the sitreps I see, so I base my considerations on what I can see from Pedia and statistics graphs).
As the game progresses, the rate at which turns pass goes down. By turn 150 each turn requires several seconds, from turn 250 onwards it may take 15 seconds per turn. This numbers depends on the number of AIs in the game and on the map size (obviously). The GUI is properly responsive during all this process, although the mouse my have some delay to move once the game is very advanced (more specifically, I notice no delay when moving mouse at the first turns, I notice it from turn 150 onwards, and the delay only applies for a pair of seconds when I start moving the mouse, then it keeps responsive if I keep moving it).
If I open to the save/load/options menu, I see the load and save options greyed out, and the game keeps going on behind the menu (turns keep advancing, ships move around the map, sitreps keep getting updated, etc.). If then I click on resign, the usual "save game is in progress" appears but seems to take a long time, and I just click on exit without saving. If then I go to the auto folder to check saves, there is no file at all (not even autosaves from previous single-player games). Looks like FO is trying to save files but that's is somehow overriden by the multiplayer setting?

Next game I'll set autosave rate to every 10 turns (instead of default 1) and see how this affects the lag, and repeat that using binary/non-binary-compressed/non-binary-uncompressed.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: What I'm doing wrong setting up multiplayer game?

#8 Post by Geoff the Medio »

Oberlus wrote:I've already "played" four of such games with me as observer
[...]
In fact, I wouldn't know how to stop/pause the game, sitreps just keep coming
If you "play" as a moderator, you can control when the turns progress. As an observer, they will advance as soon as each AI has submitted its turn / orders.

LGM-Doyle
Programmer
Posts: 219
Joined: Mon Feb 29, 2016 8:37 pm

Re: What I'm doing wrong setting up multiplayer game?

#9 Post by LGM-Doyle »

This sounds like Issue #1816, where auto turn advance triggers the auto saves at the wrong time.

A workaround, as Geoff suggested, is to start as the Moderator and advance the turns manually.

Post Reply