Page 1 of 1

[kovarex] [0.15.18] game crashes when loading a sprite-button

Posted: Fri Jun 02, 2017 8:02 am
by mophydeen
adding this code to control.lua gives error while loading the map.

Code: Select all

        player.gui.left.add{
            type = "sprite-button",
            name = "sl-extended-bp-request-btn",
            sprite="technology/character-logistic-slots",
            tooltip="blueprint request"
        }

Code: Select all

Error while running event level::on_player_joined_game (ID 43)
Unknown sprite "technology/character-logistic-slots"
stack traceback:
	/home/sl/.factorio/temp/currently-playing/sl_utils.lua:694: in function 'sl_gui_open_frame'
	/home/sl/.factorio/temp/currently-playing/sl_utils.lua:435: in function 'sl_on_player_joined_game'
	/home/sl/.factorio/temp/currently-playing/control.lua:130: in function </home/sl/.factorio/temp/currently-playing/control.lua:119>

Re: [0.15.18] game crashes when loading a sprite-button

Posted: Fri Jun 02, 2017 9:02 am
by Klonan
mophydeen wrote:adding this code to control.lua gives error while loading the map.

Code: Select all

        player.gui.left.add{
            type = "sprite-button",
            name = "sl-extended-bp-request-btn",
            sprite="technology/character-logistic-slots",
            tooltip="blueprint request"
        }

Code: Select all

Error while running event level::on_player_joined_game (ID 43)
Unknown sprite "technology/character-logistic-slots"
stack traceback:
	/home/sl/.factorio/temp/currently-playing/sl_utils.lua:694: in function 'sl_gui_open_frame'
	/home/sl/.factorio/temp/currently-playing/sl_utils.lua:435: in function 'sl_on_player_joined_game'
	/home/sl/.factorio/temp/currently-playing/control.lua:130: in function </home/sl/.factorio/temp/currently-playing/control.lua:119>
Does it give just a script error?

Or is there a factorio crash?
Could you attach a log?

Re: [0.15.18] game crashes when loading a sprite-button

Posted: Fri Jun 02, 2017 9:41 am
by mophydeen
Klonan wrote:
mophydeen wrote:adding this code to control.lua gives error while loading the map.

Code: Select all

        player.gui.left.add{
            type = "sprite-button",
            name = "sl-extended-bp-request-btn",
            sprite="technology/character-logistic-slots",
            tooltip="blueprint request"
        }

Code: Select all

Error while running event level::on_player_joined_game (ID 43)
Unknown sprite "technology/character-logistic-slots"
stack traceback:
	/home/sl/.factorio/temp/currently-playing/sl_utils.lua:694: in function 'sl_gui_open_frame'
	/home/sl/.factorio/temp/currently-playing/sl_utils.lua:435: in function 'sl_on_player_joined_game'
	/home/sl/.factorio/temp/currently-playing/control.lua:130: in function </home/sl/.factorio/temp/currently-playing/control.lua:119>
Does it give just a script error?

Or is there a factorio crash?
Could you attach a log?
game crashes completely.

map save: sl-utils.lua (line 700)
https://www.dropbox.com/s/etbov066ux4fy ... x.zip?dl=1

log:
factorio-current.log
(152.5 KiB) Downloaded 156 times

ty

Re: [0.15.18] [kovarex] game crashes when loading a sprite-button

Posted: Fri Jun 02, 2017 10:41 am
by kovarex
So If I understand it correct, the error is, that the headless server doesn't close when it encounters an error, but just continue being in a failed state.
I'm fixing it for 0.15.19

Re: [0.15.18] [kovarex] game crashes when loading a sprite-button

Posted: Fri Jun 02, 2017 11:31 am
by mophydeen
kovarex wrote:So If I understand it correct, the error is, that the headless server doesn't close when it encounters an error, but just continue being in a failed state.
I'm fixing it for 0.15.19

I'm just running the server in my steam factorio version while playing it.
when relaunching the edited save game it crashes the game at the start of the map (within 1 second of being in the map)

the dropbox link is the save file.

Re: [kovarex] [0.15.18] game crashes when loading a sprite-button

Posted: Fri Jun 02, 2017 11:44 am
by kovarex
Yes, I tested it on the save. And I fixed that the headless server didn't close when it encountered a script error. Other things worked properly.

Re: [kovarex] [0.15.18] game crashes when loading a sprite-button

Posted: Sun Jun 04, 2017 2:25 pm
by distortions864
This is fantastic! I was going to ask for an option to have it close.