leakednasamods-DawnLibNullDungeonGuard icon

DawnLibNullDungeonGuard

Prevents DawnLib from blocking level generation when LethalLevelLoader selects a dungeon flow without Dawn metadata.

Last updated 15 hours ago
Total downloads 2
Total rating 0 
Categories Performance AI Generated
Dependency string leakednasamods-DawnLibNullDungeonGuard-1.0.0
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
TeamXiaolan-DawnLib-0.9.24 icon
TeamXiaolan-DawnLib

A modern API for Lethal Company content and all sizes of mods [V81]

Preferred version: 0.9.24

README

DawnLib Null Dungeon Guard

Prevents a DawnLib NullReferenceException during moon loading when LethalLevelLoader selects a dungeon flow that does not have DawnDungeonInfo metadata.

Without this guard, DawnLib can stop the game at the atmosphere/loading screen with a stack trace containing:

Dawn.DungeonRegistrationHandler.LoadDungeonBundle
LethalLevelLoader.LethalLevelLoaderNetworkManager.SetRandomExtendedDungeonFlowClientRpc

When that happens, this plugin skips only DawnLib's metadata-specific bundle step for the affected dungeon flow and resumes normal RuntimeDungeon.Generate() generation. DawnLib behavior is unchanged for flows that do have valid Dawn metadata.

Requirements

  • BepInExPack
  • DawnLib 0.9.24

Multiplayer

Install this mod on every player using the shared modpack. It is a compatibility guard and does not add content or change dungeon weights.

Notes

This prevents the crash; it does not repair the source mod that registered an invalid or non-Dawn dungeon flow. Check BepInEx/LogOutput.log after testing for a warning containing the affected dungeon flow name, then update or remove that interior mod if needed.