Logistic Carts

by dorfl

Carts (mini cars) carry items around a network of painted paths.

Content
3 years ago
0.16 - 1.1
1.80K
Logistics

g Chance for Update?

3 years ago

Hello,

may I ask if there is any chance this great mod will be updated to the current game version 1.1?

3 years ago

Done, I think. Haven't had a chance to do a full 1.1 play through yet, so tread carefully...

3 years ago
(updated 3 years ago)

Thank you!

I tried this update and ran into following error when a cart was next to a constant comb. for setting the trunk filter:

Error while running event logicarts::on_tick (ID 0)
Value must be a dictionary in property tree at ROOT.parameters
stack traceback:

    [C]: in function '__newindex'
    __logicarts__/control.lua:1008: in function 'setCombinatorSignals'
    __logicarts__/control.lua:1914: in function 'runCar'
    __logicarts__/control.lua:2165: in function <__logicarts__/control.lua:2122>
3 years ago
(updated 3 years ago)

I found out what is going on here! :)
They changed LuaConstantCombinatorControlBehavior etc.:

    Changed 'control_behavior.parameters.parameters' to just 'control_behavior.parameters' for
    LuaDeciderCombinatorControlBehavior, LuaConstantCombinatorControlBehavior,
    and LuaArithmeticCombinatorControlBehavior.

I looked into control.lua and found two lines affected by this:
- line 1006:

    combinator.get_control_behavior().parameters = {
            parameters = parameters
    }

changed to: combinator.get_control_behavior().parameters = parameters
and line 1030:

    check(combinator.get_control_behavior().parameters.parameters)

changed to: check(combinator.get_control_behavior().parameters)
and now hold on tight: Logistic Carts is working so far! :D

2 years ago

I found out what is going on here! :)
They changed LuaConstantCombinatorControlBehavior etc.:

Thanks! bumping this thread because the fix saved my 200+hr game at a point where I Really Needed to use these carts :)

2 years ago

HOW DO I MAKE THESE CHANGES TO THE MOD?

2 years ago

HOW DO I MAKE THESE CHANGES TO THE MOD?

create a folder in your Factorio/Mods folder, that includes the zip file name followed by the version number, ex: "Factorio\mods\logicarts_0.3.0"
copy the contents of the zip into that folder, such that "control.lua" exists at its root: ex: "Factorio\mods\logicarts_0.3.0\control.lua"
delete the mod zip from the folder so the game will prefer to use your modded folder. make the above changes to line 1006 and 1030, then reload your save. job done :)

2 years ago

hello I made the changes you told me, but unfortunately it tells me that error in run car
thank you very much for your help

New response