-
Notifications
You must be signed in to change notification settings - Fork 85
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
Differentiate Labs and Stable & Avoid Multiple Subscriptions #333
Differentiate Labs and Stable & Avoid Multiple Subscriptions #333
Conversation
@krzychu124 Want me to add the changes suggested above to the PR? |
Separated out the branch string, so we can now distinguish between DEBUG, LABS and STABLE. Also minor code rearranging to aid readability.
Using the new LABS token allows us to dynamically add other version of TM:PE (either STABLE or LABS as applicalbe) to the incompatible mod checker. This still won't detect local install versions, but it will drastically reduce number of users who have more than one TM:PE subbed and subsequently reduce the issues with non-saving road config.
Now that we have |
Uhm, what did I do wrong? Ah, it's actually in namespace TrafficManager.UI.MainMenu {
public class VersionLabel : UILabel {
public override void Start() {
size = new Vector2(MainMenuPanel.SIZE_PROFILES[0].MENU_WIDTH, MainMenuPanel.SIZE_PROFILES[0].TOP_BORDER); // TODO use current size profile
text = "TM:PE " + TrafficManagerMod.Version; // <-- this line ########
relativePosition = new Vector3(5f, 5f);
textAlignment = UIHorizontalAlignment.Left;
}
}
} |
VersionLabel.cs references the `Version` value, so made it static like it was before (not ideal, but not a regression either). Also added L, D, or S to denote build branch which will be useful for support purposes.
Ok, that should fix the static error. Here's summary of changes I made:
@krzychu124 Can you check and see if it looks ok to you? |
Ugh, just realised I did the incompatible mod checker bit wrong... Need to do some tweaks. |
Fixed blunder with location of the additions to incompatible mods list.
This adds the branch to the title on the incompatible mods dialog. I've updated language files as applicable; most were untranslated, except `fr` and `ko` - `ko` didn't include the word `Traffic Manager` and `fr` had the translation at the start so easy to modify.
Changed workshop ids to ulong.
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.
Ok, LGTM, but then it would... Needs additional reviewers.
Things to check in review:
|
From #386:
|
AFAIK there are no issues with Linq in Mono, regardless of the target platform. |
Revert to Path.GetFileName() - will fix formatting later.
Use plugin.userModInsstance to get mod name.
Wrap release-only `using` clause in #if/endif
Tidied up `using` clauses, fixed typo in a method summary, autoformat doc.
Catch and log exceptions in main PerformModCheck() method, autoformat doc, removed Linq as no longer required.
Tested everything I can think of and it seems to be working fine now. Would appreciate another set of eyes to check over stuff before merging. I've uploaded a fresh test version of the mod to workshop (published as RELEASE LABS) - it will check for both offline and other workshop versions: https://steamcommunity.com/sharedfiles/filedetails/?id=1781170897 and if you also do a local build set to DEBUG that will only check for the workshop versions. |
Fixes #386 |
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.
Other than these two I think it looks good
Tested, LGTM 👍 |
Added suffix
LABS
to differentiate labs and stable versions.Release LABS
configurationVersion
string is extended withLABS
text e.g.TM:PE 10.21 LABS
Content Manager
,Mod options
tab and label of the mod main menu in-game (label is built fromTM:PE
+ thatVersion
string)Fixes #326, Fixes #386