Someone's reported a bug with my mod that I can't duplicate. It's happening when I try to access the screen property for the current player.
local player = game.players[event.player_index]
...
local function get_gui_root(player)
-- return player.gui.left
return player.gui.screen
end
I suppose they could be on an older version of Factorio. Any other reason that error would happen?
I can't duplicate the issue myself.
player.screen reporting Unknown position: screen
-
- Inserter
- Posts: 46
- Joined: Fri Aug 19, 2016 2:48 pm
- Contact:
-
- Inserter
- Posts: 46
- Joined: Fri Aug 19, 2016 2:48 pm
- Contact:
Re: player.screen reporting Unknown position: screen
I just realized they said they're running Factorio 0.17.43 - is that relevant?
Re: player.screen reporting Unknown position: screen
Yes, it is.Theanderblast wrote: ↑Sat Nov 16, 2019 11:24 pm I just realized they said they're running Factorio 0.17.43 - is that relevant?
Word of advice - tell people to update the game before starting investigating issues reported on ancient experimental releases.
Re: player.screen reporting Unknown position: screen
Also set your compatability with base to >=0.17.59 in info.json, so the mod will be marked as incompatible if someone tries to load it on an older version.
-
- Inserter
- Posts: 46
- Joined: Fri Aug 19, 2016 2:48 pm
- Contact:
Re: player.screen reporting Unknown position: screen
Excellent! Thanks much!