DawnLibNullDungeonGuard

v1.0.1·Updated 2026-07-10

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

About this mod Author’s original text

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. It also skips DawnLib tile-set injection when a non-Dawn interior contains archetypes without Dawn metadata. 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.

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.

Dependencies

Install these first, or the mod will not work:

BepInEx-BepInExPackTeamXiaolan-DawnLib

File & checksum

Filename
DawnLibNullDungeonGuard-1.0.1.zip
File size
9.0 KiB
SHA-256
061fa75ee83b8104e3f169fbbeea0f7a0468549107fa74fde15d0e17d08ac584
Stored at
2026-10-10 00:36