DawnLibNullDungeonGuard
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
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- 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.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- 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.
Install these first, or the mod will not work: