Page 1 of 1

Xander-v1 incompatibility crash (problem solved)

Posted: Wed Mar 13, 2019 10:59 pm
by McMaster
LTN crashes when game loading with (alive again) xander-v1 mod.

Because small-lamp in xander has upgrade

data.raw.lamp["small-lamp"].next_upgrade = "lamp-2"

I am solved a problem in LTN "entities.lua"

local ltn_stop_in = copyPrototype("lamp", "small-lamp","logistic-train-stop-input")
ltn_stop_in.icon = "__LogisticTrainNetwork__/graphics/icons/train-stop.png"
ltn_stop_in.icon_size = 32
ltn_stop_in.minable = nil -- problem was here
ltn_stop_in.next_upgrade = nil -- problem solved
ltn_stop_in.selection_box = {{-0.5, -0.5}, {0.5, 0.5}}
ltn_stop_in.collision_box = {{-0.15, -0.15}, {0.15, 0.15}}
ltn_stop_in.energy_usage_per_tick = "10W"
ltn_stop_in.light = { intensity = 1, size = 6 }
ltn_stop_in.energy_source = {type="void"}

Re: Xander-v1 incompatibility crash (problem solved)

Posted: Thu Mar 14, 2019 6:23 am
by Optera
Thanks, added to next release.