Skip to content

Add an option to keep downloaded mod archives for a number of days - #383

Open
fnielson1 wants to merge 3 commits into
Floogen:developmentfrom
fnielson1:keep-downloaded-archives
Open

fnielson1 wants to merge 3 commits into
Floogen:developmentfrom
fnielson1:keep-downloaded-archives

Conversation

@fnielson1

@fnielson1 fnielson1 commented Oct 17, 2026 •

Copy link
Copy Markdown

Summary

Stardrop currently deletes the archive it downloaded from Nexus Mods as soon as the mod is installed, and empties the Nexus download folder every time it starts. This adds an opt-in setting to keep those archives for a number of days, so other tools can pick them up. The default is unchanged.

  • New setting, Keep Downloaded Mod Archives (Days), in Settings under Miscellaneous (ArchiveRetentionDays in Settings.json). It defaults to 0, which keeps the current behavior: the archive is deleted right after installing, and the Nexus folder is emptied on startup.
  • With a value above 0, the archive stays after installing a single mod (the per-mod update button, "install all updates", and "Mod Manager Download" links), and on startup Stardrop only deletes archives in the Nexus folder that are older than that many days.
    Collection installs are still deleted immediately as ModSyncCheck has no use for them.
  • Since an archive can now still be there when the same file is downloaded again, the download opens the file with FileMode.Create instead of FileMode.CreateNew, so it overwrites the old copy. The overwrite only happens once the response has succeeded, so a download that never starts leaves the old archive alone.

Motivation

I maintain Mod Sync Check, which lets a multiplayer host send missing mods to joining players. When the host has a mod's original Nexus archive, it sends that file unchanged, and the player checks its MD5 with Nexus Mods before installing it. Players using Stardrop never had those archives, because Stardrop deleted them. With the setting enabled, Mod Sync Check moves them out of %AppData%\Stardrop\Data\Nexus when the game starts, whether or not the game was launched from Stardrop. Otherwise they're cleaned up once they pass the retention period.

Screenshots

stardrop_4_view_menu stardrop_5_settings_window stardrop_9_before_change stardrop_10_value_changed_to_7

Testing

  • Startup cleanup: with dummy archives aged 0, 3 and 10 days in the Nexus folder, a retention of 7 deleted only the 10-day-old one, and a retention of 0 deleted all three.
  • Opened Settings and checked the new field appears under Miscellaneous, defaults to 0, and saves a changed value (7) to Settings.json.
  • Earlier, with archives kept: downloaded a mod with "Mod Manager Download", it installed normally and the archive stayed in the Nexus folder. Starting the game, Mod Sync Check moved it out and performed its actions correctly.

@Floogen Floogen added the being looked at Currently being investigated label Nov 9, 2026
@Floogen

Floogen commented Nov 9, 2026

Copy link
Copy Markdown
Owner

I can see the use case for retaining mod packages temporarily, but I am hesitant to change the default behavior. If this behavior was opt-in (such as with a setting to specify retention days with 0 as default), I would be more than happy to merge this over!

Thank you for taking the time to help improve Stardrop!

@fnielson1

Copy link
Copy Markdown
Author

I can see the use case for retaining mod packages temporarily, but I am hesitant to change the default behavior. If this behavior was opt-in (such as with a setting to specify retention days with 0 as default), I would be more than happy to merge this over!

Thank you for taking the time to help improve Stardrop!

You bet! Thanks for looking at it! When I get the chance, I'll implement it as an opt-in

Frank Nielson and others added 2 commits November 9, 2026 16:01
Archives downloaded from Nexus Mods are no longer deleted after installing.
They stay in the Nexus folder for mods like ModSyncCheck to move out, and
Stardrop deletes any still there once they are a week old. A download whose
name is already taken by a kept archive overwrites it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WZe5qavYftiucj2HUFfcDC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WZe5qavYftiucj2HUFfcDC
@fnielson1
fnielson1 force-pushed the keep-downloaded-archives branch from 54fe459 to a510c11 Compare November 9, 2026 23:01
Add an "ArchiveRetentionDays" setting, shown in the settings window under
Miscellaneous. It defaults to 0, which keeps the previous behavior: an
archive is deleted as soon as it is installed, and the Nexus folder is
emptied on startup. A value above 0 keeps archives for that many days, and
startup only deletes archives older than that.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WmGx3mbnmBQtiBLQ3BPH7b
@fnielson1 fnielson1 changed the title Keep downloaded mod archives for a week instead of deleting them right away Add an option to keep downloaded mod archives for a number of days Nov 13, 2026
@fnielson1

fnielson1 commented Nov 13, 2026 •

Copy link
Copy Markdown
Author

Thanks for the feedback! It's now opt-in: there is a new Keep Downloaded Mod Archives (Days) setting under Miscellaneous in Settings, and it defaults to 0, which keeps the current behavior (archive deleted right after install, Nexus folder emptied on startup). Any value above 0 keeps archives for that many days. I've updated the PR title and description to match.
@Floogen

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

Labels

being looked at Currently being investigated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants