SSE Engine Fixes (skse64 plugin) will delete orphaned SKSE cosaves on each launch of the game (can be disabled in Data\SKSE\Plugins\EngineFixes64.ini). It does other helpful things as well to fix some issues and improve stability and performance of Skyrim Special Edition. I highly recommended that mod to anyone who is already using SKSE. This is still useful info. Thanks.
Hi, I just found this, after I manually deleted approximately 7000 old autosave and quicksave skse files, and am going to download it right now. Quick question: I use Vortex mod manager, and have different profiles. Will this script check all the subfolders or will I have to point it to a specific subfolder?
If I do need to point to a specific subfolder, can I install the script in more than one subfolder and then schedule the routine?
Thanks for your comment. The script only targets one directory that you set as per the description notes, so you would need to create multiple copies of the script (these copies don't necessarily need to be in kept in the same location as the saves). Then edit each copy's directory location to point to one of your save locations.
When I try to use this Windows gives me a VBScript runtime error. I run Windows 10. Am I doing something wrong? I downloaded, opened it with notepad to point to the saves location like the desription says to. Edited the 3rd line only, never touched anything else. Any help?
Can you supply the exact runtime error please? It seems no one else has had this issue but a note of the error will help me to point you in the right direction.
Unfortunately I can't read the error in Italian but the language also leans me suspect it may be a localisation issue which I wouldn't be able to assist with I'm afraid.
I doubt localisation is my issue, assuming you made the mod in English. The error I get is the following: Script: [..]\Downloads\Orphaned SKSE co-save deleter (vbs)-17377-1-0\orphaned_skse_co-save_deleter.vbs Line: 25 Char: 4 Error: Type mismatch: 'fso.GetBaseName' Code: 800A000D Source: Microsoft VBScript runtime error
That no doubt has more meaning to you than me and my apologise, I'd actually forgotten about this until I spotted it in my downloads and tried again now.
Thanks for providing the error. I may have a solution. Please can you download the latest file that has a small change in how it compares the files and let me know if it resolves your issue?
I'm not sure if you are interested, but if you are, here's what I did in layman's terms.
When my script is checking the name of the a found .skse file to see if it matches an .ess (skyrim save) file, the script gets the filename minus the extension (.skse / .ess) as a string (collection of text characters) then matches them to check if they are identical. However, the script on your machine is complaining that it's trying to match an apple with an orange. The way the check is done, the compiler should automatically realise that it is matching a string with a string but why, only on some machine seemingly, it doesn't, well... I have no idea. It may possibly be to do with a missing windows security update or something, but it could be anything. Anyway I introduced a line that forces the base filename to be recognised as a string, which will hopefully resolve your issue. Let me know and thanks for trying the script out.
I tried the new file and realised that SSE Engine Fixes had already wiped away the co-saves for me (I didn't realise I had that option enabled). But, the script ran with no errors reported, which means it's most likely working on some level and should benefit others.
Ah, that's good that SSE Engine Fixes resolves the problem. Could you do me a quick favour GaoGaiGarTheKing, and just make a copy of any SKSE file and rename to something random (anything that doesn't match an ESS file) then run my script to see if it removes it? That would confirm for me that the issue is resolved. I'd really appreciate it.
Heh, I had over 1200 files, and am now down to 33.Yeah, I could have done it manually but you saved me several minutes. I'll endorse when it becomes active.
If you read the description, it's noted that the process can be easily automated by a task. Also, it can be time consuming to check each skse file for a co-save.
For those of us that don't know about such things what does this mod actually do in basic terms? I don't really understand what "will remove orphaned SKSE co-saves" means.
When running SKSE and a save is created, instead of just an .ess save file being created, SKSE also saves a co-save file with the same name but the extension .skse that contains skse specific save information. In the current builds of SKSE these co-saves are not removed when a an ess save is deleted so you can be left with orphaned .skse files in your save directory. This script removes any skse files that are not related to an existing ess save file.
Upon reflection, this may have been where I got the inspiration from. I browse so many mods a day and work on a lot of different scripts that I forget what I've seen. I did a search on the site for "SKSE save" and even "co-save" before I uploaded but nothing was found. I have amended the description to credit the mod author for that. Definitely no foul play intended! I don't use mod organiser so this file is more for auto-scheduling as a task. Thanks for raising this.
36 comments
for x in *.skse; do if [ ! -e $(basename "$x" .skse).ess ]; then rm -v "$x"; fi; done
This is still useful info. Thanks.
I just found this, after I manually deleted approximately 7000 old autosave and quicksave skse files, and am going to download it right now. Quick question: I use Vortex mod manager, and have different profiles. Will this script check all the subfolders or will I have to point it to a specific subfolder?
If I do need to point to a specific subfolder, can I install the script in more than one subfolder and then schedule the routine?
Thank you.
Am I doing something wrong? I downloaded, opened it with notepad to point to the saves location like the desription says to. Edited the 3rd line only, never touched anything else. Any help?
http://litewolf.altervista.org/temp/Cattura.PNG
Script: [..]\Downloads\Orphaned SKSE co-save deleter (vbs)-17377-1-0\orphaned_skse_co-save_deleter.vbs
Line: 25
Char: 4
Error: Type mismatch: 'fso.GetBaseName'
Code: 800A000D
Source: Microsoft VBScript runtime error
That no doubt has more meaning to you than me and my apologise, I'd actually forgotten about this until I spotted it in my downloads and tried again now.
I'm not sure if you are interested, but if you are, here's what I did in layman's terms.
When my script is checking the name of the a found .skse file to see if it matches an .ess (skyrim save) file, the script gets the filename minus the extension (.skse / .ess) as a string (collection of text characters) then matches them to check if they are identical. However, the script on your machine is complaining that it's trying to match an apple with an orange. The way the check is done, the compiler should automatically realise that it is matching a string with a string but why, only on some machine seemingly, it doesn't, well... I have no idea. It may possibly be to do with a missing windows security update or something, but it could be anything. Anyway I introduced a line that forces the base filename to be recognised as a string, which will hopefully resolve your issue. Let me know and thanks for trying the script out.
Boy, did I need this
Great tool! Endorsed!