[Rseding91] [2.0.28] Crash when opening ghost with recipe set in create_entity
Posted: Mon Jan 06, 2025 6:08 am
When you make an entity-ghost and set its recipe all in create_entity, it then will crash when you open the ghost.
If you set it on the entity rather than in the create_entity function, it works fine. So it might just not be setting the quality level of the recipe properly.
This issue does survive the save/load cycle..
Quick replication command:
Previous log was me making the crash save
Current log was me opening the crash save
If you set it on the entity rather than in the create_entity function, it works fine. So it might just not be setting the quality level of the recipe properly.
This issue does survive the save/load cycle..
Quick replication command:
Code: Select all
/c
game.player.surface.create_entity{
name = "entity-ghost",
inner_name = "assembling-machine-2",
force = game.player.force,
position = game.player.position,
recipe = "assembling-machine-2",
}
Current log was me opening the crash save