- Install all SDKs, Sourcemod and Metamod:Source
- Add SDKs, Sourcemod and Metamod:Source to Enviroments:
- HL2SDK (e.g.
D:\alliedmodders\hl2sdk-episode1
) - HL2SDKTF2 (e.g.
D:\alliedmodders\hl2sdk-tf2
) - e.t.c.
- SOURCEMOD (e.g.
D:\alliedmodders\sourcemod
) - MMSOURCE (e.g.
D:\alliedmodders\metamod-source
)
- HL2SDK (e.g.
- Clone template to sourcemod/extensions
- Launch sm-ext-template/msvc/sdk.sln
- Code
- Install AMBuild
- Create build folder
- Goto build folder and run a command prompt
- Run
python3 ../configure.py
- On linux run
CC=clang CXX=clang++ python3 ../configure.py
- On linux run
- Then
ambuild
If you want to add a new .cpp file to the project, you need to add a new line in the AMBuilder file in the sourceFiles array, as well as your file name