Using luac, I was finally able to get all this to work.
I used this phrase to compile with luac (there tester.lua is the name of the output file, and test.lua is the file that was compiled):
luac -o tester.lua test.lua
Everything works automatically, regardless of whether it is compiled or not. Now the problem is that anyone can put the compiled lua file in an uncompiled version, and it will work anyway, because the dofile reads both normal and compiled lua. What would you recommend as a solution, so that the makefile only reads compiled lua files, and not uncompiled ones?
source share