Xander-v1 incompatibility crash (problem solved)

Adds new train stops forming a highly configurable logistic network.

Moderator: Optera

Post Reply
User avatar
McMaster
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue Nov 13, 2018 8:16 pm
Contact:

Xander-v1 incompatibility crash (problem solved)

Post 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"}

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2916
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Xander-v1 incompatibility crash (problem solved)

Post by Optera »

Thanks, added to next release.

Post Reply

Return to “Logistic Train Network”