laurenakaproudunicornmods-Bepswitch icon

Bepswitch

Bepswitch: An on-off switch for BepInEx. This is a batch (.bat) file that switches Bepinex on and off so you can play either vanilla or modded easily. It is useful if you are in a couple of different servers - some with mods and some that don't allow mods.

Last updated 3 months ago
Total downloads 139
Total rating 0 
Categories Misc Client-side Utility
Dependency string laurenakaproudunicornmods-Bepswitch-2.1.0
Dependants 0 other mods depend on this mod

README

Bepswitch Readme

Changelogs

2.1

  • Added error message for incorrect keypress
  • Added auto-exit

2.0

New plug and play version!

Note for Thunderstore users: Manual install strongly advised! I have no idea if this works with a mod manager!

What is Bepswitch?

This is a batch (.bat) file that switches Bepinex on and off so you can play either vanilla or modded easily. It is useful if you are in a couple of different servers - some with mods and some that don't allow mods.

How do I install it?

Download the mod and put bepswitch.bat in your Valheim folder.
Depending on your install, this should look like:

            D:\Steam\steamapps\common\Valheim

The contents of your folder should look something like this:

Screenshot of Valheim folder

How do I use it?

Just double click on bepswitch.bat and you're good to go :)

Screenshot of batch file running

I suggest creating a shortcut of the file and putting it in a more easy to find location.

What does it do?

This new version works by editing the text inside the doorstop_config.ini file. It switches between enabled=true and enabled=false to enable/disable Bepinex from loading.
Yes, you can just do this manually by editing the text in doorstop_config.ini each time.

Why did I make it?

I made this because I prefer to manage mods manually rather than using a manager, and did not want to have to edit files each time I wanted to play vanilla (I'm lazy).

I also like learning new code-ish stuff, and figuring this out was fun :)

Credits

The idea for this was from here: https://steamcommunity.com/app/892970/discussions/0/3069740625181087689/?l=portuguese

Sample code for first iteration was from here: https://stackoverflow.com/questions/4051294/how-to-overwrite-existing-files-in-batch

Thanks to LuxZg on Nexus who pointed me to here: https://stackoverflow.com/questions/60034/how-can-you-find-and-replace-text-in-a-file-using-the-windows-command-line-envir

LuxZg also explained to me about replacing strings, so if you like this version 2.0, maybe give them a kudos too :)

Links:

Nexus: https://www.nexusmods.com/valheim/mods/1281
Github

Available versions

Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2021-6-10 2.1.0 120 Version 2.1.0 Install
2021-6-10 2.0.0 19 Version 2.0.0 Install