Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

sw1ft747/svenmod

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SvenMod

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.

For developers

Read the documentation here.

The project is written in Visual Studio 2022. Also, you can build it via CMake.

VAC

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.

Installation

  1. Download the release version.

  2. 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.

  1. Launch the file svenmod_launcher.exe to start the game with SvenMod.

Adding plugins

  1. Open the root directory of the game.

  2. 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.

  3. Now, go back to folder the ../Sven Co-op/svenmod/ and open the file plugins.txt.

  4. You need to add your plugin in "Plugins" section between the brackets { }. The format is "PLUGIN_NAME" "STATE", where PLUGIN_NAME - name of the plugin and STATE - 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

Console Commands

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

Plugins

About

C++ plugin environment for Sven Co-op

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.