-
Notifications
You must be signed in to change notification settings - Fork 8
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
CPS seems to be ignoring AbilityTreeTitles
config
#44
Comments
The current |
Yes, that's from the localisation. |
Hm, weird. I'd suggest adding some logging to |
|
This is because CPS provides its own localisation for SPARKs and mod config load order comes into play as to which mod wins. |
I see. You can use the event I added for the purpose of overriding these localized row names. |
I can't say I like CPS placing the burden onto other mods to work around this. Would it be possible for CPS to set these values if they're all empty? Perhaps in OPTC? |
The only reason CPS provides localization for SPARK per rows (NPSBD did that too btw) is because the base game doesn't, so SPARKs would be left without localization on the new promotion screen. SPARKs don't even get training center perks in base WOTC, so it's not a problem there. This is basically just to ensure consistency. Conditionally changing localization for perk rows of a specific unit is very much the intended use for the event. To answer your question directly, yes we can set up CPS to OPTC patch localization for SPARK perk rows if another mod has not done so, if you don't like the event for some reason, though setting that up is probably gonna take slightly longer than just setting up the event listener. |
I understand that, but CPS potentially overrides any other mod that provides entries for SPARKs in their l10n files. "Community" mods should work a little harder compared to other mods to not get in the way. Ideally NPSBD wouldn't have done this. I suggested OPTC because I was initially worried about CPS again overriding other mods, but the event listener approach is better if CPS has a high priority for its one. Then a normal default-priority listener from another mod will take precedence without the mod author having to worry about it. |
Okay, let's do it that way. |
Yep |
Placing the default SPARK ability tree titles into the localisation files makes it difficult to override them in other mods. Now, CPS sets those tree titles in an 'OverrideLocalizedAbilityTreeTitle' listener and *only* sets values if none are already configured. Fixes #44.
Use listener to set SPARK ability tree titles (#44)
I have this config for SPARKs:
and yet the blank row seems to be ignored:
The text was updated successfully, but these errors were encountered: