Page 1 of 1

[1.1.50] Crash renaming trainstation (agui::TextBox::findWordBoundaryInText)

Posted: Wed Jan 12, 2022 8:06 pm
by Galapagon
Bug discovered in moded gameplay, but tested in vanilla freeworld and confirmed that the bug is reproduced.

A train station is named Copper ore
Select a second station, start a rename, and select the original colored station's name
Change the station name to CAopper Ore
Delete the C from the beginning, then highlight "opper Ore" by shift, right arrow to highlight the text, then attempt typing a new name
at this point the game crashes

Re: [1.1.50] Crash renaming trainstation (agui::TextBox::findWordBoundaryInText)

Posted: Wed Jan 12, 2022 8:21 pm
by Galapagon
One player reported that they were able to change the name but crashed the game pressing right arrow after typing name

Re: [1.1.50] Crash renaming trainstation (agui::TextBox::findWordBoundaryInText)

Posted: Wed Jan 12, 2022 8:49 pm
by UZERE
Galapagon wrote: Wed Jan 12, 2022 8:21 pm One player reported that they were able to change the name but crashed the game pressing right arrow after typing name
It seems I actually pressed ctrl+→ then
Galapagon wrote: Wed Jan 12, 2022 8:06 pm by shift, right arrow to highlight the text
Looks like using ctrl+shift+→ to highlight the text is important, and it must be pressed one extra time

Re: [1.1.50] Crash renaming trainstation (agui::TextBox::findWordBoundaryInText)

Posted: Mon Jan 17, 2022 11:51 am
by boskid
Thanks for the report. Issue should be now fixed for 1.1.51.