Skyrim Special Edition
0 of 0

File information

Last updated

Original upload

Created by

ferrari365

Uploaded by

ferrari365

Virus scan

Safe to use

About this mod

Fixes the DLC2MiraakScript to not take up all of the game's scripting resources and wrecking the scripting engine in the process, by reworking a very inefficient while loop. No ESP.

Requirements
Permissions and credits
Changelogs
Donations
Description


After meeting Miraak for the first time during the Dragonborn DLC's main quest, he will start to randomly steal dragon souls from you, with the first one being guaranteed, until you kill him at the end of the main quest. Under the hood this is done through a series of scripted events, one which is the script which controls Miraak's arrival and disappearance after the robbery.

Unfortunately this script has a rather severe flaw in the implementation of something, at first glance, completely harmless, which can have game breaking consequences - the visual effect that appears and stays around while you're near Miraak. This effect is controlled by a while loop without any leeway, which will execute itself as quickly as the game will allow it. In vanilla this issue is not that severe, but if you're using a mod which improves script execution and throughput (like Papyrus Tweaks), this script will literally take up all of the game's scripting resources almost immediately after it starts and not allow it to process basically anything else - so much so that the scene itself gets stuck and is unable to proceed.

This mod adds a small delay to the problematic while loop so that it won't run as quickly as possible and also adds an extra internal failsave that will shut it down after 2 minutes if something further goes wrong with it.


Installation


Install with your favourite mod manager. Safe to install on an existing save, as long as Miraak is not currently stealing a dragon soul.


Compatibility and load order


Not compatible with anything that changes the DLC2MiraakScript script. I'm unaware of any such mods.
Compatible with everything else, including Lady Miraak and Miraak - Dragonborn Follower.

No need to concern yourself with load order, as there is no ESP. However, due to the way the game loads its files, loose file mods like this one will always take priority over mods packed into BSA regardless where they load. If a mod happens to edit the same script and is packed into a BSA, this mod will overwrite it and potentially cause issues. Let me know of any such cases and I will make a patch to accommodate the relevant changes into this mod.


Credits


Bethesda for Skyrim and the Creation Kit
markdf for ReSaver and for being super helpful in debugging the issue