Git Product home page Git Product logo

svenmod's Introduction

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

svenmod's People

Contributors

sw1ft747 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.