This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
LDDestroier's profile picture

Error is just "18"...help!

Started by LDDestroier, 19 August 2016 - 02:20 AM
LDDestroier #1
Posted 19 August 2016 - 04:20 AM
I'm trying to fix PROGDOR so it works with big ol' files, but it crashes instead. It's what I presume to be a 'too long without yield' error, but when doing pcall(), all it returns for the error message is '18'. It doesn't give me a line number (and no, it's not line 18.)

Help! What does it mean? Has anyone else encountered it?

EDIT: For reference, the thing I am specifically doing is installing the Axiom OS, going to shell, downloading Progdor, running 'progdor . axos', and saying 'N' to including self or read-only files. The first file it seeks and tries to compress is 'sys.axs', which is 2467 lines and 108517 bytes.
Edited on 19 August 2016 - 02:28 AM
valithor #2
Posted 19 August 2016 - 04:38 AM
Little annoying to have to go and search for random programs to be able to reproduce error… but I ran everything exactly as you described, and got a too long without yielding error on line 47. The number errors can result from numerous different things, and are not always related to the specific code on the specific computer (especially if you are testing on a server).
LDDestroier #3
Posted 19 August 2016 - 04:40 AM
Little annoying to have to go and search for random programs to be able to reproduce error… but I ran everything exactly as you described, and got a too long without yielding error on line 47. The number errors can result from numerous different things, and are not always related to the specific code on the specific computer (especially if you are testing on a server).

Weird! I was testing on CCEmuRedux. Maybe that's why it gave me that error. Thanks.

EDIT: I tried again, and it gave me the correct error, too long without yielding. How odd. Anyway, I fixed the problem by adding a yielding function in the middle of a loop.
Edited on 19 August 2016 - 02:52 AM