[2.0.55] Entity doesn't appear in game after LuaSurface::create_entity() returns a valid entity

Bugs that are actually features.
sOvr9000
Inserter
Inserter
Posts: 27
Joined: Mon Jun 27, 2016 5:43 am
Contact:

[2.0.55] Entity doesn't appear in game after LuaSurface::create_entity() returns a valid entity

Post by sOvr9000 »

Here's the entity in the debugger, appearing to exist at a certain position.
06-08-2025, 23-21-54.png
06-08-2025, 23-21-54.png (39.84 KiB) Viewed 255 times
Here is my character standing at the position where the entity was created but made invisible somehow. My selection box is not on the position in question.
06-08-2025, 23-23-13.png
06-08-2025, 23-23-13.png (1.11 MiB) Viewed 255 times
To be very clear about the issue, resource entities are supposed to appear at these red dots in this image, as the return value of create_entity() suggests, but they're missing.
06-08-2025, 23-32-19.png
06-08-2025, 23-32-19.png (711.73 KiB) Viewed 255 times
The entities that should exist but don't are not findable with LuaSurface::find_entities(), so they seem to be vanishing.

This issue is reproducible 100% of the time with default mod and map settings using my mod that I've attached.
Attachments
hextorio_1.0.0.zip
(18.16 MiB) Downloaded 22 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4028
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.55] Entity doesn't appear in game after LuaSurface::create_entity() returns a valid entity

Post by boskid »

Discussion on discord lead to discovery that it is fault of the mod destroying resources due to onChunkGenerated event. Not a bug.
Post Reply

Return to “Not a bug”