安装 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(越南语)
Українська(乌克兰语)
报告翻译问题











The XML patch errors (Failed to find BaseMechanoid) are gone.
The mod now loads cleanly with "0 failed" from XmlExtensions.
So the issue happens only when the mech definition mods are loaded after Tweaks or missing entirely.
The mod keeps logging XML patch errors like this during loading:
[Mechanoid Tweaks] Patch operation XmlExtensions.ForEachDescendant failed
xpathParent="/Defs/ThingDef[@Name='BaseMechanoid']"
It happens when using Dead Man’s Switch mech mods without VFE Mechanoids.
Probably because there’s no BaseMechanoid node in those mods.
Could you make the patch skip gracefully or use a looser xpath (like //ThingDef[contains(@Name,'Mechanoid')])?
Environment: RimWorld 1.6.4566 rev606, XmlExtensions v1.7+, latest Mechanoid Tweaks.
- Use ChatGPT
Dead Man’s Switch 메카 계열만 사용 시, BaseMechanoid 노드를 찾지 못해
[Mechanoid Tweaks] Patch operation failed 로그가 계속 발생합니다.
VFE Mechanoids 없이도 동작하도록 XPath 조건을 완화하거나,
존재하지 않을 때 자동으로 스킵되게 해주시면 감사하겠습니다.
- 챗지피티 사용
[Mechanoid Tweaks - Start of stack trace]
XmlExtensions.Log(xpath='Defs/ThingDef[2831]/defName'): Failed to find a node referenced by <xpath>
XmlExtensions.ForEachDescendant(storeIn='DEF', currPrefix='Defs/ThingDef[2831]', xpathParent='/Defs/ThingDef[@Name="BaseMechanoid"]'): Error in <apply> in the operation at position=1
[End of stack trace]
Source file: D:\steam\steamapps\workshop\content\294100\2880154462\Patches\Patch.xml
...
[Mechanoid Tweaks] Patch operation XmlExtensions.ForEachDescendant failed
file: D:\steam\steamapps\workshop\content\294100\2880154462\Patches\Patch.xml
file: D:\Program Files\Steam\steamapps\workshop\content\294100\2880154462\Patches\Patch.xml
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch2 (string)
Verse.PatchOperation:Complete (string)
I thought I saw a mod that does that but can't find it anywhere now.