SvenMod is a C++ plugin environment for Sven Co-op that provides powerful Source-like API for creating and supporting client-side plugins.
Includes two main files: library svenmod.dll
and launcher svenmod_launcher.exe
. It is neccesary to launch the game using SvenMod's launcher.
Read the documentation here.
The project is written in Visual Studio 2022. Also, you can build it via CMake.
There's no VAC in the game but for safe you can use -insecure
launch parameter, still you will be able to join any secure VAC server.
-
Download the release version.
-
Place all files from the downloaded archive
(svenmod_launcher.exe, svenmod.dll and folder "svenmod")
in the root directory of Sven Co-op.
P.S.: You can rename the launcher file svenmod_launcher.exe
to svencoop.exe
.
- Launch the file
svenmod_launcher.exe
to start the game with SvenMod.
-
Open the root directory of the game.
-
Open the following folder:
../svenmod/plugins/
. Place the plugin you want to load in this folder. It will look like this:../Sven Co-op/svenmod/plugins/name_of_plugin_to_load.dll
. -
Now, go back to folder the
../Sven Co-op/svenmod/
and open the fileplugins.txt
. -
You need to add your plugin in
"Plugins"
section between the brackets{ }
. The format is"PLUGIN_NAME" "STATE"
, wherePLUGIN_NAME
- name of the plugin andSTATE
- 0 or 1 (disabled/enabled)
For example, how it should look:
"Plugins"
{
"name_of_the_plugin.dll" "1" // the plugin is enabled, this is a comment btw
"name_of_another_plugin" "0" // the plugin is disabled
}
Note, everything that goes after these symbols //
is a comment
SvenMod provides several useful console commands:
- sm <command> <arg1> <arg2>... - type "sm" in the console to get very detailed information about SvenMod related commands
- help <cvarname> - will print a description about the given convar/concommand that was registered through SvenMod
- toggle <cvarname> <value #1> <value #2> <value #3>.. - Toggle between cvar values
- incrementvar <cvarname> <minvalue> <maxvalue> <delta> - Increment a cvar
- multvar <cvarname> <minvalue> <maxvalue> <factor> - Multiply a cvar