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
只知道GenerateStartingPolicies调用了Verse.GenTypes.SameOrSubclassOf导致空引用
https://gist.github.com/HugsLibRecordKeeper/f0c86b01c53f75220b487bc789f5a8a4
AncotLibrary.ScenPart_StartDrones 类中,字段名称是 droneKind(小写开头),但在 XML 中使用了 DroneKind(大写开头)。
<li Class="AncotLibrary.ScenPart_StartDrones">
<def>Ancot_StartingDrone</def>
<DroneKind>Milira_DroneFreight</DroneKind> <!-- 错误的大小写 -->
<DroneAmount>2</DroneAmount> <!-- 可能也是错误的大小写 -->
</li>
该bug在仅仅依次加载了 Harmony,全dlc,Humanoid Alien Races,Ancot Library,Milira Race 的情况下仍能稳定复现。
穿戴其它的米莉拉衣物似乎不会触发该bug,至少瓦尔基里头盔和和代达罗斯头盔是这样的。
报错信息为:
Exception setting up dynamic nodes for 阿加特: System.MissingMethodException: Constructor on type 'AncotLibrary.PawnRenderNode_ApparelAddition' not found.
[Ref A29F926A]
令人奇怪的是,AncotLibrary.PawnRenderNode_ApparelAddition.ctor() 这一符号在mod的 .dll 文件中是存在的,由于本人并不了解 rimworld 的 mod 加载机制,所以无从提供更多信息了。
Would you mind fixing it :)
Exception loading def from file Apparel_ConceptWeaponry.xml: System.ArgumentException: Could not find type named AncotLibrary.CompProperties_WeaponAbility from node <li Class="AncotLibrary.CompProperties_WeaponAbility"><abilityDef>Milira_LaunchRocketSwarmInAreaA</abilityDef></li>
Parameter name: node
Could not resolve cross-reference to Verse.ThingDef named Milira_ConceptWeaponry_Paris (wanter=apparelList)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Could not resolve cross-reference: No Verse.ThingDef named Milira_ConceptWeaponry_Paris found to give to AncotLibrary.CompProperties_AbilityCheckApparelReloadable AncotLibrary.CompProperties_AbilityCheckApparelReloadable
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.ParseHelper:ParseType (string)
Verse.ParseHelper/Parsers`1/<>c__DisplayClass2_0<System.Type>:<Register>b__0 (string)
Verse.ParseHelper:FromString (string,System.Type)
(wrapper dynamic-method) Verse.DirectXmlToObjectNew/DummyTypeToHoldDynamicMethods:ParseAndSetComplexTypeField_System_Type (object,System.Reflection.FieldInfo,System.Xml.XmlNode,System.Type)
(wrapper dynamic-method)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.ParseHelper:ParseType (string)
Verse.ParseHelper/Parsers`1/<>c__DisplayClass2_0<System.Type>:<Register>b__0 (string)
Verse.ParseHelper:FromString (string,System.Type)
(wrapper dynamic-method) V
Verse.LoadedModManager:LoadAllActiveMods (bool)
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__10_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.ParseHelper:ParseType (string)
Verse.ParseHelper/Parsers`1/<>c__DisplayClass2_0<System.Type>:<Register>b__0 (string)
Verse.ParseHelper:FromString (string,System.Type)
(wrapper dynamic-method) Verse.DirectXmlToObjectNew/DummyTypeToHoldDynamicMethods:ParseAndSetComplexTypeField_System_Type (object,System.Reflection.FieldInfo,System.Xml.XmlNode,System.Type)
(wrapper dynamic-method) Verse.DirectXmlToObjectNew/DummyTypeToHoldDynamicMethods:ParseAndReturnDef_Verse_ThingDef (int,int,System.Xml.XmlNode,System.Type)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.DirectXmlToObjectNew.DefFromNodeNew_Patch3 (System.Xml.XmlNode,Verse.LoadableXmlAsset)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.LoadedModManager.ParseAndProcessXML_Patch0
[Ref 3FC367F0]
at AncotLibrary.CompAbilityIntegrationWeaponSystem.get_ShouldHideGizmo () [0x00006] in <2f545bf9b8294daf82202d6b04573be0>:0
at RimWorld.Ability.GizmosVisible () [0x00022] in <ed371ab4349b419183d9be3af652e6dc>:0
at RimWorld.Pawn_AbilityTracker+<GetGizmos>d__13.MoveNext () [0x0013c] in <ed371ab4349b419183d9be3af652e6dc>:0
at System.Collections.Generic.List`1[T].AddEnumerable (System.Collections.Generic.IEnumerable`1[T] enumerable) [0x00059] in (后面省略)
[Ref B84142B]
at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001a6] in <630e2863bc9a4a3493f2eff01e3a9556>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch2 (string)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)
(from typeref, class/assembly AncotLibrary.CompMeleeWeaponCharge_Ability)
at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Reflection.MonoMethod.GetPseudoCustomAttributes () [0x00002] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.MonoCustomAttrs.GetPseudoCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType) [0x0000a] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) [0x0001f] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.MonoCustomAttrs.GetCustomAttributes
Exception filling window for Verse.ImmediateWindow: System.TypeLoadException: Could not resolve type with token 01000040 (from typeref, class/assembly AncotLibrary.CompMeleeWeaponCharge_Ability, AncotLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)
[Ref 4F41A615]