博德之门3v1.0.0.12026年10月12日 更新

Safe Travel - Add New Levels to Vanilla

The Problem This Fixes When a mod teleports you to a custom standalone level, BG3 thinks you've left the act permanently. The game immediately: - Closes open quests as "abandoned" (Harpy Meal, Captured Goblin, Robbed Adventurer, Idol Theft, and more) - Kills NPCs outright (the Unfortunate Gnome literally dies via a scripted Die() call) - Can kill Shadowheart if she hasn't been recruited yet - Removes Minthara from the world if she's knocked out - Destroys your camp state - Forces the grove attac

The Problem This Fixes

When a mod teleports you to a custom standalone level, BG3 thinks you've left the act permanently. The game immediately:

  • Closes open quests as "abandoned" (Harpy Meal, Captured Goblin, Robbed Adventurer, Idol Theft, and more)
  • Kills NPCs outright (the Unfortunate Gnome literally dies via a scripted Die() call)
  • Can kill Shadowheart if she hasn't been recruited yet
  • Removes Minthara from the world if she's knocked out
  • Destroys your camp state
  • Forces the grove attack to resolve as a defeat if it's in progress
  • Triggers tiefling refugees to leave
  • Deactivates story goals that can never be reactivated

All of this happens the instant the act level unloads, before you even finish loading into the custom level.

The Fix

SafeTravel overrides 14 vanilla Osiris goal files, adding a guard condition to every LevelUnloading handler that causes story damage.

When a mod sets DB_TempDepart(1) before teleporting, all of these handlers are skipped.

When the player returns and the fact is cleared, vanilla behavior resumes completely.

Normal gameplay is never affected. The guard only activates when a mod explicitly sets it.

Who This Is For

Players: If a mod you use lists SafeTravel as a dependency, install it. That's it. You don't need to configure anything.

Mod Authors: If your mod teleports players to a custom standalone level (not a level template embedded inside an act level), add SafeTravel as a dependency and wrap your teleports with two lines of Osiris. See the Mod Author Guide section below.


What's Protected

SafeTravel guards against every story-breaking LevelUnloading handler in the base game across all acts, including but not limited to:

Act 1 (WLD_Main_A)

  • Quest closures: Harpy Meal, Captured Goblin, Robbed Adventurer, Idol Theft
  • NPC deaths: Unfortunate Gnome, Bugbear Ninja, potentially Shadowheart
  • NPC removals: Minthara, gnome goblins
  • World state: Grove attack forced defeat, tiefling departure, druid attack progression, tavern burning
  • Goal completions: Orpheus Protection and several others deactivate early

Act 2 (SCL_Main_A / INT_Main_A)

  • Minthara removed from camp if not recruited
  • Pixie shield disabled, Selune ointment removed
  • Shadow curse tracking cleared
  • Camp night mode and CURRENTREGION flags

Act 3 (BGO_Main_A / CTY_Main_A)

  • Jaheira leaving check triggered
  • Circus state progressions
  • Merchant house quest advancement
  • Raphael departure
  • Warlock NPC departure
  • Various world state cleanups

Global Systems

  • DB_CurrentLevel and DB_ActiveLevel preserved (hundreds of scripts depend on these)
  • PROC_LevelUnloading blocked (cascades into PROC_LongRestOrLevelUnloading)
  • Camp state fully preserved across all 5 handlers
  • All CURRENTREGION flags preserved

Mod Author Guide

Setup

List SafeTravel as a dependency for your mod. Your mod should load after SafeTravel in the load order.

Integration

You only need two lines of Osiris. Everything else (how you trigger the teleport, save positions, name your level) is up to you.

Before teleporting to your custom level:

DB_TempDepart(1);

Before teleporting back to the act level:

NOT DB_TempDepart(1);

Important: Clear the guard BEFORE the return teleport, not after. Your custom level has no vanilla scripts listening for it, so it's safe to unload normally. Clearing first ensures DB_CurrentLevel("YourLevel") gets properly removed on unload.

Notes for Mod Authors

  • The DB name is DB_TempDepart. Use it exactly as written. That's the main reason this needs to be a dependency instead of every author building their own version of the code. If we all stick with my version of the edited code and use DB_TempDepart, we can all maintain compatibility across all our "new level" style mods.

Compatibility

Mod Conflicts

SafeTravel overrides 14 vanilla goal files. While I don't know of any mod that also overrides one of these files, if it does it will conflict. Only the last loaded version can win per file.


FAQ

Does this affect normal gameplay?

No. The guard is only active when a mod explicitly sets DB_TempDepart(1). Normal act transitions, camp visits, long rests, and all other vanilla behavior work exactly as Larian intended.

Do I need this if I'm not using any mods with custom levels?

No. SafeTravel does nothing on its own. It only matters when a mod that uses it is installed.

What if I teleport to a custom level without setting the guard?

The same thing that happens without SafeTravel; quests break, NPCs die, story goals close. The guard must be explicitly set by the mod doing the teleport.

Can this fix story damage that already happened?

No. Once a quest closes or an NPC dies, it's permanent. SafeTravel prevents the damage from happening in the first place.


**

Questions/Comments/Feedback/Mod Requests?

[Visit my Discord!

](https://discord.gg/AgsPzTwfjR)**


**

Appreciate my work?

[Buy me a coffee!

](https://ko-fi.com/for_kiramay)**


**

Want to see more awesome mods like custom items, maps, and utilities?

Check out my profile!**

来源与文件

前往 N 网打开所选文件。安装与下载要求以原作者及平台说明为准。

<!-- aoe-mods-source:nexusmods:baldursgate3:22289 -->

下载模块

共 1 个来源
立即下载推荐来源
前往下载