A plugin for Source which integrates the power of LuaJIT into your servers.
Feel free to join my Discord server: https://discord.gg/Y4d9ZWJ
Do not expect to be able to use it to write your next server plugin right now! SourceLua does nothing useful outside of debug mode, so you can't even write Lua code to interact with anything.
We are looking for contributors to help get this project off the ground, so any help would be great.
- A C++ compiler supporting C++14
- CMake
- LuaJIT (included)
- Source SDK 2013 (Included)
- TBB (Not included)
These instructions were tested on a Debian 9 Stretch install, they may require tweaking to run correctly on your system.
- Update submodules (
luajit-2.0,source-sdk-2013) - Patch the Source SDK:
cd thirdparty/source-sdk-2013 && git apply ../patches/source-sdk-2013.patch - Make a build directory (e.g.
build) - Run CMake (
cmake ..) - Run Make (
make) - Build outputs are located in
final
- Build SourceLua if it isn't already built
- Create a folder in your server's game folder (e.g. for Counter-Strike:
Source, it would be
$INSTALL_DIR/cstrike/where$INSTALL_DIRis where the server is installed) namedaddons, if it doesn't already exist - Move
util/sourcelua.vdfinto theaddonsfolder you created - Create a folder named
sourceluain the same directory you movedsourcelua.vdfinto, and a folder in that namedbin - Move the contents of
finalinto thebinfolder you created - Restart the server if it was running already
SourceLua is licensed under the MIT License. See LICENSE for more
information. Additionally, read source-sdk-2013/LICENSE and
source-sdk-2013/thirdpartylegalnotices.txt for legal information related to
the use of the Source SDK.