
RegionBypass
Bypasses the region lock in the server browser, allowing players to see and join lobbies from all regions worldwide.Details
RegionBypass
A BepInEx mod for MycoPunk that bypasses the region lock in the server browser, allowing players to see and join lobbies from all regions worldwide.
Description
MycoPunk's server browser normally only displays lobbies within your region due to Steam's matchmaking regional filtering. This mod patches the game's configuration system to force the lobby search distance to worldwide, bypassing the regional restrictions and allowing you to join ANY lobby regardless of location.
The mod is client-side only and uses Harmony to patch the PlayerOptions.TryGetConfig method for robust compatibility across game updates.
Getting Started
Dependencies
- MycoPunk (base game)
- BepInEx - Version 5.4.2403 or compatible
- .NET Framework 4.8
- HarmonyLib (included via NuGet)
Building/Compiling
-
Clone this repository and customize the following:
- Rename namespace and class names appropriately
- Modify PluginGUID to be unique (format: "author.modname")
- Update PluginName and PluginVersion
- Add your specific Harmony patches and functionality
-
Add any additional NuGet packages or references needed for your mod
-
Open the solution file in Visual Studio, Rider, or your preferred C# IDE
-
Build the project in Release mode to generate the .dll file
Alternatively, use dotnet CLI:
dotnet build --configuration Release
Installing
For distribution as a completed mod:
Option 1: Via Thunderstore (Recommended)
- Update
thunderstore.tomlwith your mod's specific information - Publish using Thunderstore CLI or mod manager
- Users download and install via Thunderstore Mod Manager
Option 2: Manual Distribution
- Package the built .dll, any config files, and README
- Users place the .dll in their
<MycoPunk Directory>/BepInEx/plugins/folder
Note: This template is not meant to be installed directly - customize it first for your specific mod functionality.
Executing program
Once customized and built, the mod will automatically load through BepInEx when the game starts. Check the BepInEx console for loading confirmation messages.
Mod Development Structure
- Plugin.cs: Main plugin class with Awake method and Harmony initialization
- thunderstore.toml: Publishing configuration for Thunderstore
- CSPROJECT.csproj: Build configuration with proper references
- Resources: Icon and documentation placeholders
Help
- First time modding? Check BepInEx documentation and MycoPunk modding resources
- Harmony patches failing? Ensure method signatures match the game's IL
- Dependency issues? Update NuGet packages and verify .NET runtime version
- Thunderstore publishing? Update all metadata in thunderstore.toml before publishing
- Plugin not loading? Check BepInEx logs for errors and verify GUID uniqueness
Authors
- Sparroh (MycoPunk mod collection maintainer)
- funlennysub (original BepInEx template)
- @DomPizzie (README template)
License
- This project is licensed under the MIT License - see the LICENSE.md file for details