RimWorld

RimWorld

Humanoid Alien Races
This topic has been locked
Theomachist 11 Aug, 2020 @ 4:34am
After 1.2 update
Receiving the following message resulting in a new notification of a 'wanderer join' every game hour, but no actual join attempt.

Error while generating pawn. Rethrowing. Exception: System.NullReferenceException: Object reference not set to an instance of an object
at AlienRace.HarmonyPatches+<>c__DisplayClass48_0.<GainTraitPrefix>b__0 (AlienRace.AlienTraitEntry at) [0x00000] in <dd213a56c4284fa4a752fdd37e07357c>:0
at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate, System.Boolean& found) [0x0003f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at AlienRace.HarmonyPatches.GainTraitPrefix (RimWorld.Trait trait, RimWorld.TraitSet __instance) [0x00046] in <dd213a56c4284fa4a752fdd37e07357c>:0
at (wrapper dynamic-method) RimWorld.TraitSet.RimWorld.TraitSet.GainTrait_Patch1(RimWorld.TraitSet,RimWorld.Trait)
at Garam_RaceAddon.HarmonyPatches_GenerateTraits.Prefix (Verse.Pawn pawn, Verse.PawnGenerationRequest request) [0x00601] in <a9f20dbad4954205898bde83608262d6>:0
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GenerateTraits_Patch3(Verse.Pawn,Verse.PawnGenerationRequest)
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.TryGenerateNewPawnInternal_Patch0(Verse.PawnGenerationRequest&,string&,bool,bool)
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GenerateNewPawnInternal_Patch2(Verse.PawnGenerationRequest&)
at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest request) [0x00183] in <ebd6a2d6c8624e388709acad676da381>:0
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GeneratePawn_Patch2(Verse.PawnGenerationRequest)
at RimWorld.PawnRelationWorker_Sibling.GenerateParent (Verse.Pawn generatedChild, Verse.Pawn existingChild, Verse.Gender genderToGenerate, Verse.PawnGenerationRequest childRequest, System.Boolean newlyGeneratedParentsWillBeSpousesIfNotGay) [0x0011d] in <ebd6a2d6c8624e388709acad676da381>:0
at RimWorld.PawnRelationWorker_Sibling.CreateRelation (Verse.Pawn generated, Verse.Pawn other, Verse.PawnGenerationRequest& request) [0x00040] in <ebd6a2d6c8624e388709acad676da381>:0
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GeneratePawnRelations_Patch3(Verse.Pawn,Verse.PawnGenerationRequest&)
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.TryGenerateNewPawnInternal_Patch0(Verse.PawnGenerationRequest&,string&,bool,bool)
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GenerateNewPawnInternal_Patch2(Verse.PawnGenerationRequest&)
at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest request) [0x00183] in <ebd6a2d6c8624e388709acad676da381>:0
at (wrapper dynamic-method) Verse.PawnGenerator.Verse.PawnGenerator.GeneratePawn_Patch2(Verse.PawnGenerationRequest)
Verse.Log:Error(String, Boolean)
Verse.PawnGenerator:Verse.PawnGenerator.GeneratePawn_Patch2(PawnGenerationRequest)
WandererJoinPlus.WJP_IncidentWorker_WandererJoin_Patch:Prefix(Boolean&, IncidentWorker_WandererJoin&, IncidentParms)
RimWorld.IncidentWorker_WandererJoin:RimWorld.IncidentWorker_WandererJoin.TryExecuteWorker_Patch1(IncidentWorker_WandererJoin, IncidentParms)
RimWorld.IncidentWorker:RimWorld.IncidentWorker.TryExecute_Patch2(IncidentWorker, IncidentParms)
RimWorld.Storyteller:TryFire(FiringIncident)
RimWorld.Storyteller:StorytellerTick()
Verse.TickManager:Verse.TickManager.DoSingleTick_Patch1(TickManager)
Verse.TickManager:TickManagerUpdate()
Verse.Game:Verse.Game.UpdatePlay_Patch2(Game)
Verse.Root_Play:Update()
< >
Showing 1-12 of 12 comments
erdelf  [developer] 11 Aug, 2020 @ 5:29am 
Please provide a full log.
Theomachist 11 Aug, 2020 @ 6:17am 
Originally posted by erdelf:
Please provide a full log.
Will do as soon as I can.

Unfortunately a new and bigger bug has come up since, but probably not at all pertaining to HAR. I'll explore the issues more after work. Thank you for being so quick to respond.
Theomachist 11 Aug, 2020 @ 3:35pm 
Originally posted by Theomachist:
Originally posted by erdelf:
Please provide a full log.
Will do as soon as I can.

Unfortunately a new and bigger bug has come up since, but probably not at all pertaining to HAR. I'll explore the issues more after work. Thank you for being so quick to respond.

Apparently the share logs function is not working at the moment [docs.google.com]

This is just a googledoc text cut&paste of the log i have now. The only messages I'm seeing pertaining to the error on worldgenstep are throwing "AlienRace.HarmonyPatches" but, admittedly, I'm not familiar enough to be sure of anything.
erdelf  [developer] 11 Aug, 2020 @ 7:03pm 
so you are using at least one outdated race mod (I would think it is AndroidTiers). Garam is also not compatible with alien race.
Theomachist 11 Aug, 2020 @ 9:08pm 
Originally posted by erdelf:
so you are using at least one outdated race mod (I would think it is AndroidTiers). Garam is also not compatible with alien race.

I'm not using any android mod races. And Garam has been working without issue for months. Any idea why that would suddenly change? My mods list has not changed in weeks.
erdelf  [developer] 12 Aug, 2020 @ 4:38am 
Garam was never compatible with alien race, as the author deliberately used code from alien race and reworked it without the necessary coding experience. They were never really compatible.
The Android race was a guess based on some configs, you still have an outdated racet that is messing up.
Theomachist 12 Aug, 2020 @ 4:52am 
Originally posted by erdelf:
Garam was never compatible with alien race, as the author deliberately used code from alien race and reworked it without the necessary coding experience. They were never really compatible.
The Android race was a guess based on some configs, you still have an outdated racet that is messing up.

Interesting. The only thing that ever threw a 'noncompatible' message with Garam is RJW <.<

I'll go through and deactivate one race at a time until results or bust. Thank you for your insight.
Theomachist 12 Aug, 2020 @ 11:05am 
I removed every mod race and all of the Garam references and still I receive a failure in worldgenstep

https://gist.github.com/091f8954283e8babd41ce49a3e7cbbfa

The errors lead me to think it's either the only alien race reference left (HAR) or RWoM. Can you see anything more specific?
Last edited by Theomachist; 12 Aug, 2020 @ 11:07am
Torann 12 Aug, 2020 @ 2:06pm 
I'll point out that RWoM hasn't been officially updated to 1.2. Troubleshooting errors when mod authors haven't had a chance to update mods and dependencies isn't going to be very productive.
Theomachist 12 Aug, 2020 @ 2:12pm 
Originally posted by Torann:
I'll point out that RWoM hasn't been officially updated to 1.2. Troubleshooting errors when mod authors haven't had a chance to update mods and dependencies isn't going to be very productive.
Fair point. Though I will add only that I have tried also removing RWOM to no avail. Heck, I've removed everything that said it wasn't updated and still worldgen fails.


at the end of the day, I'm really just trying to figure out the error messages to better understand them in the long run.
erdelf  [developer] 12 Aug, 2020 @ 2:37pm 
yep, Magic isn't updated and messes up pawn gen because of that.
Theomachist 12 Aug, 2020 @ 3:03pm 
Originally posted by erdelf:
yep, Magic isn't updated and messes up pawn gen because of that.
Thank you! I figured it was one or both.
< >
Showing 1-12 of 12 comments
Per page: 1530 50