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

Manually calling ViewModel.RefreshValues is causing issues in other mods #216

Open
adwitkow opened this issue Mar 30, 2023 · 1 comment
Open

Comments

@adwitkow
Copy link

Mods running in the example (in that order):

  • Diplomacy
  • BannerKings
  • Encyclopedia Extender Reforged

Diplomacy calling ViewModel.RefreshValues in its mixin constructor:
image

Diplomacy not calling ViewModel.RefreshValues in its mixin constructor:
image

The issue in reality in this case is caused by BannerKings hacking its way through the mixin (clearing the info section completely, re-applying vanilla values manually, doing weird checks if it's done it already but clearing the values anyway, it's really weird and I don't understand why it's the way it is) and Encyclopedia Extender not doing any checks if it's already applied its values or not, just adding everything when OnRefresh is called (causing it to apply twice). But in reality in my opinion if it's not necessary to call the RefreshValues method then it would be cleaner for everyone to just not call it.

Not sure about granting fiefs, but removing this line didn't break the messenger functionality for me.

@DAOWAce
Copy link

DAOWAce commented Dec 7, 2023

This is still an issue today.

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

2 participants