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

This subforum contains all the issues which we already resolved.
Post Reply
mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

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

Post 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>

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

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

Post 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?

mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

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

Post 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

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

Post 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

mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

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

Post 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.

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

Post 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.

User avatar
distortions864
Fast Inserter
Fast Inserter
Posts: 110
Joined: Thu Apr 20, 2017 12:56 am
Contact:

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

Post by distortions864 »

This is fantastic! I was going to ask for an option to have it close.

Post Reply

Return to “Resolved Problems and Bugs”