OpenComputers

OpenComputers

49M Downloads

AE2 Auto Stocker Program no longer functioning after updating

thegenghistkhan opened this issue ยท 1 comments

commented

After updating the 1.12.2 pack to its latest version, which updated OC from 1.7.7 to 1.8.3, the AE2 auto stock program I have been using stopped working. I'm not versed in Lua enough to figure out what changed between versions that affected it, but if anyone here can spot what is hopefully a simple change to the code that is needed, please let me know.

Here is a screenshot of the error: https://gyazo.com/63fa2ed7e429b95e4891dd519fa5fd5a

Here is a link to the original code: https://pastebin.com/zB6k3Pii

The error revolves around a "number being compared to nil", with the CheckItemsAndCraft function being affected in particular.

commented

It's looking for a variable called n, which is used by Lua <= 5.2. Lua 5.3 depreciated it. What Lua version is your CPU using?

Changing that to if #meItem >= 1 then would likely fix it for 5.3+.