-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
[Feature] validation of mod files #3399
Comments
Can you give us any more details about instances when files have been "corrupted"? Which files exactly? What changed about them, extra content, missing content, changed content, etc.? Is it known what caused the corruption? |
|
I think it's not one specific cause, I think several original-problems could cause this, like a crashed game, an interrupted download or so. But the result is often the same, files don't contain what they shouldn't what causes the game to crash... |
I've tried to follow this because I have some issues with some of my mods and tried to fix them this way. Unfortunately is "Reinstall" incapable of reinstalling mods that are depended on by others. In my case I've tried to "fix" ModuleManager as instructed, and now I purged it and can't reinstall it, because it complains about
Now I have to uninstall almost every single mod just to reinstall them and hope I don't lose configs along the way, which was exactly what I was trying to prevent in the first place : ( |
@BloodyRain2k, that sounds like #3725, fixed in #3726. You could try the dev build if you're interested in testing: |
@HebaruSan thanks, that version seems to queue the required actions properly so no errors occur. |
@ACH1980, you said you see this corruption often; can you find an example or two and share some links or screenshots? It would really help us to understand how best to handle it. Thanks! |
ATM I don't have any of these as my PC failed recently and on my laptop I've a pretty fresh setup with also much less mods so I currently doesn't have this issues and as I have not many mods the likelihood of the issue appearing soon is not very big. Anyway I can give you some thoughts about this: That's also why I marked it as a feature request and not as a bug report 🫣 |
@ACH1980, thanks. What about reports by other users? If this happens often, have you seen any recent reports of it? |
No, but I don't read that many KSP-Mod related issues. |
OK, in that case we don't have enough information to work on this. If you do manage to capture observations of this problem or see them reported by anyone else, please do let us know so we can re-open this. |
Problem
Is your feature request related to a problem? Please describe.
I see often problems (from me or even from others) caused by corrupted mod files.
Suggestions
Describe the solution you'd like
I'd suggest to build a validation function (like steams "validate game Files", which obviously doesn't work for mods as steam doesn't know how they should look like) to validate the files of the mods. The only problem would be dynamic mod files. One solution would be to make a file which lists them to ignore in validation (like .gitignore for git; maybe something like .ckanignore to ignore when validating or .validateignore), or another idea would be to list the (maybe) corrupted files and let the user choose if to replace all or which to replace.
Describe alternatives you've considered
An alternative that would also bring a acceptable solution would be a "ReInstall"-Button to reinstall installed mods easily and not from cache (because obviously if they're broken by first download they're broken there too). This would make reinstallation much easier, however the user would still need to figure out which mods are broken.
Additional context
I think validation should be possible by hashing the files (best idea I think hashing every mod file separately, because so there would be the possibility to find which files caused the validation to fail).
The text was updated successfully, but these errors were encountered: