RimWorld

RimWorld

WVC - Tweaks and Patches
 This topic has been pinned, so it's probably important
Sergkart  [developer] 6 Dec, 2023 @ 8:35pm
Bug Reports
If you find a bug try this load order and only then report a bug:

- Harmony
- Core
- Royalty (Optional)
- Ideology (Optional)
- Biotech (Optional)
- Vanilla Expanded Framework
- XML Extensions
- WVC - Tweaks and Patches

Provide a log!
Also, please provide a HugsLib log or Log Publisher log

Any logs are allowed, but it is desirable that the number of mods be minimized as much as possible. Reading a log for thousands of lines is very inconvenient and very often useless due to the abundance of spam.

Don't skimp on information!
The more information you provide, the better. All the little things matter. Enabled/disabled settings, actions that led to the error, as well as ways to repeat errors.

Please note that if your bug report does not contain any important information or a meaningful log, then this is a waste of my time and yours.

If the game crashes
Start the game with the modlist specified above

Go to settings and click the Open button next to Log file folder

And send both logs:

Player.log
Player-prev.log

Please note that the second log is the log from the previous launch of the game and it is overwritten by every second launch.
< >
Showing 1-6 of 6 comments
csc001 28 Jan @ 7:37pm 
Error in static constructor of WVC_Tweaks.PostInitializationMain: System.TypeInitializationException: The type initializer for 'WVC_Tweaks.PostInitializationMain' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object
[Ref 7D32FDD0]
at <0x229d7cc8e20 + 0x0019f> <unknown method>
--- End of inner exception stack trace ---
[Ref CB78DFD7]
at (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) [0x0002a] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Verse.StaticConstructorOnStartupUtility.CallAll () [0x00028] in <69945a8ed6c540cf90b578de735e0605>:0
- TRANSPILER net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.ExceptionsAndActivatorHandler:Transpiler(IEnumerable`1 instructions, MethodBase original)
- POSTFIX PerformanceOptimizer.Main: Void PerformanceOptimizer.InitializeMod:Postfix()
- POSTFIX LunarFramework.Bootstrap: Void LunarFramework.Internal.Patches.Patch_Verse_StaticConstructorOnStartupUtility:CallAll_Postfix()
- POSTFIX net.avilmask.rimworld.mod.NonUnoPinata: Void NonUnoPinata.Patches.StaticConstructorOnStartupUtility_CallAll_NonUnoPinataPatch:Postfix()
- POSTFIX VanillaTradingExpandedEarly.Mod: Void VanillaTradingExpanded.Initializer:Postfix()
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch5 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.StaticConstructorOnStartupUtility.CallAll_Patch4 ()
Verse.PlayDataLoader/<>c:<DoPlayLoad>b__4_4 ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.LongEventHandler.ExecuteToExecuteWhenFinished_Patch0 ()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent ()
Verse.LongEventHandler:LongEventsUpdate (bool&)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.Update_Patch1 (Verse.Root)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Entry.Update_Patch0 (Verse.Root_Entry)



something wrong hope fix,thank u mod again
Sergkart  [developer] 30 Jan @ 12:41am 
Originally posted by csc001:
Error in static constructor of WVC_Tweaks.PostInitializationMain: System.TypeInitializationException: The type initializer for 'WVC_Tweaks.PostInitializationMain' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object
[Ref 7D32FDD0]
at <0x229d7cc8e20 + 0x0019f> <unknown method>
--- End of inner exception stack trace ---
[Ref CB78DFD7]
at (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) [0x0002a] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Verse.StaticConstructorOnStartupUtility.CallAll () [0x00028] in <69945a8ed6c540cf90b578de735e0605>:0
- TRANSPILER net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.ExceptionsAndActivatorHandler:Transpiler(IEnumerable`1 instructions, MethodBase original)
- POSTFIX PerformanceOptimizer.Main: Void PerformanceOptimizer.InitializeMod:Postfix()
- POSTFIX LunarFramework.Bootstrap: Void LunarFramework.Internal.Patches.Patch_Verse_StaticConstructorOnStartupUtility:CallAll_Postfix()
- POSTFIX net.avilmask.rimworld.mod.NonUnoPinata: Void NonUnoPinata.Patches.StaticConstructorOnStartupUtility_CallAll_NonUnoPinataPatch:Postfix()
- POSTFIX VanillaTradingExpandedEarly.Mod: Void VanillaTradingExpanded.Initializer:Postfix()
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch5 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.StaticConstructorOnStartupUtility.CallAll_Patch4 ()
Verse.PlayDataLoader/<>c:<DoPlayLoad>b__4_4 ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.LongEventHandler.ExecuteToExecuteWhenFinished_Patch0 ()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent ()
Verse.LongEventHandler:LongEventsUpdate (bool&)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.Update_Patch1 (Verse.Root)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Entry.Update_Patch0 (Verse.Root_Entry)



