Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deduplication of mod files across game instances #4284

Open
10-days-till-xmas opened this issue Jan 9, 2025 · 7 comments
Open

Deduplication of mod files across game instances #4284

10-days-till-xmas opened this issue Jan 9, 2025 · 7 comments
Labels
Core (ckan.dll) Issues affecting the core part of CKAN Enhancement New features or functionality

Comments

@10-days-till-xmas
Copy link

Problem

Having multiple ksp instances can easily go into the 10s of GB, even surpassing 100 for some

Suggestion

Having a folder that contains every mod and then placing hard links in the GameData folder. Symbolic links work too but would be slower. It can be an option since some people wouldn’t want to give ckan administrator permissions, or wouldn’t understand how hard links work and be confused as a result when messing with the mods.

Alternatives

No response

Additional context

No response

@HebaruSan HebaruSan transferred this issue from KSP-CKAN/.github Jan 9, 2025
@HebaruSan HebaruSan added the Duplicate Duplicate of another issue label Jan 9, 2025
@HebaruSan HebaruSan marked this as a duplicate of #4087 Jan 9, 2025
@10-days-till-xmas
Copy link
Author

Ah thanks very much!! This'll save me so much storage 🙏

@10-days-till-xmas
Copy link
Author

Wouldn't hard links be faster though since the link wouldn't have to be resolved?

@HebaruSan

This comment was marked as outdated.

@SofieBrink
Copy link

Duplicate of #4087

I believe OP wants mod files to be symbolic linked / hard linked into instances’ gamedata directories too, not just the stock files. Making this not actually be a duplicate of that issue.

@10-days-till-xmas
Copy link
Author

Duplicate of #4087

I believe OP wants mod files to be symbolic linked / hard linked into instances’ gamedata directories too, not just the stock files. Making this not actually be a duplicate of that issue.

Oh I misread the issue then, yeah this was what I wanted too

@HebaruSan
Copy link
Member

Oh OK; in that case, yes, this is a different suggestion.
I need to consider whether that idea is possible to implement before re-opening it, though. There are reasons we focused on the files that are guaranteed to be identical across instances.

@HebaruSan HebaruSan marked this as not a duplicate of #4087 Jan 9, 2025
@HebaruSan HebaruSan removed the Duplicate Duplicate of another issue label Jan 9, 2025
@HebaruSan HebaruSan changed the title Use hard links to reduce the total size of multiple ksp instances Deduplication of mod files across game instances Jan 9, 2025
@HebaruSan HebaruSan added Enhancement New features or functionality Core (ckan.dll) Issues affecting the core part of CKAN labels Jan 9, 2025
@HebaruSan
Copy link
Member

Alright, I can't say for sure that this is doable, but it also doesn't look impossible yet.
Re-opening for further investigation later.

@HebaruSan HebaruSan reopened this Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core (ckan.dll) Issues affecting the core part of CKAN Enhancement New features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants