[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Update the Lua engine in Lua-scripted games with LuaJIT
- From: Johnson Lin <arch.jslin@...>
- Date: Tue, 26 Oct 2010 01:07:54 +0800
On Tue, Oct 26, 2010 at 12:55 AM, Mike Pall <mikelu-1010@mike.de> wrote:
> Errm ... if Civ5 doesn't use luaL_openlibs() then the jit.*
> library may not be loaded and the JIT compiler is not enabled.
> For LuaJIT 1.x this means you end up with plain Lua. :-)
>
> If this allows you to run your own Lua scripts, then try printing
> the version, e.g.: print(jit.version)
>
> --Mike
>
I yet to experiment if I can print anything to console in Civ5's lua
environment,
but a quick dependency walking shows that it did use luaL_openlibs()
to do something,
no luaopen_xxx is used. Guess that's a good sign.. : p