MARCROCK22-NavMeshFix icon

NavMeshFix

Fixes broken NavMesh pathfinding and map route (Tab) on modded levels. Repairs LevelPoints, ExtractionPoints, connections, and rooms automatically.

Last updated 3 hours ago
Total downloads 13
Total rating 0 
Categories Levels Client-side AI Generated
Dependency string MARCROCK22-NavMeshFix-0.0.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

NavMeshFix

Automatically fixes broken NavMesh pathfinding and map route (Tab key) on modded levels in R.E.P.O.

What it fixes

Some modded levels have LevelPoints or ExtractionPoints placed off the NavMesh, causing:

  • Enemies unable to navigate or stuck in place
  • Map route dots (Tab) not appearing
  • Broken pathfinding between rooms

NavMeshFix automatically detects and repairs these issues after each level generates.

Repairs

  • LevelPoint positions — Moves points that are off the NavMesh to the nearest valid position
  • ExtractionPoint positions — Same repair for extraction points (fixes map route)
  • Module connections — Reconnects LevelPoints that the game's ModuleConnectSetup missed (facing each other, within range)
  • One-way connections — Fixes connections that only go A->B but not B->A
  • Room assignments — Assigns RoomVolume to points missing it
  • Map diagnostics — Logs path status every 5s when the map is open (helps debug remaining issues)

How it works

  • Patches LevelGenerator.NavMeshSetupRPC (postfix) — repairs positions when NavMesh is ready
  • Patches LevelGenerator.GenerateDone (postfix) — repairs connections 1s after generation completes
  • Runs on ALL clients, not just host (NavMesh is built locally on each client)

Configuration

  • Enabled (true) — Enable/disable automatic NavMesh repair
  • RepairRadius (5.0) — Max distance to search for a valid NavMesh position

Installation

Install via r2modman or Thunderstore Mod Manager. No dependencies besides BepInEx.