Setup
git clone https://github.com/Mikk155/Sven-Co-op.git
Metamod
If you want to contribute to the metamod plugin aslp you'll need additional dependancies
Enter the repository directory and install the dependancies
git submodule update --init --remote external/fmt
git submodule update --init --remote external/json
git submodule update --init --remote external/metamod
Generate the project solution from CMakeLists.
mkdir build\aslp
Add your absolute path to the dlls folder for copying the binaries post compile.
Windows
cmake -A Win32 -S "src/aslp" -B "build/aslp" -DCMAKE_INSTALL_PREFIX="C:\Program Files (x86)\Steam\steamapps\common\Sven Co-op\svencoop\addons\metamod\dlls"
Test compile
cmake --build "build\aslp" --config Release --clean-first --target install
plugins.ini
win32 addons/metamod/dlls/aslp.dll
linux addons/metamod/dlls/aslp.so
You can create a .bat file in build/aslp/
@echo off
cmake --build . --config Release --clean-first --target install
if %ERRORLEVEL% NEQ 0 (
pause
exit /b %ERRORLEVEL%
)
C# tools
Any C# program will most likely require the MikkNET submodule (Lack of imagination for a proper name lol)
git submodule update --init --remote external/MikkNET
AngelScript
I wrote the code-runner C# program for myself but you're free to compile and use it
cd src
cd code-runner
dotnet build code-runner.sln
Install the extension "Code Runner" linked bellow and it should install required assets into Sven Co-op
Visual Studio Code recomended extensions
| Name | Download | Description |
|---|---|---|
| Code Runner | Code Runner | Use to have a way to "Run" angelscript code. It will just copy over any required asset from a plugin/script to your sven coop installation. |
| Angelscript language server | Angelscript Language Server | AngelScript language server (Wip, please report issues on Github) |