MultiplayerFixes

版本 v1.0.1·更新於 2026-01-04

Runtime patcher that adds NetworkServer.active checks to mods for multiplayer safety. Prevents desync without modifying original mod files.

模組介紹 作者原文

MultiplayerFixes

A runtime Harmony patcher that adds NetworkServer.active checks to popular Techtonica mods, preventing multiplayer desync issues.

What It Does

Many Techtonica mods modify game state (inventories, machine progress, etc.) without checking if the code is running on the host/server. In multiplayer, this causes desync - each player's game runs the same logic independently, leading to duplicate items, corrupted saves, and crashes.

MultiplayerFixes patches these mods at runtime using Harmony, ensuring only the host runs state-modifying code. The changes are synced to clients via Mirror networking automatically.

Key Features

  • No modified DLLs - Original mod files remain untouched
  • Legal to distribute - Just patches at runtime, doesn't redistribute code
  • Automatic - Just install and play, no configuration needed
  • Soft dependencies - Only patches mods that are installed

Mods Patched

| Mod | Methods Patched |

|-----|-----------------|

| VoidChests | FixedUpdate |

| CreativeChests | FixedUpdate |

| WormholeChests | GetWormholeInsteadOfInventory, UpdateChestMap |

| VirtualCores | AddVirtualCore |

| MorePlantmatter | AddMorePlantmatter |

| Blueprints | FixedUpdate |

| SmartInserters | ShouldGiveItems |

| caspersLoaders | FixedUpdate, BlockVisuals |

| CrusherCoreBoost | ResetAtStartOfFrame_Prefix, HandleEndOfFrame_Postfix |

| EMUBuilder | BuildMachine (all overloads) |

Installation

  • Install with r2modman or manually place in BepInEx/plugins/
  • Ensure all players have the same mods installed
  • Play multiplayer without desync!

Multiplayer Mod Guide

Everyone Must Install (Identical):

  • MultiplayerFixes (this mod)
  • EquinoxsModUtils
  • EMUAdditions
  • CasperEquinoxGUI
  • caspersLoaders
  • CreativeChests
  • VoidChests
  • WormholeChests
  • CrusherCoreBoost
  • CrusherPerformanceFix (same config)
  • StackLimits (same config)
  • BeltHub2x2 (same config)
  • SmarterRail (same config)
  • LongStackInserters (same config)

Host Only:

  • EMUBuilder
  • VirtualCores
  • MorePlantmatter
  • Blueprints
  • SmartInserters
  • Restock
  • MachineHugging
  • BiggerExplosives

Client-Side (Anyone):

  • KnowEncumbrance
  • UnityAudio
  • FlightFixes
  • ScanGrenade
  • EquinoxsDebuggingTools

Avoid in Multiplayer:

  • SmeltingEfficiency (modifies core recipes)

Technical Details

This mod uses Harmony to prefix target methods with a simple check:

if (!NetworkServer.active) return;

This ensures the method only runs on the host/server. Mirror networking handles syncing the results to clients.

Credits

  • Created by CertiFried
  • Original mods by their respective authors (Equinox, Casper, jrinker, etc.)

Source Code

Available at:

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

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

BepInEx-BepInExPack

檔案與校驗

檔案名稱
MultiplayerFixes-1.0.1.zip
檔案大小
198.0 KiB