Synchronization error - dedicated server

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
brummbaer76
Engineer
Engineer
Posts: 2
Joined: 04 Jan 2024 05:41

Synchronization error - dedicated server

Post by brummbaer76 »

Hello everyone,

I have two dedicated servers running. After several weeks without any problems, all of a sudden players can no longer log in because a synchronization error occurs.
The map is still being downloaded, you can see it for a few seconds, then the connection is lost.
The only error I found on the Internet was that the client was too slow to process the data.
The external players and I from several PCs can no longer access the server, which would then exclude the client.
Is there a way to locate and fix the error?
skc
Traffic Manager
Traffic Manager
Posts: 203
Joined: 17 Sep 2022 02:02

Re: Synchronization error - dedicated server

Post by skc »

Assuming you've got access to a terminal/console of the server itself (not the OTTD console), you should be able to dig up some log messages explaining what the OTTD server process is seeing.

Of course, the usual (and rather obvious) trick of 'turning it off and on' is assumed to have been tried, as well, without resolving the issue.
brummbaer76
Engineer
Engineer
Posts: 2
Joined: 04 Jan 2024 05:41

Re: Synchronization error - dedicated server

Post by brummbaer76 »

What I've found out so far.
If I pause the server using rcon, all users can connect and see the map, there vehicles etc.
If I start the game with unpause, the game crashes with a sync error.


The server is running under Windows Server, no messages in the event log.
The second dedicated server from openttd is still running normally on the system, no changes have been made.
User avatar
JGR
Tycoon
Tycoon
Posts: 2590
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: Synchronization error - dedicated server

Post by JGR »

brummbaer76 wrote: 04 Jan 2024 11:20 What I've found out so far.
If I pause the server using rcon, all users can connect and see the map, there vehicles etc.
If I start the game with unpause, the game crashes with a sync error.


The server is running under Windows Server, no messages in the event log.
The second dedicated server from openttd is still running normally on the system, no changes have been made.
Which version is this incidentally?
As a temporary fix, you can try saving the game from the server console/rcon, restarting the server, and then loading that same savegame from the server console/rcon.
Likely some cached state has become incorrect at the server and no longer matches what new clients calculate on load.
Ex TTDPatch Coder
Patch Pack, Github
brummbaer76
Engineer
Engineer
Posts: 2
Joined: 04 Jan 2024 05:41

Re: Synchronization error - dedicated server

Post by brummbaer76 »

The version ist 13.4

I was able to export the save, restart the server and load the save again.
Unfortunately, this action causes the users' PW to be lost. So everyone could now take over another user, or after a few months players without a PW will be automatically deleted.
How can you save a game with the user PW?
Because I don't know when the players will come back and if necessary be able to set a PW again.
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7337
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: Synchronization error - dedicated server

Post by Redirect Left »

brummbaer76 wrote: 07 Jan 2024 09:46 How can you save a game with the user PW?
This is intentionally not saved with the savegame, and it seems to have always been that way in openttd, despite it being brought up a few times. A fix has been floated and active but unresolved (not at all uncommon, unfortunately) since 2020.
An initial (from what i can tell) thing was raised in 2005 according to this reply, which... yeah, welcome to OpenTTD my friend.

As a workaround currently, you could password your server so only people you know can join to begin with, and then there's no risk of messing up other peoples companies & work, not without it being an inside job anyway.
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Synchronization error - dedicated server

Post by Eddi »

Saving passwords has to be done The Right Way(tm).

If nobody is putting in that work, it's better to not save them at all.
brummbaer76
Engineer
Engineer
Posts: 2
Joined: 04 Jan 2024 05:41

Re: Synchronization error - dedicated server

Post by brummbaer76 »

It's really a shame that there is no real solution here.
As I said, I don't know the people who play on my public server. That's why PW for the server doesn't help here.
And if the game is running and the companies are not protected with a PW, they will be automatically deleted or someone else can simply take over the company.

The error mentioned above has crept in again, I will now close the server and watch the second available one.

I thank everyone who has written so far.
Last edited by brummbaer76 on 17 Jan 2024 13:36, edited 1 time in total.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 4 guests