Page 1 of 1

game.surfaces is always nil (for modded surfaces)[1.1.101]

Posted: Wed Jan 24, 2024 11:46 pm
by BraveCaperCat
When using a modded surface, the surface is either never created, or the game.surfaces entry for the modded surface is nil (non-existant). This means that game.get_surface is ALSO nil, which can break code designed to create surfaces if they don't already exist. (This doesn't apply to the 'nauvis' surface, since it always exists)

Re: game.surfaces is always nil (for modded surfaces)[1.1.101]

Posted: Thu Jan 25, 2024 1:43 am
by Rseding91
Can you please post some reproduction code?