Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any tools to decompile .luac files? #5

Closed
gregsadetsky opened this issue May 1, 2022 · 4 comments
Closed

Any tools to decompile .luac files? #5

gregsadetsky opened this issue May 1, 2022 · 4 comments

Comments

@gregsadetsky
Copy link

Thanks for this list of tools!

Would you be able to recommend tools that work on macos and allow decompiling / disassembling of .luac files?

Thanks!

@jaames
Copy link
Collaborator

jaames commented May 1, 2022

Hey! I had some flakey success using unluac with these patches by zhuowei:
https://gist.github.com/zhuowei/56ffdda8913d603bf99b874d4be33984

However, Panic has since changed the Lua version shipped with more recent versions of the firmware and SDK, so your mileage may vary

@gregsadetsky
Copy link
Author

Thanks for the quick response!

@jaames
Copy link
Collaborator

jaames commented May 2, 2022

No worries! I should say, I haven't spent a whole lot of time trying to decompile Playdate Lua yet (compilers and decompilers are... not my forté), so if you find something that works well please give me a shout!

I'll also make a note to reply to this thread if I ever take a deeper look into it.

@scratchminer
Copy link
Collaborator

scratchminer commented Jan 19, 2023

I patched the Java applicaton unluac to decompile all known Playdate Lua bytecode files, including the ones with a standard Lua 5.4 header (and, as it turns out, opcodes appended to the end of the ORDER OP enum):
https://github.com/scratchminer/unluac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants