[0.11.11]Wrong gui style results in crash
Posted: Thu Jan 15, 2015 10:06 am
When using a wrong style type for a gui element, and that element gets displayed, Factorio crashes without any message.
To reproduce:
Haven't tried every combination of type and style type. Guess it's because some gui types expect a certain key (default_background/graphical_set?) in the style and cause the crash when not present? E.g. type="label" works with frame/checkbox/button style but type button crashes with label style.
Win7 64, no mods
To reproduce:
Code: Select all
/c game.player.gui.left.add({type="label", name="crashme", caption="You will never see", style="table_style"})
or
/c game.player.gui.left.add({type="button", name="crashme", caption="You will never see", style="label_style"})
Win7 64, no mods