[2.0.76] Crash using [sprite] rich text (TextRenderer::getSubstringWidth)

Post your bugs and problems so we can fix them.
User avatar
Osmo
Filter Inserter
Filter Inserter
Posts: 265
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

[2.0.76] Crash using [sprite] rich text (TextRenderer::getSubstringWidth)

Post by Osmo »

- Create a new world
- Input the following commands, in order

Code: Select all

/c game.player.gui.screen.add{type = "label", name = "label", caption = "[sprite][/sprite]"}
/c game.player.gui.screen.label.caption = "[sprite=]d[/sprite]"
/c game.player.gui.screen.label.caption = "[sprite=][][/sprite]"
/c game.player.gui.screen.label.caption = "[sprite=][/sprite]"
/c game.player.gui.screen.label.caption = "[sprite=]dhawudhuiaw[/sprite]"
- Game crashes
Attachments
factorio-current.log
(15.27 KiB) Downloaded 4 times
User avatar
Osmo
Filter Inserter
Filter Inserter
Posts: 265
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: [2.0.76] Crash using [sprite] rich text (TextRenderer::getSubstringWidth)

Post by Osmo »

Additionally i'd like to note that [sprite] rich text tag isn't documented on the wiki, and i've got word that its internal and isn't supposed to be taken from user input, and maybe shouldn't be highlighted as rich text. That's a diffrent problem, but might be relevant.
Post Reply

Return to “Bug Reports”