[2.0.50] Incorrect error checking with nested GUI style definitions

We are aware of them, but do not have solutions that don't cause other issues. They go here in order not to take space in the main bug thread list.
Osmo
Long Handed Inserter
Long Handed Inserter
Posts: 70
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

[2.0.50] Incorrect error checking with nested GUI style definitions

Post 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 324 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 324 times
This happens in different styles defined inside other styles.
Attachments
factorio-current.log
(6.68 KiB) Downloaded 20 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15718
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Minor issues”