Skip to content

Instantly share code, notes, and snippets.

@vgmoose
Created November 27, 2018 06:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vgmoose/efc86b9376a39f8e0f1c016cb403d8b9 to your computer and use it in GitHub Desktop.
Save vgmoose/efc86b9376a39f8e0f1c016cb403d8b9 to your computer and use it in GitHub Desktop.
BZLA LUA recursive file extractor (such as those extracted from BEA files in super mario party)
# run within an extracted mini game directory (one of the mg* files)
# recursively snips header from .lua files (.lua.ex) then runs unluac on them to be readable (.lua.ex.txt)
# replace /path/to/unluac.jar to an absolute path where yours is (can be built from here https://github.com/HansWessels/unluac )
find . -name "*.lua" -exec sh -c 'tail -c +21 "$1" > "$1.ex"; java -jar /path/to/unluac.jar "$1.ex" > "$1.ex.txt"' x {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment