Page 1 of 1

Missing technology modifier-descriptions for character bonuses?

Posted: Wed Nov 06, 2019 7:12 pm
by eradicator
I feel like i've asked this before...
I noticed that the following bonus modifiers have no translation in the technology tooltip:

Code: Select all

modifier-description.character-crafting-speed
modifier-description.character-running-speed
modifier-description.character-build-distance
modifier-description.character-reach-distance
modifier-description.character-item-drop-distance
modifier-description.character-resource-reach-distance
modifier-description.character-item-pickup-distance
modifier-description.character-loot-pickup-distance
Of course i can manually fix them for english:

Code: Select all

[modifier-description]
character-crafting-speed=Crafting speed: +__1__
character-running-speed=Running speed: +__1__
character-build-distance=Building distance: +__1__
character-reach-distance=Manipulation distance: +__1__
character-item-drop-distance=Item drop distance: +__1__
character-resource-reach-distance=Mining distance: +__1__
character-item-pickup-distance=Item pickup distance: +__1__
character-loot-pickup-distance=Loot pickup distance: +__1__
But this seems weird as they are already correctly translated in the "Bonus Gui". I've found this old thread dealing with a similar problem, but i'm not sure if that discussion was more about modded "nothing" modifiers than built-in ones. And the locale system has no support for dynamically cross-referencing the translated strings from "[gui-bonus]".
____________________

So why are these only translated in the bonus gui? Would it be realistic to request them to be officially added?

Re: Missing technology modifier-descriptions for character bonuses?

Posted: Thu Nov 07, 2019 7:40 pm
by Honktown
If the strings have the same name, can you just copy and paste the entries from one locale to another?

If you tell me what I was looking for, I could write a script that does it for all locales/strings that are in one but not the other. I'd be more worried they have different names.

Re: Missing technology modifier-descriptions for character bonuses?

Posted: Thu Nov 07, 2019 8:24 pm
by eradicator
The issue is not "how do i script around base game issues".
The issue is "why is this an issue in the first place and how do i get it fixed properly?".

Re: Missing technology modifier-descriptions for character bonuses?

Posted: Thu Nov 07, 2019 9:30 pm
by Honktown
To get it fixed properly, locale strings should have a global scope, and be accessed from there. That would be it. There could be a potential performance issue, depending on how Lua handles the key to a string (there would be a lot of strings in there).

Presumably strings have scoping, and it wasn't enough of an issue to go back and fix it for everything, as for the reason.