Belt Sorter

by judos

Sorting mechanism managing items from belts to belts. 3 Tiers available (+2 with other mods)

Content
2 years ago
0.13 - 1.1
39.4K
Logistics

b ✔️ v 0.8.0 - Server crash

3 years ago

Hi,
the mod version 0.8.0 run on Linux server 1.1.6 caused a server crash. here's the stack trace.

13429.731 Quitting: multiplayer error.
13429.730 Info ServerMultiplayerManager.cpp:780: updateTick(285890585) changing state from(InGame) to(Failed)
beltSorter/control.lua:59: in function <beltSorter/control.lua:58>"
beltSorter/libs/control/entities.lua:258: in function 'entities_build'
beltSorter/control/belt-sorter.lua:84: in function 'build'
beltSorter/control/belt-sorter-gui.lua:238: in function 'loadFilterFromConfig'
stack traceback:
beltSorter/control/belt-sorter-gui.lua:238: attempt to index local 'params' (a nil value)
Error while running event beltSorter::on_robot_built_entity (ID 14)
Please report this error to the mod author.
13429.730 Error ServerMultiplayerManager.cpp:91: MultiplayerManager failed: "The mod Belt sorter (0.8.0) caused a non-recoverable error.
beltSorter/control.lua:59: in function <beltSorter/control.lua:58>
beltSorter/libs/control/entities.lua:258: in function 'entities_build'
beltSorter/control/belt-sorter.lua:84: in function 'build'
beltSorter/control/belt-sorter-gui.lua:238: in function 'loadFilterFromConfig'
stack traceback:
beltSorter/control/belt-sorter-gui.lua:238: attempt to index local 'params' (a nil value)
Error while running event beltSorter::on_robot_built_entity (ID 14)
Please report this error to the mod author.
13429.727 Error MainLoop.cpp:1281: Exception at tick 285890585: The mod Belt sorter (0.8.0) caused a non-recoverable error.
13432.834 Goodbye
13432.831 Info UDPSocket.cpp:248: Socket closed
13432.831 Info UDPSocket.cpp:218: Closing socket
13432.422 Info ServerMultiplayerManager.cpp:780: updateTick(4294967295) changing state from(Failed) to(Closed)
13432.422 Info ServerMultiplayerManager.cpp:140: Quitting multiplayer connection.

3 years ago

If you want to give fixing it yourself a shot, here is an excerpt of a post I made from the v1.1 upgrade thread. I personally haven't gone back to see what else I could figure out yet and I'm only playing single player, but the error codes seem somewhat similar to what I was running into.

So far I've been able to get it to stop throwing an error so you can blueprint or copy a sorter with an active configuration, but it doesn't actually paste the configuration settings into the new entity. To do that I ended up remarking out almost the entire beltSorterGui.storeConfigToCombinator function (lines 207-229 specifically) in belt-sorter-gui.lua. I'm still looking, but as far as I could tell it didn't actually do anything anyway...created some local variables, did some things to one of them and sent the results back to the other. Everything except the ability to blueprint and/or paste an entity with settings seems to be working without it. (Pasting settings with the Copy/Paste in the sorter's gui works.)

2 years ago

This should be fixed in 0.9 !

New response