love2d 0.10.2 unable to load bytecode from luac 5.1
Posted: Sun Feb 26, 2017 5:16 pm
Hello everybody,
I'm beginning to learn Lua and the lovely love2d framework.
I've created a simple main.lua with the three main love functions (load, update, draw) and tested it running love somefolder (where the actual file is somefolder/main.lua). All is fine, the program runs, draws the graphics, reads the keyboard input and so forth.
Then I created anotherfolder and run luac -o anotherfolder/main.lua somefolder/main.lua and tried running love anotherfolder, but I got a message saying that the bytecode is incompatible (it also report some sort of hex address and mentions in function "require", in function "xpcall").
Luac is version 5.1. Love2d is version 0.10.2.
I tried searching through the web and these forums, also tried asking on IRC in the #lua and #luajit channels, no response so far.
Any pointer to help me understand the problem and to find a solution?
Thanks a lot for your attention!
I'm beginning to learn Lua and the lovely love2d framework.
I've created a simple main.lua with the three main love functions (load, update, draw) and tested it running love somefolder (where the actual file is somefolder/main.lua). All is fine, the program runs, draws the graphics, reads the keyboard input and so forth.
Then I created anotherfolder and run luac -o anotherfolder/main.lua somefolder/main.lua and tried running love anotherfolder, but I got a message saying that the bytecode is incompatible (it also report some sort of hex address and mentions in function "require", in function "xpcall").
Luac is version 5.1. Love2d is version 0.10.2.
I tried searching through the web and these forums, also tried asking on IRC in the #lua and #luajit channels, no response so far.
Any pointer to help me understand the problem and to find a solution?
Thanks a lot for your attention!