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

This subforum contains all the issues which we already resolved.
User avatar
PennyJim
Long Handed Inserter
Long Handed Inserter
Posts: 83
Joined: Wed Jan 18, 2023 3:49 am
Contact:

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

Post 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
Attachments
factorio-current.log
(9.61 KiB) Downloaded 4 times
factorio-previous.log
(10.15 KiB) Downloaded 6 times
_crash.zip
(1.98 MiB) Downloaded 5 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14781
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”