Page 1 of 1

[1.1.48] migration crash electric pole -> simple-entity-with-force

Posted: Sat Dec 04, 2021 8:42 pm
by Honktown
Set-up:
set up
Start of error:
power_pole_migration_crash.log
(6.92 KiB) Downloaded 166 times
Only code used:

Code: Select all

if true then
	local sep = data.raw["electric-pole"]["small-electric-pole"]
	data.raw["electric-pole"]["small-electric-pole"] = nil
	sep.type = "simple-entity-with-force"
	sep.fast_replaceable_group = nil
	sep.next_upgrade = nil
	data:extend{sep}
end
Mod to reproduce:
power_pole_migration_crash_0.0.1.zip
(917 Bytes) Downloaded 165 times
Save which crashes on migration (two power poles):
power_pole_bug.zip
(292.66 KiB) Downloaded 94 times
Save which does not crash (single pole):
power_pole_bug_single_pole.zip
(293.55 KiB) Downloaded 97 times

A modder was making wind turbines and changing some prototypes around.

What was expected: entity removal or migration. Not crash.

Re: [1.1.48] migration crash electric pole -> simple-entity-with-force

Posted: Sat Dec 04, 2021 9:03 pm
by Loewchen