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

Support for incompatible mods in Info.json #50

Open
andreamatt opened this issue Jun 17, 2020 · 5 comments
Open

Support for incompatible mods in Info.json #50

andreamatt opened this issue Jun 17, 2020 · 5 comments

Comments

@andreamatt
Copy link

I think it would be useful to have a list of incompatible mods after the required ones in the Info.json

@newman55
Copy link
Owner

This can add problems to users if another mod author adds compatibility.

@andreamatt
Copy link
Author

Maybe just show a warning, not an error?

@newman55
Copy link
Owner

The ModEntry object has the CustomRequirements field, so you can write various comments in it.
Example.

var mod = UnityModManager.FindMod("incompatiblemod");
if (mod != null)
{
    modEntry.CustomRequirements = $"Mod {mod.Info.DisplayName} incompatible";
}

@newman55
Copy link
Owner

Your variant is of course better, I will add it someday.

@Megacrafter127
Copy link
Contributor

This can add problems to users if another mod author adds compatibility.

The compatibility patch mod would need to list the mods it makes compatible as requirements. Meaning incompatibility notes should be ignored if a mod is being loaded that requires both incompatible mods, since it can be presumed that the mod addresses the incompatibility in some way shape or form.
But this method of resolving stuff requires one mod to be aware of other mods' requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants