MagazinePatcher

版本 v0.3.3·更新於 2025-03-27

Better Magazine Spawning!

截圖 共 2 張

模組介紹 作者原文

MagazinePatcher

Better Magazine Spawning!

MagazinePatcher is an H3VR mod that assigns more magazines to compatible firearms.

Did You Know: Normally, magazines and clips are assigned to firearms by hand in H3VR?

This is not ideal, as some firearms can only spawn with one or two magazines, when it could spawn with several! This mod aims to fix that, by assigning compatible magazines programatically.

Compatibility

This is a continuation of MagazinePatcher by devyndamonster, since Devyn has retired from H3VR. It's meant to replace the original MagazinePatcher entirely. The code has been updated from Deli to Stratum, which fixes the bug where the TNH lobby gets stuck on "Caching Items".

This mod now has a patcher that disables the original MagazinePatcher if you have it installed. It renames the DLL and manifest with the extension.bak. You can disable or uninstall the original MagazinePatcher in r2modman if you like.

Yes, you _can_ use CachedCompatibleMags.json from the original version if you want.

Why should you use MagazinePatcher?

  • It allows modded weapons to spawn with magazines
  • It adds variety to magazine drops in TNH
  • It provides important datastructures which other mods can use to get compatible magazines

Comparisons with vanilla

Magazines that can spawn in vanilla

Magazines that can spawn with MagazinePatcher

Installation

  • Install r2modman (mod manager) and set it up for H3VR.
  • Install Stratum and any related dependencies using r2modman.
  • Install Otherloader and any related dependencies using r2modman.
  • If you have devyndamonster-MagazinePatcher, then you can disable it. In r2modman, press the button "Disable devyndamonster-MagazinePatcher only" after you click the disable switch.
  • Install MagazinePatcher using r2modman, or download ODekaK-MagazinePatcher-X.X.X.zip and import as a local mod (Settings > Profile > Import local mod).

Caching Tips

This mod builds a cache of all firearms, magazines, clips, speedloaders and ammo. It saves it to a file so that it can be loaded every time you start the game. When you add new mods, they will be added to the cache. The cache is located in your r2modman profile under:

\H3VR\profiles\\BepInEx\cache\MagazinePatcher\CachedCompatibleMags.json

When you start H3VR for the first time after installing MagazinePatcher, it will build the cache. This takes some time. You can go to the TNH lobby and view the progress above the character selection screen.

If you have a whole lot of mods, then the caching process can run out of memory and possibly crash the game. Mods like ModulAK and ModulAR are especially large. If this happens, then try the XL Cache option below.

If that doesn't work for you for some reason, then you can build the cache incrementally. Here's how:

  • In r2modman, disable at least half of your guns or other mods that contain items.
  • Start a modded game, go to the TNH lobby, and wait for it to cache.
  • If it succeeds, then close the game, enable more mods, and repeat from step 2 until done. You do NOT need to disable mods that are already done.
  • If it fails, the close the game, disable more mods, and repeat from step 2.
  • If the game is chugging when it's done, then you should restart H3VR one more time.

New Features/Options

From outside of H3VR, you can go to r2modman Config Editor > BepInEx\config\h3vr.magazinepatcher.cfg to edit these.

From within H3VR, you can go to wrist menu > Custom Buttons > Spawn Mod Panel > Plugins > MagazinePatcher.

The following three options are mutually exclusive, meaning that only one can be applied at a time.

Reset to Basic Cache on Next Start: This option resets the cache from a basic starting cache on the next start on H3VR. MagazinePatcher will then cache any items that are missing from it. This setting will always be set back to false after startup.

Reset to XL Cache on Next Start: Experimental. This option resets the cache from the XL starting cache on the next start of H3VR. This is a large cache made fro

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

devyndamonster-OtherLoadernrgill28-SodaliteStratum-Stratum

檔案與校驗

檔案名稱
MagazinePatcher-0.3.3.zip
檔案大小
456.3 KiB