Building¶
Requirements for building¶
Instructions¶
- Copy
lua_launcher\gpython_launcher
directory togarrysmod\addons
directory. - Open command prompt,
cd
topython_extensions
directory and runsetup.py build_ext --inplace
. - Move all files with
.pyd
extension inpython_extensions
directory togarrysmod\gpython
directory. - Copy
python_extensions\gmod
directory togarrysmod\gpython\gmod
(so there is a bunch of.py
files ingarrysmod\gpython\gmod
directory). - Open
GPython.sln
with Visual Studio and build the solution. - Move
gmsv_gpython_win32.dll
andgmcl_gpython_win32.dll
frombin_modules\build
directory togarrysmod\lua\bin
directory. - Move
gpython.dll
to Garry’s Mod’s root directory (wherehl2.exe
resides).
Final directory structure should looks like this:
...\SteamApps\GarrysMod\ ─┬─ hl2.exe
├─ ...
├─ gpython.dll
├─ garrysmod\ ─┬─ addons\ ─── gpython_launcher\ ─┬─ addon.json
│ │ └─ lua\ ───── ...
│ └─ lua\ ────── bin\ ──────────────┬─ gmsv_gpython_win32.dll
│ └─ gmcl_gpython_win32.dll
└─ gpython\ ───┬─ luastack.cpXX-win32.pyd
└─ gmod\ ─────────────────────────┬─ __init__.py
├─ lua.py
├─ ...
...
See also