Nathan.S wrote: ↑Fri Jan 12, 2024 19:30
Were you able to change pages in the past?
Looking at the error and code this suggests that the system_id was somehow removed from the controller, which shouldn't be possible as that is stored in the node metadata, and has been since I initially posted the mod.
If you create a new system do you have the same error?
Data is stored in mod storage, if you are using the files backend can you check in the world directory and see if there is a file called asrs_systems? If there is check to see if the file contents are something more than
return {}
It is possible the file got corrupted maybe.
Worse case you should be able to pull out all the items from the first page, sort the inventory, and remove the first page's inventory again, etc etc. Not optimal but it should work.
I can replicate the error if I remove the asrs_systems file is removed, and can remove inventory in the above mentioned fashion. I am at a loss as to how the error could have been triggered. It really shouldn't be possible unless somehow the controller was moved and the meta wasn't moved with it, but any mods that provide mechanics to move nodes should really be moving the meta with the nodes.
Thank you very much for your reply, Nathan. I'm sorry I didn't answer sooner. I didn't realize that the topic wouldn't be automatically subscribed if I made a comment.
I was able to use all the buttons while I was setting it up and trying to figure it out.
I was able to move all the stuff out of the controller by removing items from the initial inventory screen like you suggested. I didn't think I'd be able to use the sort button without crashing the server again, but exiting and re-opening the interface showed what I suppose would be on the second page if I could change pages.
I'm not sure what the "files backend" is, but there is an asrs_systems file in the world directory. It only contains
The only way I had moved it was by completely disassembling and reassembling it.
I created a new ASRS system on the same server and tried to reproduce the error with a second system by following the same steps...
- Controller + 8 lifts + 10 storage cells
- Load it up using a distributor and tubes (Techage (tubelib2?))
- Start clickin' buttons.
I wasn't able to reproduce
the same issue, but I discovered a new one. All the buttons work on the second system, but now if I search for an item and move it to my inventory the server crashes with the following error message:
Code: Select all
2024-01-14 18:05:34: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'asrs' in callback nodemeta_inventory_OnTake(): D:\Programs\minetest-5.8.0-win64\bin\..\mods\asrs/nodes.lua:79: attempt to call a string value
2024-01-14 18:05:34: ERROR[Main]: stack traceback:
2024-01-14 18:05:34: ERROR[Main]: D:\Programs\minetest-5.8.0-win64\bin\..\mods\asrs/nodes.lua:79: in function <D:\Programs\minetest-5.8.0-win64\bin\..\mods\asrs/nodes.lua:76>
If I restart the server after this, I'll find that the item I was trying to move is in my inventory, but it's also still in the ASRS.
I've also noticed after setting up this second system that the first system I set up doesn't crash the server when I click the buttons any more, but it also presents the search, crash, duplicate bug.
After all this, with both ASRS systems set up and the server down after crashing, I looked in asrs_systems again and there's a little more in there:
Code: Select all
return {Vince_1={max_inv=200,name="Vince",nodes=23,inv_pos={y=-5,z=-74,x=-72}}}
Let me know if you need more information or you want me to do anything to try and troubleshoot this.