[0.10.9] crash on game.player.gui.top.add
Posted: Wed Sep 10, 2014 1:39 pm
So I finally got around to do some modding, and as soon as I try to add a single GUI item, the game crashes on me :/
win 7 64 bit
this is my control.lua
no clue if it's bad code, but my guess is, it shouldn't crash the game 
code works fine when entered from the console ingame.
win 7 64 bit
this is my control.lua
Code: Select all
require "defines"
if game.player.gui.top.menu_top == nil then
game.player.gui.top.add({type="frame", name="menu_top", caption="Factorio Maps", direction="vertical"})
end

code works fine when entered from the console ingame.