[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Update the Lua engine in Lua-scripted games with LuaJIT
- From: David Kolf <kolf@...>
- Date: Sun, 24 Oct 2010 23:58:44 +0200
Johnson Lin wrote:
> So I'd like to ask some newbie questions:
> 1. If a program was originally embedded with vanilla Lua 5.1.x, where
> LuaJIT 1.1.6 actually
> worked substituting the original Lua dll, in theory LuaJIT2 should've
> worked as well, right?
I suspect your game is using pre-compiled bytecode for Lua 5.1. As far
as I heard, LuaJIT 1 uses the same bytecode but LuaJIT 2 has its own
bytecode so it isn't completely compatible with Lua 5.1.