• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Otclint Can't read compiled lua(bytecode)

Haizen

New Member
Joined
Sep 16, 2007
Messages
26
Reaction score
2
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:

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:
Back
Top