Managing Sven Co-op Maps with Custom Scripts

https://sbmesh.com/delete_map.ps1

https://sbmesh.com/delete_map.sh

Sven Co-op players often download custom maps, but managing them can be tedious. To simplify map cleanup, I’ve created two scripts—one for Windows (PowerShell) and one for Linux (Bash)—that delete specific maps and optionally their series counterparts, including associated .res and .cfg files. These scripts work in the default Sven Co-op map download folders and handle map names with leading zeros or trailing text (e.g., mapname01.bsp, othermap2etc.bsp).

Windows PowerShell Script

The PowerShell script operates in C:\Program Files (x86)\Steam\steamapps\common\Sven Co-op\svencoop_downloads\maps. It prompts for a map name (without needing .bsp), deletes the specified map, and offers to delete all maps in the same series.

Features

  • Deletes .bsp, .res, and .cfg files for the specified map.
  • Recognizes series maps (e.g., a_jungle_01, a_jungle_2etc) and deletes all in the series if confirmed.
  • No need to type .bsp extension.

Usage

  1. Save the script as delete_map.ps1 in the maps folder.
  2. Run it in PowerShell.
  3. Enter a map name (e.g., a_jungle_1).
  4. Confirm if you want to delete series maps (e.g., a_jungle_*.bsp, .res, .cfg).

Linux Bash Script

The Bash script works in ~/.local/share/Steam/steamapps/common/Sven Co-op/svencoop_downloads/maps. It mirrors the PowerShell script’s functionality for Linux users.

Features

  • Deletes .bsp, .res, and .cfg files for the entered map.
  • Handles series maps with leading zeros or trailing text.
  • .bsp extension is optional.

Usage

  1. Save the script as delete_map.sh in the maps folder.
  2. Make it executable: chmod +x delete_map.sh.
  3. Run it: ./delete_map.sh.
  4. Enter a map name and confirm series deletion if prompted.

Why Use These Scripts?

Both scripts streamline map management by:

  • Automating deletion of related files.
  • Handling complex map naming conventions.
  • Offering series deletion for quick cleanup.

Place the scripts in their respective map folders, and enjoy a clutter-free Sven Co-op experience!

Leave a Comment

Auto