Gluac
:book: compile Lua into bytecode using garrysmod's lua_shared lib
Install / Use
/learn @handsomematt/GluacREADME
Synopsis
Tool for compiling Lua into bytecode using Garry's Mod's
lua_shareddynamic library. Useful for obfuscation of source code you don't want readable.
Based on https://github.com/lua/luac/blob/master/luac.c and https://code.google.com/p/lcdhost/
Prerequisites
Depends on danielga/scanning which is included as a git submodule. And premake5 is used to create project files.
lua_dyn.c & lua_dyn.h are generated using tools/lua_dyn_export_h.lua alongside the
source code for the target version of LuaJIT used in GMod (currently luajit-2.0.3)
Running the program requires the libraries from GMod to be in the directory with them:
- Windows:
lua_shared.dllandtier0.dll - Linux:
lua_shared_srv.so,libsteam.so,libsteam_api.so,libtier0_srv.solibvstdlib_srv.so
On Linux you need to export LD_LIBRARY_PATH to the directory in order to load the shared libraries
from it, this can be done by simply running: export LD_LIBRARY_PATH=.
Building From Source
First run: git submodule update --init --recursive to grab danielga/scanning.
- Windows: Generate your project files using
premake5 vs2015and build usingproject/gluac.sln - Linux: Run
premake5 gmake && make
License
The MIT License (MIT) - Copyright (c) 2017-2018 Matt Stevens
Related Skills
node-connect
346.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
