Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Version of OpenTTD
No crash, instead the game deletes old news when the hard limit of 65,535 news messages is reached.
When you generate more than 65,535 news messages while having the news message history window open, the game crashes with
Steps to reproduce
There are multiple ways to generate more than 65,535 news messages and crash the game.
The assert triggers inside the
With OpenTTD 1.9.2 stable, I can give myself £40 billion, buy exclusive transport rights, fund road reconstruction 64,000 (or 65,500) times, scroll the news message history window all the way down, fund road reconstruction another 4,000 (or 100) times, and the scrollbar will disappear. When I try to scroll again, it will appear that all of the 65,536 oldest news messages got deleted at once, leaving only the newest messages. Note that after 6 months, everything resolves itself due to OpenTTD only keeping the 32 recent news message. In those cases, OpenTTD did not crash.