News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

MOTD Limit for Windows Clients on network games?

Started by DThunder518, August 08, 2026, 09:50:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DThunder518

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?

ceeac

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).