#Typing } in text box crash the game

1 messages ยท Page 1 of 1 (latest)

tired inlet
#

Hey, this was found by @hallow knoll :
As written in the title, typing a } in a text box will instantly crash the game.

earnest holly
#

Probably because it is something used to close a function in the code so it went weird about it ๐Ÿ˜„

tired inlet
#

Yep ! I guess the testing of the test boxes was with a full block of code so it had both { and } so the game didn't cared much ๐Ÿ˜„

blissful kite
#

Yup, we embed { and } characters in text strings to mark substrings that need to be localised. If the player types those characters into text boxes all sorts of bad stuff can happen. (you get a similar crash if you type {{, for example. Or if you type {text}, then it shows up as <<text>> in the edit box and cursor positioning and stuff all get very confused). For now, I'm just preventing players from typing or pasting { or } into text edit boxes, just to sidestep the issue for now; can come back to it later to figure out whether there's a more clever solution. ๐Ÿ™‚

#

(that fix will be coming to the 'test' build in a couple hours)

blissful kite
#

And that workaround is now live in the 'test' build.