About this mod
Fixes a rare crash when saving due to wideadbodycleanupscript
- Requirements
- Permissions and credits
- Changelogs
- Donations
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. 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.
This mod alters WIDeadBodyCleanUpScript so it unequips all items on the NPC using the unequipall console command before transfering their items:
Requirements
If an NPC is already dead, their WIDeadBodyCleanUpScript is already running. If you think this will cause a crash, installing this fix won't prevent it, as that script instance is already baked into your save.
If you want to prevent a crash for an already dead NPC:
Credits
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. 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.
This mod alters WIDeadBodyCleanUpScript so it unequips all items on the NPC using the unequipall console command before transfering their items:
Requirements
- ConsoleUtilSSE NG. If, in the future, this gets replaced by a more updated version due to Skyrim update and I am not here to update these requirements, use your brain and find the update yourself.
If an NPC is already dead, their WIDeadBodyCleanUpScript is already running. If you think this will cause a crash, installing this fix won't prevent it, as that script instance is already baked into your save.
If you want to prevent a crash for an already dead NPC:
- Select them in console either by clicking on them or by using the prid <reference id> command.
- Unequip their entire inventory using the unequipall command.
Credits
- Unofficial Skyrim Special Edition Patch (script edit based on script for USSEP)
- Arthmoor
- Unofficial Skyrim Special Edition Patch team
- Please see Unofficial Skyrim Special Edition Patch readme in the download. This list is rather extensive and ever changing.