A full tutorial on how to compile Lua files to 64-bit for sm64coopdx
Although this is a resource specifically for compiling for sm64coopdx, it should work for any other games that use lua files.
- Download and Extract
lua-compiler.zipinto any folder. - (Optional) To remove debugging data, create a shortcut the extracted
luac.exewith the flag-sat the end of the shortcut properties - Drag and Drop your Lua file of choice onto
luac.exe(or it's shortcut) - In the directory you dragged the Lua file from, you should see
luac.out. Renameluac.outto it's original filename ([file-name].lua)
Note that 32-bit is no longer standard and is likely depricated on most machines, only compile if you know you require it
- Go to https://lua-bytecode.github.io/ and insert your compiled file (
[file-name]-64.lua) - In the Dropdown labeled "Convert to another EnBi", Select "L4488 (x86 default)"
- Save/Rename the Outputted file to
[file-name]-32.lua