ESMifyer Addon - Set unique NPCs persistent

⭐ ⭐ (804 endorsements) 📥 134,662 downloads 📌 v0.1 📅 9/9/2020
⚪ Last updated 2020

By Blackread · Utilities

⬇ Download Mod Source: Nexus Mods ↗ 📅 Updated: 9/9/2020 📅 Created: 9/9/2020
⚠️ Install Order · 5 steps
1🛠️ SKSE64 — Skyrim Script Extender 64 Download ↗
2🔧 USSEP — Unofficial Skyrim Special Edition Patch Download ↗
3🖥️ SkyUI — SkyUI (MCM framework) Download ↗
4🧩 Address Library — Address Library for SKSE Plugins Download ↗
5🔧 SSE Engine Fixes — SSE Engine Fixes Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 👍 0.6% endorsement rate
  • 🏆 #6 of 36 Utilities mods in this game by downloads

📋 About This Mod

Update 8. 10. 2022:

FelesNoctis & Co. have released a new script that improves upon this concept, flagging some references not processed by my script as persistent, and also using more intelligent filters to not flag unnecessary actors. It's still in beta, but looks very solid, give it a try if you're interested.

Why this mod is needed:

Skyrim SSE incorporates two types of reference handles: temporary and persistent. Temporary handles are loaded into memory, and thus become active, only when the player is at their grid, and unloaded when the player leaves their grid. Persistent handles are loaded in on start up and held in memory at all times.

However, this is true only for plugins flagged as masters. For all ESPs, both temporary and persistent handles are always held in memory. Skyrim SE has an inherent cap of 1048576 concurrent reference handles, hence the need to ESMify large plugins in very heavy load orders. You can read more in this reddit post.

KoKauH97 has made an excellent xEdit script to make the conversion very simple and efficient. You can find his script here. His script sets the ESM flag on the plugin, and flags any NPCs associated with a quest as Persistent. This is needed for the quests to work after the conversion.

With many mods however this process leaves majority of the NPCs still as temporary. This means that they will not spawn before you enter the cell they were set to spawn in. In the case of named NPCs that cell is often their home, and you will have to pick the lock and break in to get them to spawn and start their schedules. They might also despawn when you leave the town. This is especially apparent if you choose to ESMify city expansion mods.

The script I made aims to fix this by adding Persistent flag to all NPCs flagged as Unique. Naturally this will often target a few extras in addition to the named ones, but it's not a big deal. However, at least in the mods that I use, all named NPCs have been set as Unique, so they all will be flagged Persistent.

Installation:

Download, extract and copy the Set_unique_NPCs_persistent.pas file into the Edit Scripts folder in your xEdit/SSEEdit installation folder.

Right-click the plugin you wish to run the script on and select Apply Script... from the dropdown menu. In the window that opens select Set_unique_NPCs_persistent from the dropdown menu labeled as Script, and press OK. Give the script a few seconds to run, and you're done!

NOTE: My script does NOT ESMify the plugin, you still need to run KoKauH97's script for that. The order in which you run the scripts does not matter.

UPDATE: Due to requests, I added an optional file that combines KoKauH97's script and this addon into

🤖 AI-enhanced — based on mod data

ESMifyer Addon is a utility script that fixes a problem with ESMified quest mods: named NPCs set to spawn indoors won't spawn or start schedules until the player enters their cell. This script generates the necessary enrichment JSON to make those NPCs persistent, ensuring they spawn and follow schedules properly. For mod authors using KoKauH97's ESMifyer script.

✨ Key Features

Generates enrichment JSON to set unique NPCs as persistent.
Fixes NPCs not spawning or starting schedules before player enters their cell.
Companion addon for KoKauH97's ESMifyer script.
Targets named NPCs set to spawn indoors.

📊 Pros & Cons

✅ Pros

  • Solves a real headache for mod authors ESMifying quest mods (804 endorsements).
  • Tiny utility that does one job and does it well.
  • Actively used by the community with 134k downloads.

⚠️ Cons

  • Only useful if you're already using KoKauH97's ESMifyer script.
  • Last updated in 2020, so it might not be actively maintained.
  • Potential compatibility issues with newer versions of the ESMifyer script or game updates.
🎯 Is This For You?
For mod authors who use KoKauH97's ESMifyer script and need to fix NPC spawning issues in their ESMified quest mods. Skip if you're a player looking for gameplay changes – this is a developer tool.
📦 Install:Easy· Under 1 minute

💡 Beginner Tips

  • Run this script after ESMifying your mod to generate the JSON.
  • Make sure you have KoKauH97's ESMifyer script installed first.
  • Test your mod in a fresh save to confirm NPCs spawn correctly.

📊 Mod Details

Game
Skyrim Mods
Author
Blackread
Version
0.1
Downloads
134,662
Endorsements
804
Category
Utilities
Created
9/9/2020
Updated
9/9/2020

🔧 How to Install Skyrim Mods

Download from Nexus.

📖 Full step-by-step install guide for Skyrim →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Skyrim commands, item IDs, and more.

Keep browsing — more Skyrim mods await

📋 All Skyrim Mods 🏆 Top 25 📂 More Utilities 👤 More by Blackread 🔎 Similar Mods 🌐 Best Utilities (All Games) ⚠️ Fix Crashes & Errors 💾 Save Files 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods