rimworld吧 关注:257,044贴子:4,688,609
  • 2回复贴,共1

求助,开发者模式放不了物品,一点就爆红字

只看楼主收藏回复

Exception filling window for LudeonTK.Dialog_Debug: System.NullReferenceException: Object reference not set to an instance of an object
[lbk]Ref 1044D01C[rbk]
at Verse.DebugThingPlaceHelper.IsDebugSpawnable (Verse.ThingDef def, System.Boolean allowPlayerBuildable) [lbk]0x0007e[rbk] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at Verse.DebugThingPlaceHelper+<>c__DisplayClass2_0.<TryPlaceOptionsForStackCount>b__0 (Verse.ThingDef def) [lbk]0x00000[rbk] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at System.Linq.Enumerable+WhereListIterator`1[lbk]TSource[rbk].MoveNext () [lbk]0x00037[rbk] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at Verse.DebugThingPlaceHelper.TryPlaceOptionsForStackCount (System.Int32 stackCount, System.Boolean direct) [lbk]0x0007c[rbk] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at Verse.DebugToolsSpawning.TryPlaceNearThing () [lbk]0x00000[rbk] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at LudeonTK.DebugActionNode.TrySetupChildren () [lbk]0x00010[rbk] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at LudeonTK.DebugActionNode.Enter (LudeonTK.Dialog_Debug dialog) [lbk]0x00000[rbk] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at LudeonTK.Dialog_Debug.DoButton (LudeonTK.DebugActionNode node, System.Single columnWidth, System.Boolean highlight) [lbk]0x0003e[rbk] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at LudeonTK.Dialog_Debug.DrawNode (LudeonTK.DebugActionNode node, System.Single columnWidth, System.Boolean highlight) [lbk]0x00018[rbk] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at LudeonTK.DebugTabMenu.ListOptions (System.Int32 highlightedIndex, System.Single columnWidth) [lbk]0x00065[rbk] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at LudeonTK.Dialog_Debug.DoWindowContents (UnityEngine.Rect inRect) [lbk]0x00208[rbk] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at Verse.Window.InnerWindowOnGUI (System.Int32 x) [lbk]0x001a6[rbk] in <630e2863bc9a4a3493f2eff01e3a9556>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
实在找不到是哪个mod出问题了


IP属地:福建来自Android客户端1楼2025-04-26 11:11回复
    你在 RimWorld 的调试菜单中遇到的 `NullReferenceException`(空引用错误)通常是由于**模组冲突**或**数据定义缺失**导致的。以下是具体原因和解决方法:
    ---
    ### **问题原因**
    当你在调试菜单中尝试生成物品(Debug 生成功能)时,游戏会检查所有可生成的物品定义(`ThingDef`)。如果某个模组错误地引用了一个不存在、未正确加载或配置错误的物品定义,就会触发此错误。(Al的)


    IP属地:四川来自Android客户端2楼2025-04-26 11:56
    回复
      2025-07-30 12:51:46
      广告
      不感兴趣
      开通SVIP免广告
      老实排mod吧


      IP属地:江苏来自Android客户端3楼2025-04-26 16:32
      回复