Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signs with to many characters will crash game upon edit #5613

Closed
DorpsGek opened this issue Jun 24, 2013 · 2 comments
Closed

Signs with to many characters will crash game upon edit #5613

DorpsGek opened this issue Jun 24, 2013 · 2 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

vinnie_nl opened the ticket and wrote:

Hello guys, I managed to make a reproducable crash in OpenTTD. Just start a temperate map with the the custom attached gamescript. The gamescript will create a sign at the biggest town and biggest Coal mine. However I am lazy and used a string to fill the sign. This string however is:

"In this tutorial you will not learn anything.{}So instead you will get bored.{}{}... by this endless boring text.{}{}Click on next to continue."

To long for the sign or it contains enters, either way the game will produce the crash when the sign is clicked to edit.

Gamescript is just for testing purposes and the following code triggers the placement of sign:

local townlista = GSTownList();
townlista.Valuate(GSTown.GetPopulation);
townlista.Sort(GSList.SORT_BY_VALUE, false);
local townid_b = townlista.Begin();

GSSign.BuildSign(GSTown.GetLocation(townid_b), GSText(GSText.STR_PAGE1b));

Low priority since i am testing gamescripts and will edit the strings for signs accordingly.

Reported version: trunk
Operating system: Mac OS X


This issue was imported from FlySpray: https://bugs.openttd.org/task/5613
@DorpsGek
Copy link
Member Author

vinnie_nl wrote:

didn's see attachements. retry

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/5613#comment12328

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Fixed

In r25488


This comment was imported from FlySpray: https://bugs.openttd.org/task/5613

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant