Skip to main content

The Valheim BepInEx Patcher (VBPatcher) is a CLI application for patching the Unity modding plugin, BepInEx, to its latest release (whether stable or bleeding-edge).

Project description

VBPatcher

Valheim BepInEx Patcher


About

  • Valheim BepInEx Patcher (VBP) is a CLI application for patching the Unity modding plugin, BepInEx, to its latest release (whether LTS or experimental).

  • VBP was originally created as a solution for an issue that occurs while using the Vortex modding tool to mod the game Valheim, whilst having BepInEx installed.

    • When opening Vortex to begin modding Valheim, the modding tool automatically downloads what it incorrectly perceives to be the "latest" version of BepInEx (a necessary requirement for the vast majority of mods available) which is generally incorrect, and often takes a long time to be fixed.

    • Unfortunately, this means if you were using an experimental/newer/different build of BepInEx, it has been overwritten by whatever build Vortex installed.

    • This occurs each and every time you open Vortex, and became a major annoyance for me, so I decided to create a quick solution to make this problem less annoying.


Installation

Using PIP (Recommended)

  • To install VBP using pip, enter the following:

    •   python -m pip install VBPatcher
      
  • Done!

Manual Installation (NOT Recommended)

  1. Download the project's latest release *.zip archive from the "releases" tab and extract to location of choice, or clone repository with the git client of your preference with:

    •  gh repo clone schlopp96/VBPatcher
      
  2. Open terminal and navigate to the extracted directory "~./VBPatcher".

  3. Enter the following to install necessary dependencies:

    •  pip install -r requirements.txt
      
  • Done!

Usage

  • Make sure you do not have Vortex, Thunderstore, or any other modding tools running, and that you are done with any modding processes.

  • Each time Vortex is opened to mod Valheim, your BepInEx version will be downgraded again, so I highly recommend running this script every time before playing!

  1. Open the application, which can be run within a terminal using the following command:

    • vbpatcher
      
    • You can also run VBPatcher from the main program file:

      • ~./VBPatcher/main.py.
  2. Once the script is run, you will be presented with an option menu, allowing you to choose from the following commands:

    • [1]. Patch BepInEx to the latest stable release.
    • [2]. Patch BepInEx to the latest developmental/experimental "bleeding-edge" build.
    • [3]. Patch BepInEx first with the latest stable release, and then with the latest experimental build to ensure a safe installation.
    • [4]. Check for and download new releases/builds of BepInEx.
    • [5]. Start Valheim.
    • [6]. Exit the application.
  3. Once an option is chosen, you will then be asked to confirm that the correct option/location is chosen.

    • For example, once the option to apply a patch is confirmed, the script will begin patching the appropriate files immediately, and should finish in seconds.
  4. Upon successful patching, the script will ask the user if they'd like to start Valheim.

  5. If you choose to run the game, the patcher will automatically close itself after running the game's executable.

  6. If you choose to NOT run the game, the patcher will return to the main menu.

  • Note that you can also find the latest bleeding-edge-builds of BepInEx here.

How It Works

  • VBPatcher functions by simply copying the relevant patch files & places/overwrites core files responsible for the BepInEx version downgrade.

  • The patch files will all be placed in either one of two potential locations within Valheim's install directory

  • The location of the game's install directory is different depending on the operating system of the user.

    • For Windows, the default install path for Valheim is:

      • C:\Program Files (x86)\Steam\steamapps\common\Valheim
    • For MacOS, the default install path for Valheim is:

      • ~./Library/Application Support/Steam/steamapps/common/Valheim
  • Patches will be applied to the BepInEx folder, itself found within the game's installation folder:

    • ~./Steam/steamapps/common/Valheim/BepInEx.

Opening VBPatcher

  • Within a terminal, open VBP with the following command:

    •   vbpatcher
      
    • alt

  • Or optionally within a python environment:

    •   >>> import VBPatcher # Import package
        >>> VBPatcher.vbp()  # Call method to open program
      
    •   >>> from VBPatcher import vbp # Import package
        >>> vbp() # Call method to open program
      
    • alt

  • From here, follow the on-screen prompts to operate the program.

  • Choose an operation to run by entering the corresponding number (1-6) and pressing enter.


Usage Example

  • The following depicts using VBPatcher from a command line to first check for any new updates before installing the latest base/stable-release of BepInEx, then the newest dev-build/bleeding-edge patch builds:

  • alt


Contact

  • If you have any questions, comments, issues, complaints, etc, feel free to:
    • contact me through my email at: schloppdaddy@gmail.com.
    • Submit an issue to the project's GitHub repository

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

VBPatcher-0.9.0.tar.gz (913.1 kB view details)

Uploaded Source

Built Distribution

VBPatcher-0.9.0-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

Details for the file VBPatcher-0.9.0.tar.gz.

File metadata

  • Download URL: VBPatcher-0.9.0.tar.gz
  • Upload date:
  • Size: 913.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for VBPatcher-0.9.0.tar.gz
Algorithm Hash digest
SHA256 3af67c9727bb9e159fd785e34c8dd5ac705570e55888c05dfa188e2b15a6bc67
MD5 37c217261c6282a8af39597b0f68aef7
BLAKE2b-256 1d111934b19b42dbd76f0422eaaa539cbadae7f568cf8526c8e82cc6fbea068b

See more details on using hashes here.

File details

Details for the file VBPatcher-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: VBPatcher-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 32.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for VBPatcher-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc31141a9d3528c5424f35d146c69c449b52f862172a5203e8d54e02185788b3
MD5 797244ba413c365ebf44ece0a7ddd06d
BLAKE2b-256 ce0d264ea18986d4b8b4d7f25f2c50954b1822a0d0b227880421b6e9fe67ba56

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page