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
10 months ago
1.1
943
Logistics

b Unknown Error [Fixed]

10 months 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>

10 months 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?

10 months ago

I am going to need more info to reproduce this.

10 months 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>

10 months 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.

10 months 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

10 months ago

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

10 months ago

Hey this should be fixed now =)

10 months ago

I like your mod, very like!

10 months ago

Thanks

This thread has been locked.