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 Unknown Error [Fixed]

2 years ago

I get this error when put balancer or swapper:

Error while running event beltutils::on_built_entity (ID 6)
beltutils/prototypes/control-helpers.lua:67: attempt to index local 'top' (a nil value)
stack traceback:
beltutils/prototypes/control-helpers.lua:67: in function 'build_visible_1_by_2'
beltutils/prototypes/lane_swapper/control.lua:95: in function 'build_swapper'
beltutils/prototypes/lane_swapper/control.lua:163: in function 'entry'
beltutils/control.lua:63: in function 'call_all_events'
beltutils/control.lua:92: in function <beltutils/control.lua:91>

2 years ago

Do you have a few more details? The code where that is having an error is creating an entity, but it would only be nil if the game failed to make the entity. Do you have some other mods installed?

2 years ago

I am going to need more info to reproduce this.

2 years ago

I wanted record video about error, but got new error.

https://youtu.be/8kr6Ei6lWwQ

Error while running event beltutils::on_player_mined_entity (ID 67)
beltutils/prototypes/lane_balancer/control.lua:195: bad argument #1 of 2 to 'pairs' (table expected, got nil)
stack traceback:
[C]: in function 'pairs'
beltutils/prototypes/lane_balancer/control.lua:195: in function 'handle_mined'
beltutils/prototypes/lane_balancer/control.lua:258: in function 'entry'
beltutils/control.lua:63: in function 'call_all_events'
beltutils/control.lua:110: in function <beltutils/control.lua:108>

2 years ago

Please make sure your running the latest version of the mod. That error and video both are from version 0.0.5. Although, I still checked the area of code that this happened in, and just pushed an update for it.

2 years ago

I found problem mod. It is "aai-programmable-vehicles"
(https://mods.factorio.com/mod/aai-programmable-vehicles)

Pls watch my video: https://youtu.be/aPOR78PpZcI

2 years ago

Thanks, I will look into it to see if I can make my mod work with that mod properly.

2 years ago

Hey this should be fixed now =)

2 years ago

I like your mod, very like!

2 years ago

Thanks

This thread has been locked.