Page 1 of 1

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

Posted: Mon Jun 09, 2025 6:50 am
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 263 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 263 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 263 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.

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

Posted: Mon Jun 09, 2025 7:10 am
by boskid
Discussion on discord lead to discovery that it is fault of the mod destroying resources due to onChunkGenerated event. Not a bug.