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

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
User avatar
BraveCaperCat
Filter Inserter
Filter Inserter
Posts: 489
Joined: Mon Jan 15, 2024 10:10 pm
Contact:

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

Post 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)
If you want to see the mods I've made, press one. If you need me to update a mod to 2.0, press two. If you're looking for QA, press three. If you've been waiting over 1 and a half years for Digital Age, bad luck.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16597
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Can you please post some reproduction code?
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Pending”