Page 1 of 1

[2.0.50] Incorrect error checking with nested GUI style definitions

Posted: Mon May 19, 2025 5:43 am
by Osmo
Create a mod with the following code in data.lua:

Code: Select all

data.raw["gui-style"].default.new_style = {
    type = "frame_style",
    vertical_flow_style = {
        type = "vertical_flow_style",
        parent = "nonexistent_style"
    }
}
Game errors after loading sprites with the following message:
изображение.png
изображение.png (27.54 KiB) Viewed 418 times
This is not the usual mod error, which looks like this if a non-nested style is improperly defined:
изображение.png
изображение.png (30.01 KiB) Viewed 418 times
This happens in different styles defined inside other styles.

Re: [2.0.50] Incorrect error checking with nested GUI style definitions

Posted: Mon May 19, 2025 12:58 pm
by Rseding91
Thanks for the report. Looking into this - I don't see a way to make this work with the custom error logic. By the time the styles are being connected it has long passed the stage where minimal mode works.