RimWorld

RimWorld

Mutated Pawn
wowhvb  [developer] 15 Jul @ 6:14pm
HEX: Malinovsky error
Error in WorldGenStep: System.ArgumentNullException: Value cannot be null.
Parameter name: collection
[Ref 6341FD0E] Duplicate stacktrace, see ref for original
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
RimWorld.Planet.WorldGenerator:GeneratePlanetLayer (RimWorld.Planet.PlanetLayer,string,int)
RimWorld.Planet.WorldGenerator:GenerateWorld (single,string,RimWorld.Planet.OverallRainfall,RimWorld.Planet.OverallTemperature,RimWorld.Planet.OverallPopulation,RimWorld.Planet.LandmarkDensity,System.Collections.Generic.List`1<RimWorld.FactionDef>,single)
RimWorld.Page_CreateWorldParams:<CanDoNext>b__20_0 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_0 ()

Error while generating pawn. Rethrowing. Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: collection
[Ref 6340E93D] Duplicate stacktrace, see ref for original
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.PawnGenerator:GeneratePawn (Verse.PawnGenerationRequest)
RimWorld.Faction:TryGenerateNewLeader ()
RimWorld.FactionGenerator:NewGeneratedFaction (RimWorld.Planet.PlanetLayer,RimWorld.FactionGeneratorParms)
RimWorld.FactionGenerator:CreateFactionAndAddToManager (RimWorld.Planet.PlanetLayer,RimWorld.FactionDef)
RimWorld.FactionGenerator:AddFactionToManager (RimWorld.Planet.PlanetLayer,RimWorld.FactionDef)
RimWorld.FactionGenerator:InitializeFactions ...

Error in WorldGenStep: System.ArgumentNullException: Value cannot be null.
Parameter name: collection
[Ref 6341FD0E]
[0x00006] in <51fded79cd284d4d911c5949aff4cb21>:0
<0x2410f027930 + 0x0026a> <unknown method>
at Buggy.RimworldMod.MutatedPawn.GenerateGenesPatch.Postfix (Verse.Pawn pawn, RimWorld.XenotypeDef xenotype, Verse.PawnGenerationRequest request) [0x000ab] in <e16ab74344a24b00a5cf4d0ed5a28b24>:0
at Verse.PawnGenerator.GenerateGenes (Verse.Pawn pawn, RimWorld.XenotypeDef xenotype, Verse.PawnGenerationRequest request) [0x003b4] in <fcfab19af5d14a608a65ebd77f29482f>:0
- POSTFIX Buggy.MutatedPawn: Void Buggy.RimworldMod.MutatedPawn.GenerateGenesPatch:Postfix(Pawn pawn, XenotypeDef xenotype, PawnGenerationRequest request)
....

Error in WorldGenStep: System.ArgumentNullException: Value cannot be null.
Parameter name: collection
[Ref 6341FD0E]
[0x00006] in <51fded79cd284d4d911c5949aff4cb21>:0
<0x2410f027930 + 0x0026a> <unknown method>
at Buggy.RimworldMod.MutatedPawn.GenerateGenesPatch.Postfix (Verse.Pawn pawn, RimWorld.XenotypeDef xenotype, Verse.PawnGenerationRequest request) [0x000ab] in <e16ab74344a24b00a5cf4d0ed5a28b24>:0
at Verse.PawnGenerator.GenerateGenes (Verse.Pawn pawn, RimWorld.XenotypeDef xenotype, Verse.PawnGenerationRequest request) [0x003b4] in <fcfab19af5d14a608a65ebd77f29482f>:0
- POSTFIX Buggy.MutatedPawn: Void Buggy.RimworldMod.MutatedPawn.GenerateGenesPatch:Postfix(Pawn pawn, XenotypeDef xenotype, PawnGenerationRequest request)
....

Exception from long event: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 6C531BCE]
at Buggy.RimworldMod.MutatedPawn.MutatedPawnMod.ConvertStringToGeneDefList (System.String str) [0x00000] in <e16ab74344a24b00a5cf4d0ed5a28b24>:0
at Buggy.RimworldMod.MutatedPawn.MutatedPawnMod.Initialize () [0x00010] in <e16ab74344a24b00a5cf4d0ed5a28b24>:0
at Buggy.RimworldMod.MutatedPawn.MutatedPawnMod.<.ctor>b__4_0 () [0x00000] in <e16ab74344a24b00a5cf4d0ed5a28b24>:0
at Verse.LongEventHandler.UpdateCurrentSynchronousEvent (System.Boolean& sceneChanged) [0x0001d] in <fcfab19af5d14a608a65ebd77f29482f>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.LongEventHandler:UpdateCurrentSynchronousEvent (bool&)
Verse.LongEventHandler:LongEventsUpdate (bool&)
Verse.Root:Update ()
Verse.Root_Entry:Update ()

Exception from long event: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 6C531BCE]
at Buggy.RimworldMod.MutatedPawn.MutatedPawnMod.ConvertStringToGeneDefList (System.String str) [0x00000] in <e16ab74344a24b00a5cf4d0ed5a28b24>:0
at Buggy.RimworldMod.MutatedPawn.MutatedPawnMod.Initialize () [0x00010] in <e16ab74344a24b00a5cf4d0ed5a28b24>:0
at Buggy.RimworldMod.MutatedPawn.MutatedPawnMod.<.ctor>b__4_0 () [0x00000] in <e16ab74344a24b00a5cf4d0ed5a28b24>:0
at Verse.LongEventHandler.UpdateCurrentSynchronousEvent (System.Boolean& sceneChanged) [0x0001d] in <fcfab19af5d14a608a65ebd77f29482f>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.LongEventHandler:UpdateCurrentSynchronousEvent (bool&)
Verse.LongEventHandler:LongEventsUpdate (bool&)
Verse.Root:Update ()
Verse.Root_Entry:Update ()
Last edited by wowhvb; 15 Jul @ 6:17pm
< >
Showing 1-12 of 12 comments
Thank you for your feedback and the time you spent on my problem!

After your last fix, I was finally able to get into the mod settings, change them, and exit with a save. Why did I do that? Because before I reconfigured the mod, the generation error persisted, but after that, it disappeared. I still don't quite understand why I couldn't get into the mod settings all day yesterday, but after that, the error that caused the world generation problem disappeared. I haven't tried this mod in a save, but something tells me that if no red errors popped up in the developer console during world generation, then everything went well.

If any errors occur later, I'll write back, of course, but again, logically, they shouldn't. It's an honor for me to see that you're interested in solving my problem, and I really hope that I can thank you somehow.
wowhvb  [developer] 16 Jul @ 1:10am 
I don't know exactly why either. Most probably because I changed the code for mod settings UI (removed HugsLibs dependency). Anyway, I am glad you can play now. Thanks for taking time and helping troubleshooting. Have a great time with 1.6 and the new DLC! Cheers!
Okay, I managed to launch the world, but both my device and the developer console began to burst into the same type of errors, which were repeated for each of my pawns or another object in the map.

Exception ticking Corpse_Human37461 (at (133, 0, 197)): System.DivideByZeroException: Attempted to divide by zero.
[Ref D27014E1] Duplicate stacktrace, see ref for original
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.TickList:Tick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch2 (Verse.TickManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.TickManagerUpdate_Patch2 (Verse.TickManager)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
Verse.Root_Play:Update ()

Also, I was wondering what would happen if I reinstalled the mod and reset all its settings to default. Well, I encountered my previous world generation error, and again, it also fixed itself when I changed the settings.
wowhvb  [developer] 16 Jul @ 11:42am 
What are the settings that you have when the errors occur?
When I (re)install mod, all numbers of settings are set to 0. Don't really know, but with cause an error while generate a world.
All other tries i faced with error which i wrote higher
wowhvb  [developer] 16 Jul @ 12:01pm 
There are 2 tick setttings (default value 5000). I think they are the problems here. Could you set them to something positive and not 0 and try again?
Yes, your guess was correct. I changed "Define X/Y" to a positive value and ran dev quictest. Pawns were generated, generated with mutations and the console gave NO errors.
wowhvb  [developer] 16 Jul @ 1:05pm 
Thank you for you feedback. I need to make sure these numbers are not zero. Cheers!
wowhvb  [developer] 16 Jul @ 5:56pm 
I updated the mod to make sure X and Y are always in bound. Settings were changed again. Please visit the mod settings window and make sure things are to your liking. If you encounter any problem, let me know!
After the update, the "Define X/Y" parameters were set to base 5000. After running in dev quicktest, no errors appeared. I think this can be considered a success)
wowhvb  [developer] 17 Jul @ 8:16am 
Thank you for your feedback!!! Cheers!
< >
Showing 1-12 of 12 comments
Per page: 1530 50