Skip to content

ej-mentol/SCPM

Repository files navigation

SCPM (Sven Co-op Plugin Manager)

This is a pet project built entirely with the help of AI. As a result, illogical bugs or odd behavior may occur, despite the bold claims below :)

SCPM is a utility for the safe management of Sven Co-op plugin configurations (default_plugins.txt). It allows for easy toggling of plugins, configuration validation, and exporting only enabled entries.

The Problem

  • Manual editing often leads to syntax errors or broken VDF structures.
  • No native way to temporarily disable plugins without deleting lines.
  • Difficult to switch between different configuration sets (e.g., Public vs. Test).

The Solution: Profiles

  • User Profiles (JSON): Save plugin states and maintain drafts without affecting the game files.
  • Default Profile: Linked directly to the game configuration file. It uses a "shadow" copy in memory—changes are only written to the disk when you click Save.

Key Features

  • VDF Generation: Prevents syntax errors by strictly adhering to the Valve Data Format.
  • Manual Path Selection: Easily select your Sven Co-op installation folder via Settings.
  • Drag & Drop: Add plugins by dragging .as files from Windows Explorer.
  • Target Switching: Switch between different target files (e.g., default_plugins.txt, skill_plugins.txt) with import or overwrite options.
  • VDF Paste: Quick plugin creation by parsing VDF snippets from the clipboard.
  • Enhanced Explorer: Right-click context menu for files (Open, Reveal, Copy Path, Properties).
  • Validation: Checks for duplicates and verifies filenames.
  • Automatic Backups: Creates a .bak copy of the target file upon every export (overwrites the previous backup).

Keyboard Shortcuts

  • Ctrl+S: Save profile
  • Ctrl+F: Search
  • Ctrl+Z / Ctrl+R: Undo / Restore menu

Tech Stack & Build

  • Stack: Electron, React, custom VDF parser.
  • Build (Windows):
    1. Install Node.js.
    2. Run npm install.
    3. Run npm run build.
  • Output: Portable .exe in the dist-electron folder.

SCPM Screenshot

License

Creative Commons Attribution-NonCommercial 4.0 International. Created by mentol.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages