[1.1.2604 rev963] Failed to find Hospitality_Util_DecideRandomLodgerCountHuman

Started by Ragnar-F, April 15, 2020, 10:03:21 AM

Previous topic - Next topic

Ragnar-F

If I want to generate Hospitality_Prisoners quests via debug actions menu, I receive the following error for each difficulty level (35 ... 4000):

Failed to find RimWorld.QuestScriptDef named Hospitality_Util_DecideRandomLodgerCountHuman. There are 65 defs of this type loaded.
Verse.Log:Error(String, Boolean)
Verse.DefDatabase`1:GetNamed(String, Boolean)
System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Reflection.MethodBase:Invoke(Object, Object[])
Verse.GenGeneric:InvokeStaticMethodOnGenericType(Type, Type, String, Object[])
Verse.GenDefDatabase:GetDef(Type, String, Boolean)
Verse.ConvertHelper:Convert(Object, Type, Object)
Verse.ConvertHelper:Convert(Object)
RimWorld.QuestGen.SlateRef`1:TryGetConvertedValue(Slate, QuestScriptDef&)
RimWorld.QuestGen.SlateRef`1:TryGetValue(Slate, QuestScriptDef&)
RimWorld.QuestGen.SlateRef`1:GetValue(Slate)
RimWorld.QuestGen.QuestNode_SubScript:TestRunInt(Slate)
RimWorld.QuestGen.QuestNode:TestRun(Slate)
RimWorld.QuestGen.QuestNode_Sequence:TestRunInt(Slate)
RimWorld.QuestGen.QuestNode:TestRun(Slate)
RimWorld.QuestScriptDef:CanRun(Slate)
Verse.<>c__DisplayClass3_0:<GenerateQuests>b__0(QuestScriptDef)
Verse.<>c__DisplayClass3_3:<GenerateQuests>b__5()
Verse.Dialog_DebugOptionLister:DebugAction(String, Action)
Verse.Dialog_DebugOptionListLister:DoListingItems()
Verse.Dialog_OptionLister:DoWindowContents(Rect)
Verse.Window:InnerWindowOnGUI(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

Exception test running QuestNode_SubScript: System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.QuestGen.QuestNode_SubScript.TestRunInt (RimWorld.QuestGen.Slate slate) [0x00043] in <05d1130b28cf417b9e274c18484a9ec8>:0
  at RimWorld.QuestGen.QuestNode.TestRun (RimWorld.QuestGen.Slate slate) [0x0001b] in <05d1130b28cf417b9e274c18484a9ec8>:0

Slate vars:
allowViolentQuests=True
askerIsNull=true
challengeRating=1
lodgersArePrisoners=true
map=Map-0-PlayerHome
points=35
pointsFactor=1
Verse.Log:Error(String, Boolean)
RimWorld.QuestGen.QuestNode:TestRun(Slate)
RimWorld.QuestGen.QuestNode_Sequence:TestRunInt(Slate)
RimWorld.QuestGen.QuestNode:TestRun(Slate)
RimWorld.QuestScriptDef:CanRun(Slate)
Verse.<>c__DisplayClass3_0:<GenerateQuests>b__0(QuestScriptDef)
Verse.<>c__DisplayClass3_3:<GenerateQuests>b__5()
Verse.Dialog_DebugOptionLister:DebugAction(String, Action)
Verse.Dialog_DebugOptionListLister:DoListingItems()
Verse.Dialog_OptionLister:DoWindowContents(Rect)
Verse.Window:InnerWindowOnGUI(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

Ragnar-F