something wrong hope fix,thank u mod again

Repeat the bug on the modlist specified in the header and send the full log. Also describe how to reproduce the bug (What options are enabled?).
Veythara 25 Jul @ 8:03pm 
set up the modlist in the mentioned order, with the configs i had set in my modpack to seclude the mods responsible for the faction generation issue due to ideology ritual precepts breaking.
https://gist.github.com/HugsLibRecordKeeper/136c54b679c89d932219e865c668872a

Options enabled:
-Thing Category Filter
-Eyeless Implants
-Lagfree Torches
-Filth Disappears on its own
-No More Strangers
-Not So Long Party
-Stop Eat my Trees
-Thralls is Thralls
-Everything in Universal Conduit
-Big Trees

In General C#:
Building Stuff Patch
Enable Auto Features
Auto Letter Close


Edit:
I was able to pin it down to the Not so long Party setting due to an XML error that pops up on start up with it enabled (kinda blind sometimes)

Exception loading def from file Ritual_Behaviors.xml: System.ArgumentException: Exception parsing Verse.IntRange from "-0.7" ---> System.FormatException: Input string was not in a correct format.
[Ref 832276E5]
at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Int32.Parse (System.String s, System.Globalization.NumberStyles style, System.IFormatProvider provider) [0x0001d] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Convert.ToInt32 (System.String value, System.IFormatProvider provider) [0x00005] in <51fded79cd284d4d911c5949aff4cb21>:0
at Verse.IntRange.FromString (System.String s) [0x00016] in <d2f9716cc2ac4cda9c2a174cc147bf37>:0
at Verse.ParseHelper.ParseIntRange (System.String str) [0x00000] in <d2f9716cc2ac4cda9c2a174cc147bf37>:0
(wrapper delegate-invoke) System.Func`2[System.String,Verse.IntRange].invoke_TResult_T(string)
at Verse.ParseHelper+Parsers`1+<>c__DisplayClass2_0[T].<Register>b__0 (System.String str) [0x00000] in <d2f9716cc2ac4cda9c2a174cc147bf37>:0
at Verse.ParseHelper.FromString (System.String str, System.Type itemType) [0x00092] in <d2f9716cc2ac4cda9c2a174cc147bf37>:0
--- End of inner exception stack trace ---
[Ref 580E1602]
at Verse.ParseHelper.FromString (System.String str, System.Type itemType) [0x00192] in <d2f9716cc2ac4cda9c2a174cc147bf37>:0
(wrapper dynamic-method) Verse.DirectXmlToObjectNew+DummyTypeToHoldDynamicMethods.ParseAndSetComplexTypeField_Verse_IntRange(object,System.Reflection.FieldInfo,System.Xml.XmlNode,System.Type)
(wrapper dynamic-method) Verse.DirectXmlToObjectNew+DummyTypeToHoldDynamicMethods.ParseAndReturnDef_RimWorld_RitualBehaviorDef(int,int,System.Xml.XmlNode,System.Type)
at Verse.DirectXmlToObjectNew.DefFromNodeNew (System.Xml.XmlNode node, Verse.LoadableXmlAsset loadingAsset) [0x000dd] in <d2f9716cc2ac4cda9c2a174cc147bf37>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.DirectXmlToObjectNew:DefFromNodeNew (System.Xml.XmlNode,Verse.LoadableXmlAsset)
Verse.LoadedModManager:ParseAndProcessXML (System.Xml.XmlDocument,System.Collections.Generic.Dictionary`2<System.Xml.XmlNode, Verse.LoadableXmlAsset>,bool)
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 ()
Last edited by Veythara; 25 Jul @ 8:13pm
Sergkart  [developer] 25 Jul @ 10:20pm 
Originally posted by Veythara:
set up the modlist in the mentioned order, with the configs i had set in my modpack to seclude the mods responsible for the faction generation issue due to ideology ritual precepts breaking.
https://gist.github.com/HugsLibRecordKeeper/136c54b679c89d932219e865c668872a

Options enabled:
-Thing Category Filter
-Eyeless Implants
-Lagfree Torches
-Filth Disappears on its own
-No More Strangers
-Not So Long Party
-Stop Eat my Trees
-Thralls is Thralls
-Everything in Universal Conduit
-Big Trees

In General C#:
Building Stuff Patch
Enable Auto Features
Auto Letter Close


Edit:
I was able to pin it down to the Not so long Party setting due to an XML error that pops up on start up with it enabled (kinda blind sometimes)

Exception loading def from file Ritual_Behaviors.xml: System.ArgumentException: Exception parsing Verse.IntRange from "-0.7" ---> System.FormatException: Input string was not in a correct format.
[Ref 832276E5]
at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Int32.Parse (System.String s, System.Globalization.NumberStyles style, System.IFormatProvider provider) [0x0001d] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Convert.ToInt32 (System.String value, System.IFormatProvider provider) [0x00005] in <51fded79cd284d4d911c5949aff4cb21>:0
at Verse.IntRange.FromString (System.String s) [0x00016] in <d2f9716cc2ac4cda9c2a174cc147bf37>:0
at Verse.ParseHelper.ParseIntRange (System.String str) [0x00000] in <d2f9716cc2ac4cda9c2a174cc147bf37>:0
(wrapper delegate-invoke) System.Func`2[System.String,Verse.IntRange].invoke_TResult_T(string)
at Verse.ParseHelper+Parsers`1+<>c__DisplayClass2_0[T].<Register>b__0 (System.String str) [0x00000] in <d2f9716cc2ac4cda9c2a174cc147bf37>:0
at Verse.ParseHelper.FromString (System.String str, System.Type itemType) [0x00092] in <d2f9716cc2ac4cda9c2a174cc147bf37>:0
--- End of inner exception stack trace ---
[Ref 580E1602]
at Verse.ParseHelper.FromString (System.String str, System.Type itemType) [0x00192] in <d2f9716cc2ac4cda9c2a174cc147bf37>:0
(wrapper dynamic-method) Verse.DirectXmlToObjectNew+DummyTypeToHoldDynamicMethods.ParseAndSetComplexTypeField_Verse_IntRange(object,System.Reflection.FieldInfo,System.Xml.XmlNode,System.Type)
(wrapper dynamic-method) Verse.DirectXmlToObjectNew+DummyTypeToHoldDynamicMethods.ParseAndReturnDef_RimWorld_RitualBehaviorDef(int,int,System.Xml.XmlNode,System.Type)
at Verse.DirectXmlToObjectNew.DefFromNodeNew (System.Xml.XmlNode node, Verse.LoadableXmlAsset loadingAsset) [0x000dd] in <d2f9716cc2ac4cda9c2a174cc147bf37>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.DirectXmlToObjectNew:DefFromNodeNew (System.Xml.XmlNode,Verse.LoadableXmlAsset)
Verse.LoadedModManager:ParseAndProcessXML (System.Xml.XmlDocument,System.Collections.Generic.Dictionary`2<System.Xml.XmlNode, Verse.LoadableXmlAsset>,bool)
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 ()

Disable the option that reduces the duration of rituals.
Veythara 25 Jul @ 10:23pm 
already done, just wanted to report it and share my own findings
Sergkart  [developer] 25 Jul @ 10:26pm 
Originally posted by Veythara:
already done, just wanted to report it and share my own findings

Thanks for the report. I plan to rework this option in the future, don't use it for now.
< >
Showing 1-6 of 6 comments
Per page: 1530 50