A Lua Compiler for Garry's Mod using its Lua API to compile Lua to Lua BC
A small C++ program which takes the Lua API from Garry’s Mod and uses it compile Lua Files. This can be used to turn lua files into lua bytecode. It’s compatible with x86/x64 versions of Windows and Linux. This is required lately because Garry’s Mod now uses different versions of LuaJit across the different platforms.
none available
Copy the following binaries from GMod to the directory of gmodluacompilerx86.exe
Copy the following binaries from GMod to the directory of gmodluacompilerx64.exe
Copy the following binaries from GMod to the directory of gmodluacompiler
Copy the following binaries from GMod to the directory of gmodluacompiler
After the dependencies are in the same directory, just run gmodluacompiler with the parameters you want.
On Linux e.g. ./gmodluacompiler “toparse.lua”, on Windows e.g. gmodluacompiler.exe “toparse.lua”
If it crashes with a MessageBox on startup install the VC++ 2019 redists from microsoft https://www.microsoft.com/.
If you wish to compile this yourself: