2. Click "FixScriptInstances", it removes all orphan script instances.
3. This is optional, and not compatible with all mods. Click a Delete all #->
4. Push save or save as button. Make sure you have backups for both savename.ess and savename.skse (if its installed). Load a save in the game, and save it again. Now it should be fully cleaned. Re-saving removes script names etc.
Auto backup, if on,(default) creates a backup from your save, named as backup-date-time.ess and backup-date-time.skse.
"Clean other" this cleans orphan array7 items + visited worldspace array items having a formId 0. "Clean formlists" removes all form lists items with refId 0.
About source, its embedded in executable, and you can view and edit it by loading a file in rosasm. Maybe false positives problem is because a small file size, and non standard code routines, because its written using x86 asm language. I tried change code different, but no luck, i cannot find which part of code causes this detections.
Source exported from .exe is downloadable on misc files.
A note for Avast Antivirus users:
"Avast will think the program is a virus and give you h*** trying to extract it. First, set your mind at ease: go into the virus chest (under the maintenance tab), right-click, and select "scan". Avast will determine that the program is not, in fact, a virus. Then, click on settings -> global exclusions. There will be a text box to add a new exclusion. Type in the address Avast snatched the program out of when you tried to extract it (it will be in the virus chest) and click add. Now right-click on the file in the virus chest and select restore. You may now run the program."
Thanks to ArmedKevin117 for instructions about Avast.
I'm still playing my old vanilla Skyrim with dlcs and mods. My 113mb save file became a 12mb save file after running this tool. It had been growing by 2mb every time I saved. Now it is tiny and I have no lag when saving, sleeping, waiting, or going through a door. In fact, my fps seem to have improved dramatically!
This mod helped me fix a major mod headache i have been struggling whit for a few weeks, great stuff :) Thanks mate for making this one public, it is great.
This has been the best save cleaner by far since I got it 5 years ago. Runs great with Mod Organizer, and anyone not using a mod organizer has a 100% chance of nonstop problems with their game once they get modding. The SaveTool is just one piece of the crash fixing puzzle. If the main buttons on the left don't fix it, try resetting Havok and going into the mod editor to delete forms/scripts of mods you think are the problem. Other crashes I've had: any one random ENB local setting being wrong, crashing at 3 or 4 gigs of memory (not anymore though,) running out of virtual memory because your Page file is too small (Skyrim NEEDS a couple gigs minimum of pagefile,) having other video players open causing crashes, messing with uGrids then crashing when you go outside. I also haven't used LOOT in 5 years because it never worked well enough anyway. You really need explore your plugin list with TESVEdit, Apply Filter, and look at what get overwritten because that can also break things.
If you hit every button in this SaveTool and your game is still broken, it's possible it's one of these other things and not the save. As far as fixing your save though, this is as good as it gets.
Heavily modded Skyrim particularly in the textures department will require a large pagefile on a fast performing storage drive to keep things smooth. For example, when running a fully to the absolute maximum and I'm talking 4-8k size overkill textures on nearly everything, I had to configure my systems pagefile to 20 gigabytes to run without issue on an M2 storage drive. Googling "pagefile" will help you a lot here. But if you want to poke around for yourself you can follow these steps
*Warning before you start, setting a pagefile will reserve that amount of space on that drive meaning if you set a 20gb pagefile on your fastest drive, your fastest drive will now show as having 20gb less available since your system is now reserving it as a pagefile. So if you're already scraping for space on a drive you will need to get rid of something if in fact you actually need to do this at all in the first place!
Hold down your LEFT WINDOWS KEY and press *R.
Type in systempropertiesadvanced and press ENTER.
Under Performance (near the top) click "Settings..."
Click the Advanced tab (along the top)
Under Virtual Memory click "Change..."
Uncheck Automatically manage if it is checked.
Select your FASTEST solid state drive.
Click the Custom size: radio button to put a circle in it.
Next to Initial Size type your desired pagefile size in binary (so 1gb is not 1000 it is 1024) so for my set up I used 20480.
Next to Maximum Size type 20480 or whatever you used before as well.
Press the Set button (kinda down and to the right)
The reason why the save file saved with Skyrim Save Cleaner stopped when I opened it was after downloading and using [Crash fixes]. I loaded the save file before using [Crash fixes]. It worked. [Crash fixes] Saves a save file as a special case and Skyrim Save Cleaner fails to open it and stops working. [Crash fixes] https://www.nexusmods.com/skyrim/mods/72725?
2309 comments
Fixed a error when deleting multiple references at once.
Added note if save game is corrupt.
See changes.
If you have problems wih this new version, try previous version instead.
Other savegame editors/cleaners i would recommended:
SkyrimTools by Mark Fairchild, supports saves with new string count format too
Savegame script scalpel by flexcreator
TESV ESS Files Editor by fubrus
How to use it?
1. Click open, choose a save game file.
2. Click "FixScriptInstances", it removes all orphan script instances.
3. This is optional, and not compatible with all mods.
Click a Delete all #->
4. Push save or save as button. Make sure you have backups for both savename.ess and savename.skse (if its installed).
Load a save in the game, and save it again. Now it should be fully cleaned.
Re-saving removes script names etc.
Auto backup, if on,(default) creates a backup from your save, named as backup-date-time.ess and backup-date-time.skse.
"Clean other" this cleans orphan array7 items + visited worldspace array items having a formId 0.
"Clean formlists" removes all form lists items with refId 0.
About source, its embedded in executable, and you can view and edit it by loading a file in rosasm. Maybe false positives problem is because a small file size, and non standard code routines, because its written using x86 asm language. I tried change code different, but no luck, i cannot find which part of code causes this detections.
Source exported from .exe is downloadable on misc files.
A note for Avast Antivirus users:
"Avast will think the program is a virus and give you h*** trying to extract it.
First, set your mind at ease: go into the virus chest (under the maintenance tab), right-click, and select "scan". Avast will determine that the program is not, in fact, a virus.
Then, click on settings -> global exclusions. There will be a text box to add a new exclusion. Type in the address Avast snatched the program out of when you tried to extract it (it will be in the virus chest) and click add.
Now right-click on the file in the virus chest and select restore.
You may now run the program."
Thanks to ArmedKevin117 for instructions about Avast.
I'm still playing my old vanilla Skyrim with dlcs and mods. My 113mb save file became a 12mb save file after running this tool. It had been growing by 2mb every time I saved. Now it is tiny and I have no lag when saving, sleeping, waiting, or going through a door. In fact, my fps seem to have improved dramatically!
You saved my game, thanks so much!
FallrimTools - Script cleaner and more
https://www.nexusmods.com/skyrimspecialedition/mods/5031?tab=description
Thanks mate for making this one public, it is great.
Did'nt found any version in the SE section :/
If you hit every button in this SaveTool and your game is still broken, it's possible it's one of these other things and not the save. As far as fixing your save though, this is as good as it gets.
What's that mean, what is "pagefile"?
*Warning before you start, setting a pagefile will reserve that amount of space on that drive meaning if you set a 20gb pagefile on your fastest drive, your fastest drive will now show as having 20gb less available since your system is now reserving it as a pagefile. So if you're already scraping for space on a drive you will need to get rid of something if in fact you actually need to do this at all in the first place!
systempropertiesadvanced
and press ENTER.I wasn't even aware of this.
I loaded the save file before using [Crash fixes]. It worked.
[Crash fixes] Saves a save file as a special case and Skyrim Save Cleaner fails to open it and stops working.
[Crash fixes] https://www.nexusmods.com/skyrim/mods/72725?