https://developer.valvesoftware.com/wiki/Source_SDK_2013#Source_SDK_2013_on_Linux
-
clone source sdk
-
clone this repo into
sp/src/utils/
-
download lua 5.4.4 or something similar into
sp/src/utils/luaplugin/
and rename tolua
the directory tree should look like this:
sp/src/utils/luaplugin/lua/src/lua.hpp
-
run
make MYCFLAGS="-m32" MYLDFLAGS="-m32" a
insp/src/utils/luaplugin/lua/src/
-
copy or move
liblua.a
tosp/src/lib/public/linux32/
-
(optional) run
make clean
insp/src/utils/luaplugin/lua/src/
-
apply sdk patches so it'll compile lol (or don't, i'm not your dad)
git apply --ignore-space-change "./sp/src/utils/luaplugin/sdk patches"
-
./create.sh
-
./build.sh
-
plop the file from
sp/game/bin/luaplugin.so
intosteam/steamapps/common/JBMod/jbmod/lua.so
-
set
-insecure
flag -
plugin_load lua
-
lua_runstring "print(42+69)"
Added with #1. Apparently requires WSL (Windows Subsystem for Linux) and MinGW GCC.
Download and run windows/compile.bat
. This will complete steps equivelent to 1-9 on linux.
- do the compiling at least somewhat properly. see https://github.com/YaLTeR/SourcePauseTool for copypasting
- game must be run with -insecure. figure out something
compile for windows#1