Solved, use luajit to compile.
Evening.
I`m trying to run OTClient with compiled scripts lua, but the client can`t interpretate, and it returns the following message:
I`m using luac.exe to compilate, i have tried on versions (5.1.4, 5.2.0, 5.2.1, 5.2.3 and 5.3.3) without success.
Already change the source code at luainterface.cpp
to
Still no sucess.
Can someone help me?
Evening.
I`m trying to run OTClient with compiled scripts lua, but the client can`t interpretate, and it returns the following message:
Code:
Failed to load script 'init.lua': LUA ERROR: init.lua: cannot load incompatible bytecode
stack traceback:
[builtin#146]: at 0x60754a30
I`m using luac.exe to compilate, i have tried on versions (5.1.4, 5.2.0, 5.2.1, 5.2.3 and 5.3.3) without success.
Already change the source code at luainterface.cpp
Code:
int ret = luaL_loadbuffer(L, buffer.c_str(), buffer.length(), source.c_str());
to
Code:
int ret = luaL_loadbufferx(L, buffer.c_str(), buffer.length(), source.c_str(), "b");
Still no sucess.
Can someone help me?
Last edited: