You are viewing a potentially older version of this package. View all versions.
Sparroh-ProfileSwitcher-1.0.1 icon

ProfileSwitcher

Swap Mycopunk save profiles from the main menu without restarting the game.

Date uploaded 2 weeks ago
Version 1.0.1
Download link Sparroh-ProfileSwitcher-1.0.1.zip
Downloads 108
Dependency string Sparroh-ProfileSwitcher-1.0.1

This mod requires the following mods to function

BepInEx-BepInExPack_Mycopunk-5.4.2403 icon
BepInEx-BepInExPack_Mycopunk

BepInEx pack for Mycopunk. Preconfigured and ready to use.

Preferred version: 5.4.2403

README

ProfileSwitcher

Swap Mycopunk save profiles from the main menu without restarting the game.

The problem

Vanilla Mycopunk lets you pick a profile on the title screen, but the selection only takes effect after you fully quit and relaunch. That is slow and annoying when you maintain multiple saves (alters, co-op characters, challenge runs, etc.).

What this mod does

  • Intercepts main-menu profile selection
  • Saves the active profile to disk before switching
  • Loads the selected profile (primary save, then backups, or a fresh profile if none exists)
  • Rebinds gear data and finalizes the loaded save
  • Hides the “restart required” prompt and refreshes relevant main-menu UI
  • Leaves you on the main menu ready to host/join with the new save

Safety

  • Main menu only. Swapping is blocked while you are in the hub, a mission, or joining a lobby.
  • Current profile is saved before the switch.
  • On failure, the mod attempts to roll back to the previous profile and shows an error popup.
  • Blocked swaps show an info popup and fall back to the vanilla restart prompt.
  • Does not re-register upgrades/mods (avoids duplicate upgrade definitions).

Dependencies

  • Mycopunk
  • BepInEx (BepInExPack_Mycopunk 5.4.2403 or compatible)
  • HarmonyLib (bundled via BepInEx)

Installing

Thunderstore / r2modman (recommended)
Install ProfileSwitcher from the Mycopunk community page.

Manual
Place ProfileSwitcher.dll in <Mycopunk>/BepInEx/plugins/.

Usage

  1. Launch the game to the main menu.
  2. Open the profile selector as usual.
  3. Pick another profile.
  4. Play — no restart needed.

Building

dotnet build --configuration Release

Output: bin/Release/netstandard2.1/ProfileSwitcher.dll

Known limitations

  • Not supported mid-session (hub/mission). Return to the main menu first.
  • Other mods that cache PlayerData.Instance at boot may need a menu refresh or relaunch to notice the new profile ( rare).
  • Steam stats remain account-wide (same as vanilla).

Changelog

See CHANGELOG.md.

License

MIT — see LICENSE.

Author

Sparroh

CHANGELOG

Changelog

1.0.1

  • Prune old PlayerData instance handlers from static events on swap (keeps other mods' handlers)
  • Reset process-lifetime Steam counter statics (goobers / hoops / tempSaxitosPunchedCounter)
  • Run the remaining OnAwake repair tail after gear rebind (invalid upgrades, merge, free-upgrade / missed-XP flags, discovered-modifier scrub, gun tokens)
  • Explicitly avoid DirectiveInstance.Deactivate on the retiring profile so serialized selection is preserved

1.0.0

  • Initial release
  • Swap save profiles from the main menu without restarting
  • Saves the active profile before switching
  • Loads the target profile (primary save, then backups, or a fresh profile if none exists) and rebinds gear data
  • Hides the vanilla “restart required” prompt on successful swap
  • Blocks unsafe swaps while in hub/mission or while joining a lobby
  • Rolls back and shows an error popup if the swap fails