The International Simutrans Forum

Development => Bug Reports => Topic started by: DThunder518 on August 08, 2026, 09:50:35 PM

Title: MOTD Limit for Windows Clients on network games?
Post by: DThunder518 on August 08, 2026, 09:50:35 PM
I started a new network game today (The Line) that announces to the listing. Everything was fine in on the server (Linux) and my main PC (also Linux). When I do public games, I always like to verify things are good with another OS, so I fired up a Windows laptop. Right after I would click on the game in the server listing, the Windows version of Simutrans would give an error:

FATAL ERROR during reading of "client2385-network.sve"
The file has been renamed to "client2385-network.sve-error"

loadsave_t::rdwr_str(): string too long (exceeded 260 characters)

Aborting program execution ...
Please try to restart Simutrans again!
PRESS ANY KEY


From some trial and error, I figured out that it was the text for my MOTD message within the game. If I got it under that 260 character limit, it was fine.

It's been years since I hosted a network game, but I don't remember that being an issue before. Especially since I pretty much recycled my old MOTD.

Is this intentional or a bug?
Title: Re: MOTD Limit for Windows Clients on network games?
Post by: ceeac on August 09, 2026, 08:20:00 AM
It was a bug and should be fixed in r12137. The reason was that the buffer for receiving the motd was too small on Windows (was PATH_MAX which is only 260 on Windows).