[2.0.50] Incorrect error checking with nested GUI style definitions
Posted: Mon May 19, 2025 5:43 am
Create a mod with the following code in data.lua:
Game errors after loading sprites with the following message:
This is not the usual mod error, which looks like this if a non-nested style is improperly defined:
This happens in different styles defined inside other styles.
Code: Select all
data.raw["gui-style"].default.new_style = {
type = "frame_style",
vertical_flow_style = {
type = "vertical_flow_style",
parent = "nonexistent_style"
}
}