Sven Co-op has its own AngelScript plugin system built into the game, so no extra modding framework is needed. Plugins are installed on your Sven Co-op server by uploading the script file and adding it to the plugin list.
Uploading the Plugin
Plugins are .as script files. Only use plugins from sources you trust, as they run on your server.
- Log in to Bropanel and
Stopyour server. - In the sidebar, go to
Files. - Navigate to
svencoop/scripts/plugins/. - Upload the plugin's
.asfile. If the plugin comes with its own folder, upload the whole folder here.
Adding the Plugin to default_plugins.txt
The server only loads plugins listed in default_plugins.txt.
- In the sidebar, go to
Files. - Open
svencoop/default_plugins.txt. - Add a new
"plugin"block inside the"plugins"block.nameis any unique name you choose, andscriptis the file name without.as:"plugins" { "plugin" { "name" "MyPlugin" "script" "MyPlugin" } } - Save the file and start your server.
Keep any plugin blocks that are already in the file and add yours after them.
To turn a plugin off without deleting it, put // at the start of every line of its "plugin" block, including the braces, or remove the block. Lines starting with // are ignored. Many plugins check whether a player is a server admin, so you may also want to add admins.
