Joined: Sep 2011
As others are now using the most functional public decompiler, I figured it's probably time to hand it to those who don't have VSC++ or g++ installed (or can't be bothering).
The original sources: http://forum.xda-developers.com/showthread.php?t=568281
The binary (and the modified luaconf.h file):
Be warned, it's imperfect and you will break your game if you try to modify anything particularly useful.
( And I envisage this just opening up a world of cheating, but that's more or less inevitable anyway. )
EDIT: Python script to build and decompile everything:
# Shamelessly ripped from my Chunkspy script
VERSION = "1.05"
rootdir = "S:\\Trop4\\boot\\persist\\Game\\"
chunkspydir = "S:\\Trop4\\chunkspy\\%s\\" % VERSION
file_list = 
for root, _, filenames in os.walk(rootdir):
for filename in filenames:
for x in file_list:
if(x[-4:] == ".lua"):
x = x.replace("/","\\")
CSD = x.replace(rootdir,chunkspydir)
print("mkdir %s" % CSD[:CSD.rfind("\\")])
print("luadec.exe %s > %s" % (x,x.replace(rootdir,chunkspydir)))
Note: No, this isn't what I use. This doesn't do work on anything fun, and I can't be bothered to repair it. What I use is either brain+pencil+hex editor, or was written in ASM and runs on ARM9
"I am not ashamed to confess I am ignorant of what I do not know" ― Cicero.
"You had to hand it to the Patrician, he admitted grudgingly. If you didn't, he sent men to come and take it away." ― Terry Pratchett (Guards! Guards!)
(This post was last modified: 09-05-2012 02:43 AM by Swixel.)
|06-05-2012 08:58 PM