Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
When you enable it, RimWorld will show you an error like this one:
[Color Coded Traits] Patch operation Verse.PatchOperationReplace(/Defs/TraitDef[defName="Transhumanist"]/degreeDatas/li[label="transhumanist"]/label) failed
file: ~/.steam/steam/steamapps/workshop/content/294100/2035956625/Patches/TraitColorPatches.xml
The problem is that the mod looks for a trait labeled "transhumanist" but in 1.3 the label is "body modder" so the mod cannot find the right trait. To fix this, open up the mod file (I bolded it above) in a text editor. Look for the following section and replace the strikethrough text with the underline text:
<xpath>/Defs/TraitDef[defName="Transhumanist"]/degreeDatas/li[label="[strike]transhumanist[/strike] body modder "]/label</xpath>
<value>
<label><color=#808000> Transhumanist Body Modder </color></label>
</value>
Btw, thanks for the link, anyway it's useful.
Not a game breaker, but it'd be great if this mod could be updated to include those other trait mods that have been added since this mod was updated.
This mod patches the XML file definition of traits. So "Beautiful" is replaced by "<color=#00FF00>Beautiful</color>". All the extra stuff is the color definition.
The translation however looks for "Beautiful" (without anything else) to replace it with the translated string. You can imagine working like this:
If Name == "Beautiful" Then
Name = <YOUR LANGUAGE TRANSLATION HERE>
But since the name is NOT "Beautiful" any more, the translation doesn't take.
Not much I can do about it.
So if you could give me some names... :)
It has some downsides however:
- XML patches are processed at load time so you cannot change the colors later
- Since trait captions are actually replaced, the traits are no longer translated
What you suggest is certainly possible but it requires C# code and a different approach. I might look into it if I can find the time.
@Fenerium: Indeed. Back in 1.0 this wasn't the case, but with 1.1 psi powers... I might have to revise it.
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1751884355