Building¶
Requirements for building¶
Instructions¶
- Copy
lua_launcher\gpython_launcherdirectory togarrysmod\addonsdirectory. - Open command prompt,
cdtopython_extensionsdirectory and runsetup.py build_ext --inplace. - Move all files with
.pydextension inpython_extensionsdirectory togarrysmod\gpythondirectory. - Copy
python_extensions\gmoddirectory togarrysmod\gpython\gmod(so there is a bunch of.pyfiles ingarrysmod\gpython\gmoddirectory). - Open
GPython.slnwith Visual Studio and build the solution. - Move
gmsv_gpython_win32.dllandgmcl_gpython_win32.dllfrombin_modules\builddirectory togarrysmod\lua\bindirectory. - Move
gpython.dllto Garry’s Mod’s root directory (wherehl2.exeresides).
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