Only Train Transportation

by tigar

Restrictions and benefits that you can set to encourage the massive use of trains

Content
2 years ago
0.16 - 1.1
264
Logistics

g Recipe Error "xxx"

5 years ago
(updated 5 years ago)

Using data.raw["recipe"]["xxx"] results in an error. Instead, try this:

if (mods["LogisticTrainNetwork"]) then
if settings.startup["starting-rail"].value then
data.raw["recipe"]["logistic-train-stop"].enabled = true

end
if settings.startup["free-rail"].value then
data.raw["recipe"]["logistic-train-stop"].ingredients = {}
end
end

Thanks!

5 years ago

Aff I send the wrong file, from the folder factorio0.17.6 and the right one is the 0.17.12.. ehehehe.. i will send again now...

The code i made was:

if (mods["LogisticTrainNetwork"]) then
if settings.startup["starting-rail"].value then
data.raw["recipe"]["logistic-train-stop"].enabled = true

end
if settings.startup["free-rail"].value then
data.raw["recipe"]["logistic-train-stop"].ingredients = {}

end
end

5 years ago

is there any other recipe? I just upload again the 0.0.7 version, if you can test please!

5 years ago

I don't think so. I looked up the recipes in LTN, and the only recipe I found was logistic-train-stop.

5 years ago

THANKS!!! Love your mods... I always use Actual Craft Time!

5 years ago
(updated 5 years ago)

.

New response