File Cleaning
*This is the very last thing that needs to be done before launching Skyrim

Info: Some mods, and even Bethesda's own official DLCs, contain deleted references. Aka. "Dirty Edits". The DLCs actually contain more dirty edits than all the mods combined. These "dirty edits" are not causing any problem if Skyrim is run ONLY with the DLCs (no mods). However, when mods are loaded, the dirty edits from the DLCs become problematic, and can cause all sorts of errors and crashes. A "dirty edit", is when a mod or DLC, contains data that deletes an object in the world space. If only that one specific mod or DLC is loaded, this won't cause a problem. But if another mod has a reference to that specific deleted object, the game will most likely CTD. TES5Edit can "undelete" these objects, and disable them instead, which makes references from other mods valid, and keeps the object from appearing in the game at the same time. TES5Edit can also clean a lot of other minor issues, but those are not really important ones for stability. If you have a lot of mods, you might be able to decrease loading time by removing some double data, but it's a lot of work for minor improvements. SBP only focus on cleaning the dirty edits, but if you want to further optimize, there is a cleaning guide here: LINK

If you haven't done so already, download and install TES5Edit (LINK) It comes in a .7z package. Unpack the files to where ever you like. The program will ask for paths once executed.

1: Cleaning the official update and DLCs (If you have them)
2: Cleaning the mods

 


1 - Update & DLC Cleaning


The official Skyrim update and the DLCs need to be cleaned individually before all the mods can be cleaned.

1 - Start TES5Edit.exe
*Upon startup, TES5Edit will show a list of everything in the load-order, including Skyrim.esm (The base game-data).
2 - Check only "Skyrim.esm" and "Update.esm", and click "OK"
*TES5Edit will start loading the selected data, and check all references, which can can take some time. When the message bar shows: "Background Loader: finished", the process is done.
3 - Now select all files, and right-click one of them. Select "Apply Filter for Cleaning" from the menu.
*TES5Edit will start counting all records from the 3 files. This will take some time as well. When done, TES5Edit shows a complete tree of all references.
4 - Mark the Update.esm, and DON'T MARK ANY OTHER FILES! Then right-click, and select "Undelete and Disable References".
*When done processing, TES5Edit will show a message about how many records that were changed.
5 - Close the program.
*See images below for reference (Example made for cleaning of Dragonborn.esm)

6 - Start TES5Edit.exe again
7 - This time check "Skyrim.esm", "Update.esm" and "Dragonborn.esm", and click "OK" (See images below)

                     Cleaning of Dragonborn                                       Cleaning of HearthFires                                         Cleaning of Dawnguard

*TES5Edit will start counting all records from the three files.
8 - Now select all files, and right-click one of them. Select "Apply Filter for Cleaning" from the menu.

*TES5Edit will start counting all records from the 4 files. This will take some time. When done, TES5Edit shows a complete tree of all references.

9 - Mark the Dragonborn.esm ONLY. DON'T MARK ANY OTHER FILES! Then right-click, and select "Undelete and Disable References"

*When done processing, TES5Edit will show a message about how many records that were changed.
10 - Close the program.

11 - Repeat this process for HearthFires.esm and Dawnguard.esm as well

 


2 - Mod Cleaning


1 - Start TES5Edit.exe again, but this time make sure that every single active file is checked. (All files except the HighResTexturePack files, and the files which are replaced by merge-files) *This should be the default selection, when starting TES5Edit
2 - Click "OK" and wait for TES5Edit to load everything.
*If the program stops with an error before finishing, that means that the load-order is incorrect (See Tweaks for correct load-order)
3 - When all files have been loaded, and "Background Loader: finished" shows in the message bar, you will see the status of all mods in the right window. *Don't pay attention to the following error: "Contains unexpected (or out of order) subrecord". This is just an indication that some data didn't come in the order TES5Edit expected it. It doesn't mean there is anything wrong.
*If you see other types of errors, you might need to take a closer look. However, if you only installed the mods from the SBP-Mod-List, and you put the correct load-order, you will not see any important errors.
4 - Mark ALL files, right-click, and select "Apply Filter for Cleaning". *Counting all the records from every single mod can take several minutes.
5 - When processed, Mark ALL files EXCEPT the following 8 files:
Skyrim.esm
Skyrim.exe
Update.esm
Dragonborn.esm
HearthFires.esm
Dawnguard.esm
Unofficial Skyrim Legendary Edition Patch.esp
Unofficial Skyrim Modders Patch.esp

6 - Right-click any of the marked files, and select "Undelete and Disable References" from the menu.
*When done processing, TES5Edit will show a message about how many records that were changed.
7 - Close the program.
 


- END OF LINE -



Skyrim is ready for launch!
*
If the game crashes don't worry. This happens some times at the very first launch because of inconsistency with game-cache. Just start Skyrim again and everything will work just fine.
 


Check out the Galley for art & screenshots