SKYRIM
Dragon Stalking Fix by Sevencardz
Skyrim » Bug fixes
Added: 23/05/2014 - 02:37AM
Updated: 13/06/2014 - 02:34AM

3,234 Endorsements

1.2 Latest version

22,301 Unique D/Ls

28,440 Total D/Ls

124,118 Total Views

Uploaded by sevencardz

Description

Last updated at 2:34, 13 Jun 2014 Uploaded at 2:37, 23 May 2014

This mod fixes the bug where dead dragon corpses follow you around or fall out of the sky, affectionately known as "dragon stalking". As of version 1.2, Durnehviir is excluded from this mod to prevent issues with his quests. Requires Skyrim version 1.6 or greater.



What causes dragon stalking?

Well, you see... when a young male dragon likes a young female dragon, but he's not sure how to approach the female dragon, he might lurk around any locations he knows the female frequents, inevitably causing awkward and embarassing encounters with the female...

From her point of view, it starts out sort of cute. Simply an odd, haphazard, fluke! What a weird boy dragon just popping out of nowhere, twitching all around, not able to contain his excitement. Maybe he would make a nice friend who would do stuff for me since he likes me, she thinks to herself. Just look how trusting he is exposing his underside like a silly puppy dog!



The two part ways and the female dragon heads off to the Whiterun markets, when what do ya know? There he is again! And how sweet, he's bought her some tomatoes. What a thoughtful friend this boy dragon is. But wait... how did he get there so fast? Was he... following her?



But she dwells on it not and so our female dragon moves right along. Next stop is Dragonsreach, which is of course, the only fitting place for a dragon to be in Whiterun. Detesting outspoken impudence, she promptly ingests Heimskr and Nazeem for bastardizing the spoken word, which she finds to be insulting, even when done in a language far inferior to her own. Appetite sated, she proceeds onward.

As she climbs the steps to Dragonsreach, there he is yet again! But... oh... oh my. We're talking full-on George Takei OH MY here, ladies and gentlemen. Our poor male dragon seems to have himself in a bit of a snare... tsk, tsk, tsk, boys really will stick that thing anywhere won't they? How embarassing...



What? Oh, right, the bug... well I don't know exactly what causes that. Some problem with the game engine not doing proper housekeeping on dragon corpses, which seems to be exacerbated by issues introduced by the Havok physics suite, causing exponential amounts of derp on heavily articulated objects, such as dragons. In any case and for whatever reason, when the game tries to reload a dragon corpse that was previously unloaded, it may fail to do so correctly and ends up dropping the corpse in a default location as a fail-safe, which is usually somewhere near the player. The corpse then proceeds to reload in whatever default location it can find as the player moves from cell to cell.

So how did you fix it?

I took the base script for dragons in the game, DragonActorScript, and I implemented the OnLoad and OnUnload events in the deadDisintegrated state, which is the state dragons go to after their soul is absorbed and they've turned to bones. As soon as the dragon is unloaded from the game in this state, it gets dispelled of any active magic effects and then deleted. The same is done if the dragon is reloaded in the deadDisintegrated state. This will delete any dragon corpses which are currently stalking the player on existing save games.

To be clear, this fix will only only delete a dragon once it has died, released its soul, and turned to bones. Also, this mod does not fix the underlying problem which is buried deep in the game engine, rather it imposes a work-around specifically for dragons that have reached a specific state in order to avoid the problem in the first place.

Does it work on an existing save game?

Yes, I just said that.

Does it work with Dragon Combat Overhaul and Deadly Dragons?

Yes, of course.

Does it incorporate fixes from the Unofficial Patches?

You betcha.

Is there a catch? Are you a wizard?

Not really and that's none of your business. Just be sure to loot anything you want from the corpse before you leave the area because the new script will aggressively delete the corpse the moment it unloads.

Will the fix cause issues?

It shouldn't. This mod simply forces the game to cleanup dragon corpses quickly, rather than relying on the existing framework to do it because we've found that doesn't always work. If the choice is between dragon stalking and aggressive dragon deletion, I choose the latter, at least until a better solution presents itself.

How extensively did you test it?

Pretty extensively. Most of the time I spent on this mod was doing testing. I tested it on named dragons like Mirmulnir and Sahloknir in a normal play-through of the game with no problems. I tested it on dragons at word walls, by killing them once and then waiting for them to respawn after 30 days and got souls each time. I tested it on dragons spawned randomly in the game and through the console and had no issues and no stalking. I tested it on existing saves where dragon stalking was occurring to verify that the fix works retroactively and cleans up any dragon corpses which are currently stalking you on existing saves. This was all done on a 100+ mod load order, including Deadly Dragons and Dragon Combat Overhaul and NPC Knockout Overhaul, which is my other mod you should go check out, by the way.

This mod asks if I want to overwrite files from another mod! What do I do?

This mod must overwrite dragonactorscript for the fix to work. If another mod needs to modify dragonactorscript, then that mod can simply incorporate this fix into that version of the modified script. I give full permission for this fix to be incorporated into any other mod. I simply ask to be credited in some way.

Also, I highly recommend using Mod Organizer if you are at all serious about modding Skyrim. It eliminates the problem of overwritten files and provides a veritable cornucopia of features above and beyond any other mod management software available.

Can this be added to the USKP?

Yes, I give full permission for this fix to be incorporated into any mod, especially the USKP.

Glowing Testimonials

I'm happier than a breakdancing drunk Gremlin. - FallingStar7777
The description puts my own to shame. - ApolloDown
The image of the dragon at Dragonsreach is saying "LET ME LOVE YOU!" - Reokudo
Very description. Such nice. Wow. - cor3zone
I have never actually seen this bug, but it sounds kind of fun. - XunAmarox
But did the male dragon ever find true love? What happened next? - mcshade
It works! Thank you! - Aelthas
But seriously... are you a wizard? - tatwizard
- keithinhanoi

Credits

Bethesda for creating Skyrim and allowing us to mod it so easily.
Nexus for hosting the mod and supporting the community.
The entire Unofficial Patch Project Team for their DragonActorScript.psc modified source code and for their relentless efforts in debugging Skyrim.
Sepherose for his dragon skin textures, which are used in the images: Sepherose Dragon Skins.
ApolloDown for inspiring this mod by having the one mod on the Nexus that exacerbates dragon stalking to the nth degree: Dragon Combat Overhaul.