I have made a test program, which I wrapper in one big function and this all works perfectly. when I execute the wrapping function, so I string.dump 'd it, and attempted to dofile() it, but my error is table index is nil? I have never seen that error before so I am not sure exactly what I am doing wrong...?
I just got the dumped file name (example: "dump.lua") and then did the following:
executeTest = dofile("dump.lua");
But i get: bios:14 table index is nil
I am not trying to execute the function either, this is just the dofile function... Anyone have any ideas?
Thanks in advance.
NOTE:
This is purely just based off of interest, I don't plan on doing anything stupid with it, just interested on what's possible.