Belt Balancer 2 deprecated


Adds Balancer Parts, that can be put together, to balance all adjusting lanes. Updated for better performance and 2.0

Utilities
2 years ago
2.0
19.6K
Logistics

b Factorio 2.1: one-line fix (LuaEntity.neighbours was removed)

13 days ago

Belt Balancer 2 (2.0.9) doesn't load on Factorio 2.1 because of factorio_version. Raising that to 2.1 in info.json makes it load, but rotating an underground belt would then crash, because 2.1 removed LuaEntity.neighbours. The fix is one line in control.lua (around line 183, in the on_player_rotated_entity handler):

-- before
local neighbour = e.entity.neighbours
-- after
local neighbour = e.entity.underground_belt_neighbour

With that and "factorio_version": "2.1", it runs for me on 2.1.21: a save with about 90 balancer parts loads and runs without script errors. I haven't tested every interaction in play.

The GitHub repo is archived, so I'm posting it here for the author and for anyone patching the mod locally.

a day ago

Really thanks for the solution.

New response