game.surfaces is always nil (for modded surfaces)[1.1.101]
- BraveCaperCat
- Filter Inserter
- Posts: 407
- Joined: Mon Jan 15, 2024 10:10 pm
- Contact:
game.surfaces is always nil (for modded surfaces)[1.1.101]
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)
Creator of multiple mods, including Quality Assurance - My most popular one.
Go check them out with the first and second links!
I'll probably be wanting or giving help with modding most of the time I spend here on the forum.
Go check them out with the first and second links!
I'll probably be wanting or giving help with modding most of the time I spend here on the forum.
Re: game.surfaces is always nil (for modded surfaces)[1.1.101]
Can you please post some reproduction code?
If you want to get ahold of me I'm almost always on Discord.