Skip to content

Suggestion: Don't delete the About folders/xml files when recursively deleting/batch redownloading mods #380

Closed

Description

@Ookaishi

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

  1. Not deleting the About folders/xml files as to allow proper identification of mods in case something happens.
  2. 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.
  3. 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:
    image

Edited to add another alternative solution

Activity

  1. Ookaishi commented on May 30, 2024

    @Ookaishi
    Author

    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.

  2. Chunnyluny commented on May 31, 2024

    @Chunnyluny
    Contributor

    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!!

  3. added
    bugs 🪲
    feature/improvement 🆕
    accessibility 👀 ℹ️🤓
    on May 31, 2024
  4. Ookaishi commented on May 31, 2024

    @Ookaishi
    Author

    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.

  5. hk21702 commented on Aug 19, 2024

    @hk21702
    Collaborator

    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.

  6. twstagg commented on Oct 6, 2024

    @twstagg
    Collaborator

    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.

  7. Ookaishi commented on Oct 6, 2024

    @Ookaishi
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibility 👀 ℹ️🤓bugs 🪲feature/improvement 🆕

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions