Quick Question: Finding Unused Scripts for Deletion

Post » Wed Nov 18, 2015 11:20 am

Hello all,

I had a quick question: I was wondering if it's possible to see anywhere a list of all of the scripts available in the creation kit (IE all of the scripts in the Scripts folder) that are currently IN USE by a plugin.

Early on in my development process I was much more of an amature than I am now, so I have a few loose scripts floating around in my Skyrim->Data->scripts folder that are not appropriately named and are not currently used in my mod. I'm wondering if there is a fast way to see a list of all of the scripts in use by my plugin. I'm trying to find and delete these scripts as I begin the cleanup process, so that I can finally get my mod released.

Any help is greatly appreciated.

Thanks in Advance

User avatar
Emilie M
 
Posts: 3419
Joined: Fri Mar 16, 2007 9:08 am

Post » Wed Nov 18, 2015 10:53 am

Might be a better way but here's what I'd do. Please NOTE: this only works if your scripts folder only contains vanilla/dlc scripts and your mod's scripts.

In CK go to Gameplay > Papyrus Script Manager. Search for your name/prefix and then compile all of those scripts. Then go to your scripts folder, sort by date modified and delete anything that wasn't just compiled. Then verify your game cache. Steam should redownload all vanilla scripts and you'll be left with only vanilla + your mod's script. To clean up the source folder you should remove all source scripts that dont have your prefix, then verify cache as well.

If you DO have other script you want to keep as well (from other mods, etc.) you can still use the Papyrus Script Manager to see some info on scripts and their uses, so you can still possibly sort through them to get rid of the garbage.

User avatar
Alisia Lisha
 
Posts: 3480
Joined: Tue Dec 05, 2006 8:52 pm

Post » Wed Nov 18, 2015 7:38 am

Wow, thanks for the fast response. I'll try this real quick.

EDIT-Question: What shows up in the script manager, all scripts in the directory, or all loaded? (via the data menu)... Also, Gamplay->Compile Papyrus scripts, does it recompile all scripts in the directory, or just the loaded scripts?

Also forgot to mention. I have several scripts that are using my prefix (MOD1) that are not actually used anywhere in the Mod. These are the files that I'm having a hard time finding. They are in the scripts directory, but not actually attached to any objects within the editor. I want to make sure these won't be packaged into a BSA when I make one.

UPDATE: Found my own way to do it, but thanks for telling me about the Papyrus Manager Alex... I've apparently been overlooking it. It has a "Use Info" option for the scripts, that told me exactly what I needed to know.

User avatar
Erich Lendermon
 
Posts: 3322
Joined: Sat Nov 03, 2007 4:20 pm


Return to V - Skyrim