Page 1 of 1

[Rseding91] [2.0.28] Crash when opening ghost with recipe set in create_entity

Posted: Mon Jan 06, 2025 6:08 am
by PennyJim
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:

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",
}
Previous log was me making the crash save
Current log was me opening the crash save

Re: [Rseding91] [2.0.28] Crash when opening ghost with recipe set in create_entity

Posted: Mon Jan 06, 2025 2:13 pm
by Rseding91
Thanks for the report. This is now fixed for the next release.