Anfilt's Belt Utilities

by Anfilt

Handy Utility Belts to make working with belts a little more compact or cleaner. Includes a lane balancer and lane swapper in all the base game speeds.

Content
2 years ago
1.1
1.55K
Logistics

b Wrong speed

1 year, 9 months ago

I have a mod that changes the speed of the express belt (blue belt) to 60 items/s, but the utilities provided by this mod appears to be slower (maybe the 45 items/s from vanilla)!
I think that this mod should match the speed for the belts after any change!

Thanks.

1 year, 9 months ago

What mod is it? I might be able to make things work on my end. It's monday so probably this weekend when I am off from work, but some more details like the mod would be appreciated.

1 year, 9 months ago
(updated 1 year, 9 months ago)

I'm using this mod:

https://mods.factorio.com/mod/SchallBeltConfiguration

I tried to fix this mod using this code in the data-final-fixes stage:


local linked_belt_balance = data.raw["linked-belt"][generate_name("lane-balance-real")]
local linked_belt_swapper = data.raw["linked-belt"][generate_name("lane-swapper-real")]
local belt = data.raw["transport-belt"]["transport-belt"]

linked_belt_balance.speed = belt.speed
linked_belt_swapper.speed = belt.speed

log("Normal Speed: " .. belt.speed .. " -> " .. linked_belt_balance.speed .. " | " .. linked_belt_swapper.speed)

linked_belt_balance = data.raw["linked-belt"][generate_name("lane-balance-fast-real")]
linked_belt_swapper = data.raw["linked-belt"][generate_name("lane-swapper-fast-real")]
belt = data.raw["transport-belt"]["fast-transport-belt"]

linked_belt_balance.speed = belt.speed
linked_belt_swapper.speed = belt.speed

log("Fast Speed: " .. belt.speed .. " -> " .. linked_belt_balance.speed .. " | " .. linked_belt_swapper.speed)

linked_belt_balance = data.raw["linked-belt"][generate_name("lane-balance-express-real")]
linked_belt_swapper = data.raw["linked-belt"][generate_name("lane-swapper-express-real")]
belt = data.raw["transport-belt"]["express-transport-belt"]

linked_belt_balance.speed = belt.speed
linked_belt_swapper.speed = belt.speed

log("Express Speed: " .. belt.speed .. " -> " .. linked_belt_balance.speed .. " | " .. linked_belt_swapper.speed)


But it don't work!

Thanks.

1 year, 8 months ago

Any news about this bug?

Thanks.

New response