Page 1 of 2

Lua Decompiler Bat

PostPosted: Mon Aug 17, 2009 2:41 am
by DeltaBurnt
Ok so I got Exjam's lua decompiler and compiled it and then I couldn't figure out why it wasn't working cause it wouldn't decompile my .luc file I finally figured it out and decided to make a user friendly bat file with the compiled decompiler (some people may not have C++ to compile it with).

Just rename your compiled lua file (probably has the .luc extension) to lua.lua and run "Run This.bat". It will automatically detect if you have a file name lua.lua in the same folder as it and when it's done it'll open the file for you.

Mainly I just did this cause I was bored, lol.

EDIT: I'm just going to put the bat file up until I ask Exjam if I can upload it.

You can get the actual decompiler's source here: http://exjam.co.uk/wp-content/uploads/2009/04/luadecompiler.zip

Just build it in Visual C++ Express 2008 (it's free), you shouldn't get any errors but you might get a warning or 2 but that's ok.

Re: Lua Decompiler Bat

PostPosted: Mon Aug 17, 2009 6:34 am
by rl-1
I hope you got permission from exjam to post this....

Re: Lua Decompiler Bat

PostPosted: Mon Aug 17, 2009 7:00 am
by amaedict
thank you :)

Re: Lua Decompiler Bat

PostPosted: Mon Aug 17, 2009 5:00 pm
by DeltaBurnt
rl-1 wrote:I hope you got permission from exjam to post this....


I thought you wouldn't need permission on something that was given out publically, open source, and plus I didn't change a thing so yah...I guess I should ask em just in case :oops:

Re: Lua Decompiler Bat

PostPosted: Mon Aug 17, 2009 6:00 pm
by lmame
Post also the link to the source code ;)

Re: Lua Decompiler Bat

PostPosted: Mon Aug 17, 2009 6:40 pm
by Souleater
It's a straightforward batch file so the code is known and therefore there is no need to ask for permission.

However, you should've probably changed the naming from lua.lua to lua.luc, and lua.txt to lua.lua ... it's a bit more correct :)

Re: Lua Decompiler Bat

PostPosted: Mon Aug 17, 2009 6:56 pm
by lmame
Souleater wrote:It's a straightforward batch file so the code is known and therefore there is no need to ask for permission.

However, you should've probably changed the naming from lua.lua to lua.luc, and lua.txt to lua.lua ... it's a bit more correct :)


There was the compiler in the first post, that's why I asked.

Re: Lua Decompiler Bat

PostPosted: Mon Aug 17, 2009 7:19 pm
by DeltaBurnt
Souleater wrote:It's a straightforward batch file so the code is known and therefore there is no need to ask for permission.

However, you should've probably changed the naming from lua.lua to lua.luc, and lua.txt to lua.lua ... it's a bit more correct :)


I tried that but for some reason it doesn't want to decode .luc files only .lua files, maybe that was a different one I'll try again.

Also I knew it was ok to post the batch file itself but what I needed to ask permission for was the compiled version of the decompiler.

And I will add the link to the actual decompiler in the first post.

Re: Lua Decompiler Bat

PostPosted: Mon Aug 17, 2009 7:28 pm
by lmame
DeltaBurnt wrote:
Souleater wrote:It's a straightforward batch file so the code is known and therefore there is no need to ask for permission.

However, you should've probably changed the naming from lua.lua to lua.luc, and lua.txt to lua.lua ... it's a bit more correct :)


I tried that but for some reason it doesn't want to decode .luc files only .lua files, maybe that was a different one I'll try again.

Also I knew it was ok to post the batch file itself but what I needed to ask permission for was the compiled version of the decompiler.

And I will add the link to the actual decompiler in the first post.


If you have the source, why don't rename the file in a temp file or just handle .luc extension?

Re: Lua Decompiler Bat

PostPosted: Mon Aug 17, 2009 8:36 pm
by DeltaBurnt
lmame wrote:
DeltaBurnt wrote:
Souleater wrote:It's a straightforward batch file so the code is known and therefore there is no need to ask for permission.

However, you should've probably changed the naming from lua.lua to lua.luc, and lua.txt to lua.lua ... it's a bit more correct :)


I tried that but for some reason it doesn't want to decode .luc files only .lua files, maybe that was a different one I'll try again.

Also I knew it was ok to post the batch file itself but what I needed to ask permission for was the compiled version of the decompiler.

And I will add the link to the actual decompiler in the first post.


If you have the source, why don't rename the file in a temp file or just handle .luc extension?


Oh yah, and I tried .luc again and it worked @.@ so I'll upload the updated bat in a bit.