Distribution Centers

by Sladki

Distribution Centers are structures capable to transfer items to adjacent inventories.

Content
3 years ago
0.17 - 1.1
569
Logistics

b Ingots in IR2

3 years ago

Dont't know if it is DC or IR2 thats causing it. Anyhow ingots like copper and iron are not transported in a chain of DC's. Only if they are placed directly in a DC it will be processed in a factory.

3 years ago
(updated 3 years ago)

That's odd. Try to rebuilt the chains so DCs will get new network ids.

3 years ago

ok rebuilding seems to work in a test case, next question, can i force through console command new network id's? cause rebuilding al dc's is a lot of work.
(17 daisy chained dc's with al wire connections)

3 years ago
(updated 3 years ago)

Could you send me the savegame please (via forum https://forums.factorio.com/memberlist.php?mode=viewprofile&u=73318 or discord (Sladki#3245)). It seems that I've messed up with DC network.

/c 
local function wire_connections(entity, wire, connections)
    connections = connections or {}
    connections[entity.unit_number] = {
        entity = entity,
        neighbours = {}
    }
    for _, connected in pairs(entity.circuit_connected_entities[wire]) do
        table.insert(connections[entity.unit_number].neighbours, connected)
        if not connections[connected.unit_number] then
            connections = wire_connections(connected, wire, connections)
        end
    end
    return connections
end
for _, dc in pairs(game.player.surface.find_entities_filtered({
    name = "sdc-dc-small",
    force = game.player.force
})) do
    for _, wire in pairs({ "red", "green" }) do
        local connections = wire_connections(dc, wire)
        for _, action in pairs({
            "disconnect_neighbour",
            "connect_neighbour"
        }) do
            local target = { wire = defines.wire_type[wire] }
            for _, connection in pairs(connections) do
                for _, neighbour in pairs(connection.neighbours) do
                    target.target_entity = neighbour
                    connection.entity[action](target)
                end
            end
        end
    end
end
3 years ago
(updated 3 years ago)

Could you please point the assembler where the problem is? I've tried to force craft rails and a DC requested iron ingots successfully.

3 years ago

i think i send you the fixed savegame. srry bout that.
Anyway thanks for your assistance.

3 years ago

Please send a savegame with the issue if possible.

3 years ago

im very sorry but all savegames with the issue are over written, i looked at another location but savegames were allready synchronized. Im to blaim here for not sending the savegame right away.

3 years ago

sent you another private message

3 years ago

Yep, this is a bug, thank you for the report. Try new version of the mod.

New response