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

Bugs which we just recently fixed in our development version and will reach you in the next release.
User avatar
Osmo
Filter Inserter
Filter Inserter
Posts: 271
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

[Genhis][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 21 times
User avatar
Osmo
Filter Inserter
Filter Inserter
Posts: 271
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.
Genhis
Factorio Staff
Factorio Staff
Posts: 929
Joined: Wed Dec 24, 2014 8:19 am
Contact:

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

Post by Genhis »

Thanks for the report. The tag was accidentally exposed during a refactoring, so I removed it for the next release.
Post Reply

Return to “Resolved for the next release”