[1.1.53] Crash changing laser turret energy source to lamp.energy_source

This subforum contains all the issues which we already resolved.
Post Reply
delaporte
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Jul 04, 2019 7:59 pm
Contact:

[1.1.53] Crash changing laser turret energy source to lamp.energy_source

Post by delaporte »

Got a crash when changing the energy_source of a laser turret to a lamps energy source. I don't really expect it to work however it does not throw an error during the data stage, instead it crashes when powering a laser turret.

minimum code to reproduce the crash:

Code: Select all

--data.lua
local lamp = data.raw["lamp"]["small-lamp"]
data.raw["electric-turret"]["laser-turret"].energy_source = lamp.energy_source

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.53] Crash changing laser turret energy source to lamp.energy_source

Post by Rseding91 »

Thanks for the report. I've changed it for the next release so setting electric priority on non-lamps to 'lamp' will result in an error at startup. The logic internally only works with actual lamp entities so that's the only fix.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”