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
1 是3279733364\GD4.Expansion\Defs\ADDShell_QCWF_Mortar.xml里的ParentName=GenericMortarShellBaseCraftableBase
2 是3279733364\AlphaMech\Patches\Ammo\AM_12x64mm.xml里的ParentName="Base5x100mmCaselessBullet"
这个问题,是在我造了万花筒之后才突然出现这个问题的。在这之前玩了四年都正常用开发者的spawn thing。而且我没有打alpha mech这个mod
然后我测试了很多种情况想要改正,试过只留ce本体,和gdMK4和这个mod,无论留不留ce gun,在测试模式下还是会出现同样的报错。
也试过重新安装游戏和重新下载全部的mod,再重复上面的最简测试还是一样的报错。非常奇怪,大佬求解
XML error: Could not find parent node named "Base5x100mmCaselessBullet" for node "ThingDef".
Inside 3279733364\AlphaMech\Patches\Ammo\AM_12x64mm.xml there is an additional PatchOperationAdd for Bullet_5x100mmS_Sabot, which i think shouldn't be there
when clicking palette tool in dev mode, or when using some dev tools such as spawn thing or spawn thing fullstack, they returns nothing except error.
this only occurs when the patch is used together with alpha mech, i've tested with bare minimum mods and when i remove alpha mech it works normally.
or if i keep alpha mech but i remove this patch, it works normally.
https://gist.github.com/HugsLibRecordKeeper/8c29fdaf6f67b40c54c8c295b4c1d6b6
试用期间无报错,只有警告[MVCF] Not found: CombatExtended.Verb_ShootCE(万花筒)
错误原因分析
MVCF 与 CE 的兼容性问题:
MVCF(可能是一个管理Verb的框架Mod)在尝试移除 CombatExtended.Verb_ShootCE 类时失败,说明CE的射击逻辑未被正确识别或兼容。
CE深度修改了原版射击系统,而MVCF可能未针对CE的Verb类进行适配。
可能的触发场景:
当通过菜单(如装备转移菜单)操作包含CE武器的物品时,MVCF尝试管理CE的Verb,但找不到对应类或方法。
第三方补丁问题:
错误中提到的 RPG_CEPatches 可能是一个自定义补丁或兼容性补丁,可能与当前版本的CE/MVCF不兼容。
这两个错误完全由同一个问题引起,根本原因一致:Owlchemist 的 CherryPicker 模组在 Patch_IsDebugSpawnable:Postfix 补丁中未正确处理 ThingDef def 参数为 null 的情况,导致在调试菜单(如 ImmediateWindow 或 Dialog_Debug)中生成物品时触发空引用异常。
关键证据
相同的错误触发点:
两次异常均指向 DebugThingPlaceHelper.IsDebugSpawnable 方法。
均涉及 CherryPicker 的 Postfix 补丁,且未对 def 进行 null 检查。
相同的调用链:
无论是打开 ImmediateWindow 还是 Dialog_Debug,最终都会调用到 DebugThingPlaceHelper.TryPlaceOptionsForStackCount,而该方法的逻辑依赖 IsDebugSpawnable,导致问题复现。
Verse.GetOrGenerateMapUtility:GetOrGenerateMap (int,Verse.IntVec3,RimWorld.WorldObjectDef)
RimWorld.Planet.TransportPodsArrivalAction_VisitSite:Arrived (System.Collections.Generic.List`1<RimWorld.ActiveDropPodInfo>,int)
RimWorld.Planet.TravelingTransportPods:DoArrivalAction ()
RimWorld.Planet.TravelingTransportPods:<Arrived>b__32_0 ()
Verse.LongEventHandler:UpdateCurrentSynchronousEvent (bool&)
Verse.LongEventHandler:LongEventsUpdate (bool&)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.Update_Patch1 (Verse.Root)
Verse.Root_Play:Update ()
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch3 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.MapGenerator.GenerateContentsIntoMap_Patch2 (System.Collections.Generic.IEnumerable`1<Verse.GenStepWithParams>,Verse.Map,int)
(wrapper dynamic-method)
at GD3.GenStep_CustomStructureGen.Generate (Verse.Map map, Verse.GenStepParams parms) [0x000dd] in <c7a7f523c9f8491d993677c53ef68ebe>:0
at Verse.MapGenerator.GenerateContentsIntoMap (System.Collections.Generic.IEnumerable`1[T] genStepDefs, Verse.Map map, System.Int32 seed) [0x0011f] in <55c979a686a941c79e05527da9299180>:0
- PREFIX MapPreview.Main: Void MapPreview.Patches.Patch_Verse_MapGenerator:GenerateContentsIntoMap(Map map, Int32& seed)
- PREFIX OskarPotocki.VFECore: Void
at KCSG.SymbolUtils.GenerateBuildingAt (Verse.Map map, Verse.IntVec3 cell, KCSG.SymbolDef symbol, KCSG.StructureLayoutDef layout, RimWorld.Faction faction, Verse.ThingDef wallStuff) [0x000da] in <9439f3bd6036415484e0f08b36a75bd5>:0
at KCSG.SymbolUtils.Generate (KCSG.SymbolDef symbol, KCSG.StructureLayoutDef layout, Verse.Map map, Verse.IntVec3 cell, RimWorld.Faction faction, Verse.ThingDef wallForRoom) [0x0014d] in <9439f3bd6036415484e0f08b36a75bd5>:0
[Ref C1AFF0A0]
at Verse.ThingMaker.MakeThing (Verse.ThingDef def, Verse.ThingDef stuff) [0x0004e] in <55c979a686a941c79e05527da9299180>:0
- POSTFIX com.NewRatkin.rimworld.mod: Void NewRatkin.ThingMakeColorHook:Postfix(Thing& __result)
at CombatExtended.Building_TurretGunCE.MakeGun () [0x00001] in <d4f808b7eac94548b83685e1520170fc>:0
at CombatExtended.Building_TurretGunCE.PostMake () [0x00008] in <d4f808b7eac94548b83685e1520170fc>:0
at Verse.ThingMaker.MakeThing (Verse.ThingDef def, Verse.ThingDef stuff) [0x000e4] in <55c979a686a941c79e05527da9299180>:0