-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
API to query list of other active mods #239
Comments
I understand that it can be useful as a quick workaround in some cases, but I'm not sure I like having such an API, and having mods querying each other. I don't know what use cases you encountered for it, but as with web development, perhaps you can detect the effect that the other mod does instead of looking for the mod itself. This will make the detection more universal in case the mod is changed, forked, etc. |
Thank you for responding! Behaviour detection seems interesting idea. I need to think about it further. It would definitely be a sufficient solution in some cases. For a general case, initially I suspect with Javascript, the behaviour testing would be somewhat simpler:
In summary, the code to detect another mod's interference would be longer than the code to rewrite that interfering mod on your own. I will later document the cases I have encountered and you then can decide on your own. |
Regarding the query API, I guess one could do registry query and see the presence of the interfering mod. Then the Windhawk code does not need to have a special API for that purpose. |
Well, yes, of course writing Windhawk mods is more challenging than writing JavaScript :) but some of the challenges you mentioned, such as understanding the data structures and avoiding crashes, are relevant even if no other mods are involved.
Sure, let me know and let's try to find the best solution for this.
It will only work for the non-portable Windhawk version. The portable Windhawk version keeps the data in .ini files. |
I have observed a couple of times already, that sometimes the mods may interfere with each other.
The problem happens when one of the mods modifies some API, on which the other mod directly or indirectly depends on. Then the other mod needs to compensate or adjust some of its behaviour or configuration.
(Clarification: Here I have in mind interaction between such mods that are generally supposed to do different things. And this motive obviously does not contain situations where the user installs two mods that are fork of each other or otherwise solving same problem in such a way that it is reasonable to have only one of them installed.)
It would be nice if one mod might query Windhawk about the existence of particular other mods. Or if it could just query Windhawk of the list of all active mods. Then the mod could adapt their behaviour or configuration accordingly.
I guess it would be nice to have the following features.
Essential:
Optional:
The text was updated successfully, but these errors were encountered: