You are viewing a potentially older version of this package. View all versions.
leakednasamods-DawnLibNullDungeonGuard-1.0.1 icon

DawnLibNullDungeonGuard

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

Date uploaded 21 hours ago
Version 1.0.1
Download link leakednasamods-DawnLibNullDungeonGuard-1.0.1.zip
Downloads 24
Dependency string leakednasamods-DawnLibNullDungeonGuard-1.0.1

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. 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.

CHANGELOG

Changelog

1.0.1

  • Added a guard for TryInjectTileSets, preventing non-Dawn interiors such as Slaughterhouse from crashing during tile-set injection.
  • Removed shared generation state that could interfere with later rounds.

1.0.0

  • Initial release.
  • Prevents DawnLib's null dungeon metadata crash during LethalLevelLoader dungeon selection.