Тема: Critical error on game start / load: Unknown entity name: uranium-ore (Noxys Trees 0.5.2)
Hello, I’m getting an unrecoverable crash with Noxys Trees (version 0.5.2). The mod fails on the on_tick event because it tries to call count_entities_filtered for the entity uranium-ore, which is not found in the game.
Error log:
text
Переносить
Свернуть
Копировать
Error while running event Noxys_Trees::on_tick (ID 0)
Unknown entity name: uranium-ore
stack traceback:
[C]: in function 'count_entities_filtered'
Noxys_Trees/control.lua:746: in function 'spawn_trees'
Noxys_Trees/control.lua:797: in function 'process_chunk'
Noxys_Trees/control.lua:937: in function <Noxys_Trees/control.lua:882>
Environment:
Factorio version: 2.x (specify 2.0 or 2.1 here)
Mod version: Noxys Trees 0.5.2
Key conflicting mods: Angel’s Refining, Angel’s Exploration, Bob’s Mods (they replace/remove vanilla ores including uranium-ore)
Reproduction steps: Start game / load save with this mod list → crash almost immediately on tick.
It looks like the mod assumes the existence of the vanilla uranium-ore entity, but in setups with ore‑overhaul mods that entity is removed or renamed, causing the crash.
Could you please add a check for the entity existence before calling count_entities_filtered, or make the mod compatible with ore‑replacing mods?
Thank you!