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

What's New 11.6.4.1 #1317

Merged
merged 8 commits into from
Jan 26, 2022
Merged

What's New 11.6.4.1 #1317

merged 8 commits into from
Jan 26, 2022

Conversation

originalfoo
Copy link
Member

@originalfoo originalfoo commented Jan 25, 2022

@originalfoo originalfoo added the meta Build environment, github environment, etc. label Jan 25, 2022
@originalfoo originalfoo added this to the 11.6.4-hotfix-1 milestone Jan 25, 2022
@originalfoo originalfoo self-assigned this Jan 25, 2022
@krzychu124
Copy link
Member

[Fixed] Null reference error when saving in Asset Editor

Not really, we can't reproduce the problem (me & Kian). No idea what happened. I forgot to test with IMT and NCR, maybe that combination in Asset Editor also result in weird errors, similarly to previous issues with copy&pasting 🤷‍♂️

@originalfoo
Copy link
Member Author

k, I'll remove that one - is #1319 ok to put in (no idea if it will solve #1314 but only one way to find out I guess)?

@originalfoo originalfoo requested a review from a team January 26, 2022 18:36
@krzychu124
Copy link
Member

Could you also check if links are correct. I'm not 100% but I think I saw missing 0 -> links to 11.6.4 instead of 11.6.4.0 so anchor does not work correctly

@originalfoo
Copy link
Member Author

@krzychu124 done - every release now has tested working link

@krzychu124
Copy link
Member

Hmm it opens every time I click on the TM:PE main menu 🤔

@@ -11,7 +11,7 @@ namespace TrafficManager.UI.WhatsNew {

public class WhatsNew {
// bump and update what's new changelogs when new features added
internal static readonly Version CurrentVersion = new Version(11, 6, 4, 0);
internal static readonly Version CurrentVersion = new Version(11,6,4,1);

internal static readonly Version PreviouslySeenVersion = GlobalConfig.Instance.Main.LastWhatsNewPanelVersion;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This cannot be readonly because MarkAsShown won't work properly

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, it's always been that way - here's the original version of the class: 7cd4a30#diff-fa2814c9d64acf4ea7741ee6d806ae2e559b946734217b0c5ad1f0d50566385eR22

Also, why won't MarkAsShown() work? It only updates global config, and the value of that is accessed via PreviouslySeenVersion (which could arguably be a getter/setter tbh)

When global config is loaded, is it trying to update something in WhatsNew.cs?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's the Shown getter that was causing problem. I assume you were seeing it every time when opening TM:PE panel?

will send commit shortly

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm talking about PreviouslySeenVersion -> once mod is initialized it will never change its value so even if you call MarkAsShown(). Yes, to check if we should show we use Shown, but now it returns always the same value no matter if you haven't seen it and the later opened

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@krzychu124 I've just pushed a commit to this PR that should fix it - haven't had time to test it in-game myself yet (will be another 30-45 mins before I get chance to do that)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing...

Copy link
Member

@krzychu124 krzychu124 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nice in-game 👍

@originalfoo originalfoo merged commit 4e43406 into master Jan 26, 2022
@originalfoo originalfoo deleted the whats_new-11.6.4.1 branch January 26, 2022 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Build environment, github environment, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants