Page 1 of 1

Lua script

Posted: Mon Aug 20, 2012 1:38 pm
by twisted
Can someone help me decompile the attached lua script?

luadec always comes back with 'luadec: boot.luac:1: unexpected symbol near 'char(2)'' which isn't very helpful.
I've tried adding the lua 5.1 header to the file (its currently missing) and I get the same result.

Re: Lua script

Posted: Mon Aug 20, 2012 5:27 pm
by Ekey
Header not missing because this script compiled with LuaJIT

Re: Lua script

Posted: Mon Aug 20, 2012 5:55 pm
by twisted
Thanks, how did you work out they were compiled with luajit? Just in case I come across them again it'd be helpful to know how to identify them.

Re: Lua script

Posted: Tue Aug 21, 2012 7:27 am
by Ekey
JuaJIT used in Legend of Grimrock. I made the video how decompiling scripts by BYTE CODE.

Video here
twisted wrote:it'd be helpful to know how to identify them.
Header ->

Code: Select all

.....LJ

Re: Lua script

Posted: Tue Aug 21, 2012 12:25 pm
by twisted
Thanks, would you be able to look at the code I posted in the grimrock thread? can't seem to recreate a section of code.