You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suggestion: Don't delete the About folders/xml files when recursively deleting/batch redownloading mods #380
accessibility 👀 ℹ️🤓user-friendly optimization, like notifications, warnings and action alertsbugs 🪲bugs and errors, something is not working as intendedfeature/improvement 🆕Use this label to mark new feature or improvement requests
Is your feature request related to a problem? Please describe.
I have recently swapped to RimSort and I wanted to do a full redownload of all of my mods, sadly the process broke halfway through and now I'm left with a ton of Invalid.Item pseudo-mods which can't be used to redownload the actual mods.
The folders, mod steam workshop IDs are all there, there's just no way to simply attempt a redownload using that.
Having a backup of the modlist.xml doesn't help in this case. Describe the solution you'd like
Not deleting the About folders/xml files as to allow proper identification of mods in case something happens.
2-3 Backups (not temp files) of the steamcmd.txt files used to batch download mods, that can be re-used in case of crashes.
Have the mods that are being redownloaded placed in a temporary location until they're validated and then moved over to the final location (Although this is a slower option and not always feasible, it's worth considering nonetheless) Describe alternatives you've considered
An alternative would be allowing batch downloading using the modlist.xml, similar to the way RimPy handles missing mods.
Also a backup of the current/active mod list and inactive mods list would be useful as it can be used to properly track mods in situations such as this.
Another alternative would be caching the About folders of every mod somewhere else, if splitting those and the mod data into two different folders and then "merging" them back through sym/hardlinking isn't possible. Additional context
A bit of extra info: Trying to redownload the mods manually results in a failed download, usually saying that the mod could not be found or that no publishedfield was provided.
For context, this is what over half of my mods list is atm:
A little update: Managed to recover some of the mods through RimPy's downloader (ugh...oh well.) and through manually downloading them directly with steamCMD; Since the folders that were left still had the workshop IDs as names, all it took was a batch script to write the commands out to pass to steamCMD in a file and then running that in steamCMD.
If interested I can post the script here.
Please do, so others can maybe use it if they think it is useful for their own cases! Thanks for finding your own solution and share it, so others can recover their files back if they are originally RimPy users!!
Here's the script, it needs to be put in a .bat file, it will generate a file with almost all of the appropriate download commands based on what folders w/ steam workshop IDs you still have left;
Create said .bat file in your mods folder and run it;
Following that you should have a file named "files1.txt" that you just need to append 'login anonymous' at the beginning of and 'quit' at the very end to;
Also beware that this will mark every present folder, including those of mods downloaded from sources other than Steam Workshop/Through SteamCMD, so you will need to doublecheck for those.
If anyone has a better implementation of this script, please do post it, as this was quickly thrown together.
echo on
setlocal EnableDelayedExpansion
for /d %%a in (*) do (
set fileVariable=%%a
set command1=workshop_download_item 294100
set command2=validate
echo !command1! !fileVariable! !command2! >> files1.txt
)
After running, you must manually run SteamCMD through a Commandprompt window with the +runscript "path_to_files1.txt" parameter, the "files1.txt" will be created in the mods folder, so I advise you to move it somewhere easier to access, preferably in the same folder as SteamCMD itself.
It just occurred to me, right after posting, that this could be simplified by removing the "cd" part of the script and just running the script straight from the mods folder itself. Script update following last edit.
I will likely implement something to get around the issue of lost information when deleting mods. However, it likely can't just be as simple as "don't delete about" because of the case of stuff like unsubscribing from steam mods, and then left over dds files sitting in the folder.
A separate rimsort generated metadata file is what I'm currently thinking of, though this is not high on the priority list right now. Idea is that it'd act as a backup cache for stuff like modname and packageid, and also store rimsort specific metadata for future features like color and user notes.
You can always export your mod list so that you can easily reimport/redownload the mods from it.
Can you elaborate more on the actual issue that occurred? Was this an issue with SteamCMD redownload?
If so, it may be related to #451 for the most part. I am working on improving the interactions between watchdog and the metadata in it's current form to reduce race conditions and make it overall more reliable as well when mods are created/deleted. I have less hassle on that side of things re: SteamCMD, and more so with Steam client, but I am researching options.
It is related to #451 , yes. It's basically the same issue, only thing I have noticed so far is that this specific problem never happened to me when using RimPy;
If I were to take a guess, it's a problem with SteamCMD itself, happens randomly in my case;
An example would be me trying to redownload a mod manually (or update it), adding it to the download list and SteamCMD simply complaining about not finding the mod, although it's clearly available; Restarting RimSort and/or checking to see if the original mod's folder is completely gone generally fixes the issue.
I did notice, however, that RimSort won't fully delete a mod in some arbitrary cases (couldn't really find a way to properly reproduce the issue as it appears to have no rhyme or reason), leaving behind its empty folder which apparently throws SteamCMD for a loop.
accessibility 👀 ℹ️🤓user-friendly optimization, like notifications, warnings and action alertsbugs 🪲bugs and errors, something is not working as intendedfeature/improvement 🆕Use this label to mark new feature or improvement requests
Activity
Ookaishi commentedon May 30, 2024
A little update: Managed to recover some of the mods through RimPy's downloader (ugh...oh well.) and through manually downloading them directly with steamCMD; Since the folders that were left still had the workshop IDs as names, all it took was a batch script to write the commands out to pass to steamCMD in a file and then running that in steamCMD.
If interested I can post the script here.
Chunnyluny commentedon May 31, 2024
Please do, so others can maybe use it if they think it is useful for their own cases! Thanks for finding your own solution and share it, so others can recover their files back if they are originally RimPy users!!
Ookaishi commentedon May 31, 2024
Here's the script, it needs to be put in a .bat file, it will generate a file with almost all of the appropriate download commands based on what folders w/ steam workshop IDs you still have left;
Create said .bat file in your mods folder and run it;
Following that you should have a file named "files1.txt" that you just need to append 'login anonymous' at the beginning of and 'quit' at the very end to;
Also beware that this will mark every present folder, including those of mods downloaded from sources other than Steam Workshop/Through SteamCMD, so you will need to doublecheck for those.
If anyone has a better implementation of this script, please do post it, as this was quickly thrown together.
echo on
setlocal EnableDelayedExpansion
for /d %%a in (*) do (
set fileVariable=%%a
set command1=workshop_download_item 294100
set command2=validate
echo !command1! !fileVariable! !command2! >> files1.txt
)
After running, you must manually run SteamCMD through a Commandprompt window with the +runscript "path_to_files1.txt" parameter, the "files1.txt" will be created in the mods folder, so I advise you to move it somewhere easier to access, preferably in the same folder as SteamCMD itself.
It just occurred to me, right after posting, that this could be simplified by removing the "cd" part of the script and just running the script straight from the mods folder itself.
Script update following last edit.
hk21702 commentedon Aug 19, 2024
I will likely implement something to get around the issue of lost information when deleting mods. However, it likely can't just be as simple as "don't delete about" because of the case of stuff like unsubscribing from steam mods, and then left over dds files sitting in the folder.
A separate rimsort generated metadata file is what I'm currently thinking of, though this is not high on the priority list right now. Idea is that it'd act as a backup cache for stuff like modname and packageid, and also store rimsort specific metadata for future features like color and user notes.
twstagg commentedon Oct 6, 2024
You can always export your mod list so that you can easily reimport/redownload the mods from it.
Can you elaborate more on the actual issue that occurred? Was this an issue with SteamCMD redownload?
If so, it may be related to #451 for the most part. I am working on improving the interactions between watchdog and the metadata in it's current form to reduce race conditions and make it overall more reliable as well when mods are created/deleted. I have less hassle on that side of things re: SteamCMD, and more so with Steam client, but I am researching options.
Ookaishi commentedon Oct 6, 2024
It is related to #451 , yes. It's basically the same issue, only thing I have noticed so far is that this specific problem never happened to me when using RimPy;
If I were to take a guess, it's a problem with SteamCMD itself, happens randomly in my case;
An example would be me trying to redownload a mod manually (or update it), adding it to the download list and SteamCMD simply complaining about not finding the mod, although it's clearly available; Restarting RimSort and/or checking to see if the original mod's folder is completely gone generally fixes the issue.
I did notice, however, that RimSort won't fully delete a mod in some arbitrary cases (couldn't really find a way to properly reproduce the issue as it appears to have no rhyme or reason), leaving behind its empty folder which apparently throws SteamCMD for a loop.