WIDeadBodyCleanupScript Crash Fix

⭐ ⭐⭐ (8,094 endorsements) 📥 3.2M downloads 📌 v0.5.2 📅 1/23/2022
🟡 Updated this year

By wankingSkeever · Bug Fixes

⬇ Download Mod Source: Nexus Mods 📅 Updated: 1/7/2026 📅 Created: 1/23/2022
⚠️ Potentially Incompatible — Recent Game Update

This mod may not work until the author updates it. Check for an update, or see the rollback guide.

⚠️ Install Order · 6 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 ↗
6📦 Skyrim Script Extender (SKSE) Find it →

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

🔍 Analysis

  • 👍 0.3% endorsement rate
  • 🏆 #34 of 156 Bug Fixes mods in this game by downloads

📋 About This Mod

Description

This fix is somewhat theoretical. The change won't cause any harm, but I make no guarantees about it fixing your game.

WIDeadBodyCleanUpScript is a script that cleans up dead bodies of persistent NPCs. This script will also sometimes move their inventory to a coffin container. There are 2 issues that can happen during the execution of this script:

  • []For reasons unknown to me, sometimes this will create a corrupt inventory record during the NPC to coffin transfer. This is observed to happen for items equipped on the NPC via script. This will cause the game to crash when saving the game, as the game is unable to save the corrupt inventory record in the coffin. People have reported this happening with items wet & cold equips on NPCs. I've seen multiple instances of this happening with Ancano.

    []The vanilla game has bugs where inventory items can sometimes become corrupt. This can be due to the items being special such as iron arrow or gold. It can be due to those items are equipped via script. Or it can be due to those items having stolen flags on them.

This mod tries to avoid these issues with the following changes:

  • []Alter WIDeadBodyCleanUpScript so it unequips all items on the NPC using the unequipall console command before transfering their items

    []Transfering NPC items one by one before calling removeallitems to avoid freezes caused by corrupt inventory items

; debug.trace("WIDeadBodyCleanupScript" + self + "cleanUpBody() moving to WIDeadBodyCleanupCellMarker in WIDeadBodyCleanupCell and Calling RemoveAllItems() to DeathContainer, and enabling it:" + DeathContainer)

;*** It has been decided it's safer to move them to a holding cell, for quests that might be filling allowing for dead actors but not allowing checking for disabled actors

MoveTo(WI. WIDeadBodyCleanupCellMarker)

; Don't bother moving inventory if the death container is in the inaccessible cleanup cell

If DeathContainer. GetParentCell() == WI. WIDeadBodyCleanupCellMarker. GetParentCell()

EndIf

DeathContainer. SetActorOwner(GetActorBase())

DeathContainer. Enable()

; Unequipping the items via console commands

ConsoleUtil. SetSelectedReference(self)

ConsoleUtil. ExecuteCommand("unequipall")

; Let's not resetinventory, because that would change the actor's inventory, adding or removing items.

; Move quest items. These need to remain their original references to allow quest progress.

🤖 AI-enhanced — based on mod data

This tiny bug fix mod resolves a rare crash that occurs when saving in Skyrim, caused by the wideadbodycleanupscript. With over 8,000 endorsements and 3.2 million downloads, it's a proven essential for stability. For players who experience random save crashes, this is a must-have.

✨ Key Features

Fixes a rare crash when saving due to wideadbodycleanupscript
Lightweight and focused solely on stability
Widely adopted with 8,094 endorsements and 3.2 million downloads

📊 Pros & Cons

✅ Pros

  • Community-approved with 8,094 endorsements and 3.2 million downloads—this is a staple for stability
  • Tiny fix that addresses a specific crash, so no bloat or performance hit
  • Actively maintained (last updated January 2026)

⚠️ Cons

  • Only fixes a rare crash—if you haven't encountered it, you might not notice any difference
  • Requires Skyrim Script Extender (SKSE) to work, which is not explicitly mentioned but implied by the script name
🎯 Is This For You?
For Skyrim players who have experienced random crashes when saving and want a quick, reliable fix. Also for modders who want to prevent this issue in their load order. Skip if you never have save-related crashes or if you're playing without SKSE.
📦 Install:Easy· Under 1 minute

💡 Beginner Tips

  • Make sure you have SKSE installed and launch the game through SKSE, otherwise the fix won't load.
  • Place the mod in your mod manager and ensure it's active; load order doesn't matter much for a script fix like this.
  • If you're still crashing on save, check for other mods that might interfere with the wideadbodycleanupscript.

📊 Mod Details

Game
Skyrim Mods
Author
wankingSkeever
Version
0.5.2
Downloads
3,152,412
Endorsements
8,094
Category
Bug Fixes
Created
1/23/2022
Updated
1/7/2026

🧩 Commonly Used Together

Users add these mods to the same collections — a real compatibility signal, not an AI guess.

🔧 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 Bug Fixes 👤 More by wankingSkeever 🔎 Similar Mods 🌐 Best Bug Fixes (All Games) ⚠️ Fix Crashes & Errors 💾 Save Files 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods