SKYRIM
Possessive Corpses no more lazy zombies and shy nirnroots by Amgepo
Skyrim » Bug fixes
Added: 25/12/2011 - 12:19AM
Updated: 17/02/2012 - 07:24PM

1,835 Endorsements

1.8 Latest version

89,416 Unique D/Ls

150,779 Total D/Ls

401,081 Total Views

Uploaded by amgepo

Description

Last updated at 19:24, 17 Feb 2012 Uploaded at 0:19, 25 Dec 2011

Possessive corpses, no more lazy zombies and shy nirnroots.
Link to Betsoft thread
---------------------
WHAT THIS MOD DOES:
---------------------
1. -Weapons from dead actors are cleaned properly by the game on respawning.
2. -Reanimated actors won't left ash piles. Instead they will fall dead again (you can raise them again). This feature, is optional and no longer necessary. As I like it a lot, I'm extending it in the off-spin of possessive corpses Necromancy 101 (you can just overwrite the pex file from this mod with the one from Necromancy 101, it only adds more features).
3. -Nirnroot plants won't generate new glows. Previous ones will be removed. So, you won't need to delete them from the game on your own.
4. -All body remains like ash piles (from creatures and from reanimated actors if you delete the script avoiding this), ice piles, ghostly remains and wisp cores will be correctly deleted from the game once you are far enough from the cell where they have been originated.
5. -The amount of arrows per cell (not counting the ones in inventories, droped or attached to actors has been reduced from 15 to 5.
This mod, changes the iDeathDropWeaponChance game setting from 100 to 0. This way, actors won't drop their weapons when killed (the weapon may appear separated from them, but they are considered not dropped by the game). What you will notice is that you won't have the option to take a just dead actor's weapon from the floor, to do so you'll need to access the actor inventory, activating either the actor or the weapon.

-----------
WHY?:
-----------
When a dead actor drops a weapon, while the actor is removed from game at cell respawning, the weapon is not removed.

When a dead actor is reanimated, when the effect fades, it crumble to ashes and those ash piles aren't removed and even create more ash piles (The ash pile from wisp mother though IS removed properly, both types of ghostly remains, ice piles and wisp cores remain in game forever -I'll try solving this in next releases-).

The glow of the nirnroot is applied even if you haven't harvest it and when you do harvest the plant only the last applied glow is removed, this way, each time a nirnroot you didn't harvest have a respawn a new non-removable glow bloats the saved game.

Talking further about the weapons case, in theory, this effect shouldn't be very noticeable, as the only needed data are the weapon base ID, Ref ID, X, Y and Z positions and the angles. But as you can see in the objects placed in the world in previous games, there are other variables that while won't be used in this case are reserved and occupy space.

With all of this, I think each weapon dropped weights around 200 bytes (unless object data parts are assigned dynamically, in which case unused ones wouldn't have a reserved space and the file could be as small as 36 bytes, but I found this quite improbable).

Even this way, 5000 weapons must be dropped to increase your savegmage 1 Mb. But again, it's not that simple.

Using myself as an example, in 139 hours my character killed 570 persons, 454 undead and 15 daedra, for a total of 1039 actors that could have dropped weapons. Supposing I wouldn't use sneak attacks and collect weapons, that would mean around 200 Kb. Now considering that I have been using followers and that Sometimes actors kill each other not always in your presence (I suppose this can't happen in a different cell than the one you are in, but the terrain didn't always let you see all happening around you).

So, in my game as an example around 300-500 Kb from my save could be only weapons on the floor. I have been avoiding a lot of combats because of a misunderstanding, so check your own game data in general stats to have a better idea of how this influence your save file size, considering your playing style.

The same is applied to ash piles, other remains and nirnrooth plants glow.

In previous games, cels where only respawned when you visit them again after the spawning time has passed. This may or may not be the case of this game, but despite what you do with the interior cells, you will be passing constantly by many exterior areas and there is where nirnroot plants and fight between NPCs from different factions will left all their remains (along the remains you produce yourself). So, it's wise to have care with those factors.

----------------------------------------------------------------------------------------------------------------------------


I used SkyEdit for the weapon part. I have tested this mod for various days without any ill effect.

If you want to see this working, go to do some killing, then go to a non adjacent cell and wait until the respawn happens. With this mod no 'orphaned' weapon should remain on the floor after its owner has been deleted, while without it only the weapons of people killed by treason (a non hostile target or a someone killed by a sneak attack) will be deleted.

I made both the reanimated actors and the nirnroot part with pex decompiler (http://www.skyrimnexus.com/downloads/file.php?id=2909) and pex compiler (http://www.skyrimnexus.com/downloads/file.php?id=4058) from Onelessname and using a HEx editor to fix a problem I have.

Now all has been upgraded to CK version.
---------------------------------------------------------------------------------------------------------------------------
INSTALATION:

Drop the esp file and the scripts folder in your data directory. If you didn't install one of the scripts or the esp, the corresponding part of the mod won't be working but the rest will do. So, this mod is modular.

The only dependence relation is the one between Posesivecorpses.esp towards Defaultdeleteselfonreset, if you want the ash piles, ice piles and gostly remains deleted.


    -posesivecorpses.esp: controls the weapons reference not unattaching from deceased actors and ashes and similar deleting. Also, reduces the number of arrows per cell.
  • -if you take this file from any version previous to 1.6, it will only handle the weapons part.
  • -nirnrootactivatorscript.pex: Avoid the nirnroot glow and root accumulation. there are four versions:
  • -By default, nirnroots will work as intended. only one glow at a time.
  • -If you delete nirnrootactivatorscript.pex from the scripts folder, nirnroots won't glow at all.
  • -No regrowing: Like default. Once you take a nirnroot won't grow again. Lore friendly.
  • -No nirnroots: you won't see more nirnroots in the game.
  • -reanimateashpile.pex: avoids reanimated corpses generating ash piles. Not needed now, but I think it's an improvement.
    -Defaultdeleteselfonreset.pex: Needed for posesivecorpses.esp ashlike remain deletion. Also eliminates stacked nirnroot junk.
    -Wispcorescript.pex: Eliminates the wisp core remain (from wisps, it's different from ashlike ones) when the cell is unloaded.
    -dragonpriestactorscript.pex: Avoids the dragon priests leaving an ash pile. Not needed now, but having a corpse and a pile...
    -icewraithparticlesscript.pex: (from icewraith_no_icepile separate download): Icewraiths leave a corpse. not needed now.



Any esp file must go in the Skyrim/data folder and any pex file in the Skyrim/data/scripts folder.

----------------------------------------------------------------------------------------------------------------------------

There are various things bloating savegames. Here is what you need to do with the known ones:

· -Nirnroot: This mod,s nirnrootactivatorscript.pex avoid more glows to be generated and removes the ones already created. Of course there is a way to eliminate them without using this mod, but it's very annoying. For that, with the console active, put your cursor over the glow zone, press left mouse button and type disable. If the glow diminish you have disabled a glow instance, type markfordelete and repeat the operation until there are no more glow instances. If the glow didn't diminish then you have disable another thing, type enable and keep in mind that the object may not reappear until you close the console, so don't freak out if you disable a rock and didn't reappear when you type enable. But this is only if you didn't use this mod, that eliminate them for you.


· -Arrows: Missed arrows aren't deleted by the game, but there is a max number of arrows allowed in the world. Once you (or another actor) fires an arrow pass that limit, the first one being generated is removed. This way, arrows can last months but won't ever pass the limit number. In my game that number is 15, but Those of you with ultra settings may have a greater number (I really don't know what controls this number and if can be changed at all).

· -Any remain different than an actual corpse (ash piles, ghostly remains, ice piles...), won't disappear AND in some cases creates duplicates. Disable them with the console and then (once you ensured their disappearance) type markfordelete. Then wait a couple of seconds to ensure that a replicate isn't created and if so, delete as the previous one. Now this mod will make all of them (including the ones in your game previously to installing this) will disappear once their cell is loaded and then unloaded (pay them a visit and go far enough).

· -If you don't want to use posesivecorpses.esp, when someone is killed in combat, take their weapons from the ground and place them in their inventory (or in a different respawning one). If you found weapons from combats between NPCs on the floor, take them and put in the inventory of the next enemy you kill (or the same NPCs if hasn't disappeared yet). When you kill someone before has time to react, this may not be necessary, just put your crossair on the weapon and if instead of the option to take it you have the option to access the corpse inventory the weapon will be erased properly anyway.
---------------------------------------------------------------------------------------------------------------------------
HOW THE STACKED NIRNROOT GLOW ELIMINATION WORKS:
This file will eliminate from your game at long last the remaining nirnroot glows stacked over and over again. Yes, you will finally get rid of the old glows!

Next time you approach one of those sun glowing nirnroot, you will be able to see it's annoying glow again, but next time the cell is unloaded, not respawned just unloaded, the glow will have gone for good.

This means that you don't need to go to a remote place and wait until the cells respawn. Remember how far away you can see one of those hell spawns? Now that you are so far, go a bit farther until you can't see it, then return, and voila! no glow at all.

To be more precise, you only need to be close enough for the cell the nirnroot is in to be loaded in memory. Then once that cell has been unloaded the glows will cease to exist.

This may affect other objects Bethesda assigned the script I edited. This is a good thing, as the purpose of the original script was to delete things when the respawn happens. This only makes it delete without you needing to wait and makes the deleting actually work. So, if there are other objects using this script in vanilla they are things supposed to be deleted but being stuck while you where using vanilla. Anyway, don't overexcite, I am been looking for things using this script and so far, nirnroot glows are the only things I had found using it.

Now you can relax, knowing that the nirnroot glows will be all deleted or you could use a single game session to pass near enough to each water shore you have previously visited to eliminate all the extra glows at once.

The only disadvantage of this change, is that while you have it installed (once you deleted the deleted nirnroot plants will remain deleted, so you can uninstall it safely, as far as you have one of the files avoiding further glow stacking), if you are using one of the versions of the nirnroot part of my mod, that make them glow without stacking, you will only see them glowing when you return to their cell after a respawn. Then once you go, the glow will disappear until you return after another respawn happened (if you are using a short spawn time mod, this won't matter at all).

The first version I made deleted the glows on loading the cell, meaning you wouldn't even see them for starter, but as it could be used by other objects, I decided to make this lighter version instead, to avoid unnecessary risks.

---------------------------------------------------------------------------------------------------------------------------
CHANGELOG:
· -version 1: Avoids weapons from actors killed in combat from remaining after the corpse are cleaned.
· -version 1.1: Reanimated corpses fall dead again, instead of crumbling to ashes.
· -version 1.2: Nirnroot plants will stop generating glows.
· -Version 1.3: The already created glows will be eliminated.
· -Version 1.4: the wisp core (the remain of dead wisps) will disappear on unloading their cell (no need to wait for the respawn). Dragon priests won't leave an ash pile. Only their armor (unusable. Is a corpse that will disappear as other corpses).
· -Version 1.5: updated the nirnroot script, to eliminate the roots that where acumulating the same way as the glows, but becoming invisible instead. This didn't eliminate the already created ones, BUT the script eliminating the glows already created, does. So, this update is for people that after starting a new game, preffer not using that script (I would -and will- use it anyway, there could be other objects having the same problem).
· 1.6: All non-corpse remains (ash piles, ice piles, ghostly remains and wisp cores) are correctly handled. When you point your crosshair on them instead of "take ash pile" you will see "take (ASCII characters)", but once you open the inventory, you will see the name of the creature as always.
· 1.7: This fixes the little issue with reamining names in previous version. Now when you point your crosshair on a remain like an ash pile or an ice pile, the propper name will appear.
· 1.8: reduced arrow bloating, extra glows are deleted before you see them. Root deletion has been improved also. All nirnroot versions plus a new one without nirnroots has been added to the main download, which now is 100% CK made. Source codes are been added.

Optional downloads:

· -There is an optional download where ice wraiths left a corpse that eventually disappear instead of the ice pile. Not sure what do you think about it (actually dragging the corpse is surprising funny, it's like a paper dragon from Chinese new year festivals), so I placed in the optional download area.

FUTURE PLANS:
· -Add BAIN support.
· -I'll try fixing also the arrow problem entirely.
· -Will try to improve the garvage collection to avoid the need to return to a cell to remove things that the game didn't need anymore like corpses and other clutter. (as some research I done suggest most corpses may not increase the save size -need to make some testing yet-, they inventory and dead flag could do -in a smaller extent though-)
------------------------------------------------------------------------------------------------------------------------
CREDITS:

This file previous versions has been made using SkyEdit, PEX Compiler and PEX Decompiler and TesVSnip. So, thanks to Dave Humphrey (dave@uesp.net) and anyone helping him, for Skyedit, as well as OneLessName, for both PEX Compiler and PEX Decompiler and TheFigment for TesVSnip.

Thanks also to Xilver, for teaching me to access a script from an object in the esp using Tessnip.