Advanced Belts

by Buggi

Mod adds 3 new tiers of belts, splitters and undergrounds belts past Turbo tier. Has support for loaders from other mods. (AAI, Deadlock, etc)

Content
a month ago
2.0
4.19K
Logistics

b Collision mask

6 months ago

Hi!
When I run it together with (https://mods.factorio.com/mod/deadlock-beltboxes-loaders) it gives me this error.

Error while running setup for entity prototype "turbo-transport-belt-loader" (loader-1x1): next_upgrade target (extreme-belt-loader) must have the same collision mask.
6 months ago

Added code at the end, in the file "data-final-fixes.lua"

        end

        if data.raw["loader-1x1"]["extreme-belt-loader"] then
            data.raw["loader-1x1"]["extreme-belt-loader"].collision_mask = data.raw["loader-1x1"]["turbo-transport-belt-loader"].collision_mask
        end
        if data.raw["loader-1x1"]["ultimate-belt-loader"] then
            data.raw["loader-1x1"]["ultimate-belt-loader"].collision_mask = data.raw["loader-1x1"]["extreme-belt-loader"].collision_mask
        end
        if data.raw["loader-1x1"]["high-speed-belt-loader"] then
            data.raw["loader-1x1"]["high-speed-belt-loader"].collision_mask = data.raw["loader-1x1"]["ultimate-belt-loader"].collision_mask
        end
        if data.raw.furnace["extreme-belt-beltbox"] then
            data.raw.furnace["extreme-belt-beltbox"].collision_mask = data.raw.furnace["turbo-transport-belt-beltbox"].collision_mask
        end
        if data.raw.furnace["ultimate-belt-beltbox"] then
            data.raw.furnace["ultimate-belt-beltbox"].collision_mask = data.raw.furnace["extreme-belt-beltbox"].collision_mask
        end
        if data.raw.furnace["high-speed-belt-beltbox"] then
            data.raw.furnace["high-speed-belt-beltbox"].collision_mask = data.raw.furnace["ultimate-belt-beltbox"].collision_mask
        end
    end
end
4 months ago

Do you have Maraxis mod installed? It seems to mess with the collision masks.

4 months ago

If not, this error/bug is fundamentally with Deadlocks mod as all this mod does is add the tiers via their API call. Messing with values after the fact can lead to crazy behavior if they or someone else edits it again.

Best to let the mods who provide the API call fix their code, or if you have Maraxis installed, that mod needs to fix their side and ensure it plays nicely. I don't want to step on any other mods as a band-aid.

4 months ago

Do you have Maraxis mod installed? It seems to mess with the collision masks.

No, I don't have this mod.

New response