NintendoWare Bezel Engine *.LUA

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

NintendoWare Bezel Engine *.LUA

Post by LolHacksRule »

The middleware game engine commonly has developers using compiled Lua scripts inside game data archives. It's very simple to decompile them after removing the 20 bytes up top of it which has the following info.

Code: Select all

4bytes: BZLA
20bytes: MD5 hash of uncompiled source file used
beyond: Compiled Lua file.
Last edited by LolHacksRule on Tue Oct 26, 2021 1:23 am, edited 2 times in total.
Trippixyz
Posts: 1
Joined: Sat Oct 16, 2021 8:04 am

Re: Super Mario Party: (NintendoWare Bezel Engine, .LUA, Archive)

Post by Trippixyz »

Hey! Im curious as to how u could decompile the Files, because i wasnt able to.
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Super Mario Party: (NintendoWare Bezel Engine, .LUA, Archive)

Post by LolHacksRule »

Try this .sh script.

Code: Select all

find . -name "*.lua" -exec sh -c 'tail -c +21 "$1" > "$1.ex"; java -jar "UNLUACDIRHERE\unluac.jar" "$1.ex" > "$1.ex.txt"' x {} \;