0 of 0

File information

Last updated

Original upload

Created by


Uploaded by


Virus scan

Safe to use

About this mod

A robust TES5Edit script for switching files from being dependent on the individual Unofficial Patches (USKP, UDGP, UHFP, UDBP) to being dependent on the Unofficial Skyrim Legendary Edition Patch (USLEEP) instead.

Permissions and credits

___[WHAT IS THIS]___

This is an xEdit script made to help with switching mods that
are dependent on the individual Unofficial Patches (USKP, UDGP,
UHFP, UDBP), to be dependent on the Unofficial Skyrim Legendary
Edition Patch (USLEEP) instead.  The script was extensively
tested and should make the transition from the old individual
patches to USLEEP easy for everyone!  :)

NOTE: During this process you will have both the individual
unofficial patches enabled in your load order and USLEEP.  This
is only so the swap masters process can swap the masters on
your files that are dependent on the individual unofficial patches.
You absolutely CAN NOT run the game with both the individual
unofficial patches and USLEEP enabled.
You can have either
USLEEP enabled or the individual Unofficial Patches.

This script exists so the plugins that you would have to disable
from your load order in order to use USLEEP (because they
require the individual Unofficial Patches) can be used with
USLEEP instead.


- I fixed a bug with the script saying "Some files failed to have
masters swapped" when all files had their masters swapped
successfully, and not saying it when they didn't.
- I added a new feature that allows you to remove records or
references that don't have a FormID mapping


1. You need TES5Edit installed.  You can download it from Nexus

Mods here: http://www.nexusmods.com/skyrim/mods/25859

2. Install the two loose text documents in the same folder as the

TES5Edit executable.
  (else it'll generate them, which is fine)
3. Merge the included Edit Scripts folder with the Edit Scripts

folder alongside the TES5Edit executable.

4. You're done!


1. Make sure you have the latest version of the unofficial
patches installed.
    - USKP: http://www.nexusmods.com/skyrim/mods/19
    - UDGP: http://www.nexusmods.com/skyrim/mods/23491
    - UHFP: http://www.nexusmods.com/skyrim/mods/25127
    - UDBP: http://www.nexusmods.com/skyrim/mods/31083
2. Install USLEEP.
    - USLEEP: http://www.nexusmods.com/skyrim/mods/71214

3. Make sure your load order is set up like so:
    - Skyrim.esm
    - Update.esm
    - Unofficial Skyrim Patch.esp
    - Dawnguard.esm
    - Unofficial Dawnguard Patch.esp
    - HearthFires.esm
    - Unofficial Hearthfires Patch.esp
    - Dragonborn.esm
    - Unofficial Dragonborn Patch.esp
    - Unofficial Skyrim Legendary Edition Patch.esp
    - <Other ESMs>
    - <Other ESPs>
4. Run TES5Edit and load your mods that are dependent on the
separate Unofficial Patches, all of the Unofficial Patches, and
the Unofficial Skyrim Legendary Edition Patch.  (If you want, you
can just load your entire load order, to make things easy).

5. Once the background loader is done (don't skip it!), right
click on any plugin in TES5Edit and choose Apply Script.
6. Choose USLEEP - Swap Masters Script from the dropdown menu and
click OK.

7. Pay attention to the messages log!  If something goes wrong
it'll come up here.  See the "Errors" section of this readme for
details on things that could go wrong.  If the script prompts you
to remove a record or reference, choose Yes to all.
8. Close TES5Edit, saving the files that were modified.  Make
sure you check the "Backup" checkbox!

9. Re-open TES5Edit with the ESPs you modified and check each of
them for errors.  If no errors are found you're good to go!  If
errors are found, restore the backup ESP files from the TES5Edit
Backups folder in your Skyrim Data directory.
10. Disable the individual unofficial patches from your load
order.  Your load order should now look like this:
    - Skyrim.esm
    - Update.esm
    - Dawnguard.esm
    - HearthFires.esm
    - Dragonborn.esm
    - Unofficial Skyrim Legendary Edition Patch.esp
    - <Other ESMs>
    - <Other ESPs>


Q: I'm getting errors ingame when running USLEEP and the
unofficial patches in my load order, why?

A: STOP!  You did it wrong!  The whole point of this script is so
you can disable the individual unofficial patches from your load
order!  You cannot use both USLEEP and the individual 
Unofficial patches in your load order at the same time!  You
only use them both together temporarily for the swap masters

Q: LOOT is giving me an error!  What's wrong?
A: LOOT correctly flags that you can't use both USLEEP and the
unofficial patches in your game at the same time.  You must disable
one or the other before starting the game.  Ignore this issue if
you're just enabling the files as is required for the swapping
masters process.

Q: How do I determine what plugins require the individual
unofficial patches?

A: If you use Mod Organizer you can just disable the individual
unofficial patch ESPs in your load order and see what plugins
get (!) icons by them.  Else you can use Wrye Bash, or TES5Edit,
or any number of other utilities.  Also, you don't actually have to
know what plugins require the unofficial patches - you can just
open your entire load order in TES5Edit and run the script.
The script knows what's what and will only affect the plugins
that need to have masters swapped!

Q: What should I select in TES5Edit before applying the script?
A: It's true that many TES5Edit scripts run on a selection in TES5Edit,
including my Merge Plugins script.  This script, however, does not.
It does not matter what you have selected in TES5Edit when you
apply this script.  It will handle every loaded plugin that has a
master dependency on the individual unofficial patches

Q: The script failed to remove some masters, halp?!
A: You'll have to do some TES5Edit magic to fix it past this point.
I'll put a video up on this sometime soon.

Q: Can this script handle mods that have multiple unofficial
patches as masters?

A: Yes!  That's the entire point of it!

Q: What should I load into TES5Edit before applying this script?
A: If you don't know what to load, just load your entire load order.
The script will take care of the rest.

Q: Will this work on plugin X, Y, Z?
A: If it's dependent on one of the individual unofficial patches, this
script should be able to help you swap them to be reliant on USLEEP
instead.  Whether or not it fails for a particular plugin is dificult
to determine offhand.  Best just to run it and see the results.  It
takes less than a minute for the script to run.

Q: So what does this do again?
A: In a nutshell, this removes the old individual unofficial patches as
masters (USKP, UDGP, UHFP, UDBP) and adds USLEEP as a master.
How it does this is obviously a bit more complicated than that,
but that's the intended result.

Q: Is there a video tutorial?
A: Visdagon made a short video tutorial earlier the other day.  It's
alright, and might help you.  I'm going to make one myself with
version 1.1.


Swapping masters is a complex process, and there are some things
that could go wrong.  I've worked really hard to make this script
as robust and user friendly as possible, so hopefully that won't
happen too often.

1. File isn't loaded
If you run TES5Edit without loading all of the unofficial patches
and USLEEP, you may get an error about a file not being loaded.
If this happens, restart TES5Edit with the proper files loaded.

2. FormID remapping conflict
This should never happen for the Unofficial Patches.  If it does
it means that the script will need to be updated.

3. No FormID mapping found
If this occurs when handling overrides or references it shows
that certain records/references could not be handled by the
script, and will have to be handled manually.
As of v1.1, you will be prompted to have the script remove these
overrides/references.  Choose Yes To All to have the script
continue on its merry way (and end up with a successful swap).

4. Some files failed to have masters swapped
If this happens it means that the script was unable to swap the
masters for certain files automatically.  Refer to the rest of
your log to find out why.


Thanks to zilav and the rest of the xEdit team for their constant

Hope this helps you guys out!  :)