安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题






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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1751884355