BepInEx 5 for Nomad Drive (r3)
=============================
BepInEx 5.4.23.6 (x64, Mono), set up for Nomad Drive the way the Nomad Mod Downloader's
"Check BepInEx" sets it up, so mods load without any extra fixes.

What's inside, on top of plain BepInEx:
  * BepInEx 6 compatibility - runs mods built for BepInEx 6 beside BepInEx 5
    (BepInEx\plugins\BepInEx6Compat, BepInEx\compat\BepInEx6).
  * DotNetFix\ - Nomad Drive ships a cut-down mscorlib.dll that BepInEx crashes on
    ("Method not found: GetPEKind"). These are Mono's full .NET libraries (MIT license), plus
    netstandard.dll 2.1 and Mono.Security.dll for mods built for .NET Standard.
  * Unity Compatibility (BepInEx\patchers\NomadUnityCompat) - Nomad Drive's build strips unused Unity code, so
    some mods fail with "MissingMethodException". This restores it at startup.
  * Nomad Mod Changes (BepInEx\patchers\NomadModChanges) - applies mod updates, removals and switching mods
    on and off that wait for a restart (from the game's Mods menu or the Nomad Mod Downloader), when the game starts.
  * doorstop_config.ini - points the game at DotNetFix, Unity Compatibility.

Install
  1. Unzip everything into your Nomad Drive folder (the one with Nomad Drive.exe).
     Steam: right-click Nomad Drive > Manage > Browse local files.
  2. Double-click Get-Unity-Libraries.bat once. It downloads the full Unity libraries for your game's Unity
     version from BepInEx's server (unity.bepinex.dev) into BepInEx\unity-libs. Unity's files aren't included
     in this package because they're Unity's. Skip it and BepInEx still works; only mods that need the
     stripped Unity code won't.
  3. Start the game once to the main menu, then close it. BepInEx makes its folders and settings.
  4. Put mods in BepInEx\plugins (or install them with the game's Mods menu or the Nomad Mod Downloader).

Switching between BepInEx 5 and 6: delete the old BepInEx\core folder first. Your plugins and settings stay.

Problems? Look in BepInEx\LogOutput.log. The Nomad Mod Downloader's "Check BepInEx" finds and fixes most of them.
More mods: https://nomaddrivemods.online

Source code
  Everything in this package that isn't an official BepInEx or Mono file is open source, with the steps to build
  this exact package: https://github.com/oRit-907/NomadModDownloader/tree/main/bepinex-package
  The two scripts (Get-Unity-Libraries.bat and BepInEx\nomad\Get-Unity-Libraries.ps1) are plain text: open them
  in Notepad to see what they do.
