-
Notifications
You must be signed in to change notification settings - Fork 88
Exclude self from offline TMPE mod check #400
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
Conversation
|
Example content of |
krzychu124
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, LGTM 👍
|
I might make a couple more tweaks to the logging, don't merge yet |
Updated logging, TM:PE detection, also output GUID when mod enables
|
It can now detect any other version of TM:PE, whether online or offline, even versions it's never seen before (like my test build for PR #333). Log file looks like: |
|
This approach should also be far more robust for users running the mod in offline mode (eg. via EA's Origin service) as it will now check for other offline TM:PE installs. |
krzychu124
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, LGTM 👍

Mod performing the check gets its own
Guidfrom:When checking local mods (which only happens when a build is using
RELEASEorRELEASE LABS), the Guid of the mod being inspected is determined by:If the two
Guidvalues match, the local (offline) build is skipped by the compatibility checker, this preventing localRELEASEorRELEASE LABSfrom flagging themselves as duplicate.Not currently working.Idea is to have some unique value on theTrafficManagerMod : IUserMod(currently astatic int Build, but could be on the instance instead) and pass that in to the mod checker so it can filter out "self" when scanning for offline mods.