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

Detect duplicate mods #17

Open
Wolfmyths opened this issue Aug 12, 2023 · 8 comments
Open

Detect duplicate mods #17

Wolfmyths opened this issue Aug 12, 2023 · 8 comments
Labels
Discussion Needs planning before it can be worked on enhancement New feature or request

Comments

@Wolfmyths
Copy link
Owner

There should be a way to detect if there are conflicting mods in mod_overrides.

If there are conflicting mods, ask the user which one to keep enabled.

The user will have the option to ignore this operation, but the mod will be red in the UI.

@Wolfmyths Wolfmyths added enhancement New feature or request Discussion Needs planning before it can be worked on labels Aug 12, 2023
@H4ppy-04
Copy link

Just a quick question, would this be checking if there are duplicate mods / folders?

@Wolfmyths
Copy link
Owner Author

Just a quick question, would this be checking if there are duplicate mods / folders?

No, but that should probably also be a feature.

I'm not sure if detecting conflicting assets is a good idea because I'm pretty sure there's no way to set up a mod load order without rewriting how the program sets up the mods.

Even then, I don't think it would be worth it since the mod manager doesn't inject the mods into the game, I wanna say Super BLT does that instead, but for asset replacements I'm not 100% sure.

The mod manager is just a file manager.

@costantino2000
Copy link

A simple duplicate check might be enough to see if two mods change the same file.
Just having a popup with a list of conflicting mods (showing which files are duplicates) would be enough, instead of relying on an external tool.

@H4ppy-04
Copy link

H4ppy-04 commented Oct 28, 2023 via email

@costantino2000
Copy link

costantino2000 commented Oct 29, 2023

Sadly I discovered that it's not that easy.
After using Dupeguru to try to do the same thing I saw that many mods keep the same file in different directories, and 90% of the results I found were fake duplicates.
I guess a correct approach would also need to check the subpath and maybe the file size, but I don't know if it would work for every case.

@Wolfmyths
Copy link
Owner Author

I guess a correct approach would also need to check the subpath and maybe the file size, but I don't know if it would work for every case.

This might be too much, but do you think we could look at the actual files it's replacing and mark them as being in-use in a list for the whole function. We can use os.walk to achieve this I think. Although it may be performance heavy

@H4ppy-04
Copy link

H4ppy-04 commented Oct 30, 2023 via email

@costantino2000
Copy link

costantino2000 commented Oct 30, 2023

do you think we could look at the actual files it's replacing and mark them as being in-use in a list for the whole function. We can use os.walk to achieve this I think. Although it may be performance heavy

It might work and that was my original idea, but I saw that some mods like custom outfits share the same folder structure, so they will show as duplicates even if they are not.
At this point I think it should be implemented in another tab and show a warning about the possibility of fake duplicates, I don't see any other way of solving the problem easily since I'm not a modder.

@Wolfmyths Wolfmyths changed the title Detect conflicting asset overrides Detect duplicate mods Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Needs planning before it can be worked on enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants