Open vegapnk opened 1 year ago
I got another error regarding this:
Error creating pregnancy in Nightmare's womb, father Campos: System.NullReferenceException: Object reference not set to an instance of an object
at RJW_BGS.RaceGeneDef_Helper.ValidRaceGeneDefs (Verse.Pawn pawn) [0x0007f] in <60ac45948c154fe6924434a0fe654285>:0
at RJW_BGS.RaceGeneDef_Helper.GetRaceGeneDefInternal (Verse.Pawn pawn) [0x00000] in <60ac45948c154fe6924434a0fe654285>:0
at RJW_BGS.InheritanceUtility.SelectGenes (Verse.Pawn pawn) [0x00006] in <60ac45948c154fe6924434a0fe654285>:0
at RJW_BGS.InheritanceUtility.AnimalInheritedGenes (Verse.Pawn father, Verse.Pawn mother) [0x000b8] in <60ac45948c154fe6924434a0fe654285>:0
at RJW_BGS.Patch_RJW_BestialityPregnancyUtility.AddGenes (Verse.Pawn mother, Verse.Pawn dad, rjw.Hediff_BasePregnancy& __instance) [0x0008c] in <60ac45948c154fe6924434a0fe654285>:0
at (wrapper dynamic-method) rjw.Hediff_BasePregnancy.rjw.Hediff_BasePregnancy.Initialize_Patch1(rjw.Hediff_BasePregnancy,Verse.Pawn,Verse.Pawn,rjw.Hediff_BasePregnancy/DnaGivingParent)
at rjw.Hediff_BasePregnancy.Create[T] (Verse.Pawn mother, Verse.Pawn father, rjw.Hediff_BasePregnancy+DnaGivingParent dnaGivingParent) [0x000ac] in <e70496b985674ea2bc0c6d308d5fad5e>:0
at rjw.Hediff_BasePregnancy.Create[T] (Verse.Pawn mother, Verse.Pawn father) [0x00009] in <e70496b985674ea2bc0c6d308d5fad5e>:0
at (wrapper dynamic-method) RJW_Menstruation.HediffComp_Menstruation.RJW_Menstruation.HediffComp_Menstruation.Implant_Patch0(RJW_Menstruation.HediffComp_Menstruation)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch4 (string)
(wrapper dynamic-method) RJW_Menstruation.HediffComp_Menstruation:RJW_Menstruation.HediffComp_Menstruation.Implant_Patch0 (RJW_Menstruation.HediffComp_Menstruation)
RJW_Menstruation.HediffComp_Menstruation:LutealAction ()
RJW_Menstruation.HediffComp_PeriodicOvulator:LutealAction ()
(wrapper dynamic-method) RJW_Menstruation.HediffComp_Menstruation:RJW_Menstruation.HediffComp_Menstruation.CompPostTick_Patch0 (RJW_Menstruation.HediffComp_Menstruation,single&)
Verse.HediffWithComps:PostTick ()
(wrapper dynamic-method) Verse.Pawn_HealthTracker:Verse.Pawn_HealthTracker.HealthTick_Patch0 (Verse.Pawn_HealthTracker)
(wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch2 (Verse.Pawn)
HardworkingNinetail.Ninetail:Tick ()
Verse.TickList:Tick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch2 (Verse.Game)
Verse.Root_Play:Update ()
Not sure if I ever mentioned it but the reason this wasn't working ending up having to do with race support not being configured properly for the animal. It didn't have a base animal to inherit from so it was failing. Once I added Kyulen to the canine group they worked properly.
Just thought I'd mention it in case I hadn't.
Then I will close this for now ... this seems to be more of a XML-Needs-To-Be-Complete thing on a race-by-race-basis. Let's keep a note about this here and somewhere else and if someone comes around with the same issue we look here.
Reopened because the issue seems to persist; This time with less "niche" things than the multi egg pregnancy.
all of those traits are gene given
mother is a boomalope
boomalopes don't have a defined racegendef
I'm not sure why only some of the traits are being inherited I guess brawler and tough can't be passed down but the rest can?
I think because its set to inherit via rjw preg
This is the father
Suggestion by Hawk:
I think the easiest solution to this would be to have a null check for not having a racegenedef and default to human parents xenotype if none exists.
I am not 100% sure what is going on, but I believe it's because of menstruations animal pregnancy. The argument about missing race-defs is sound, but I believe this can't really be the issue.
The Animal Genes are just added on top of a normal birth, they do not "remove" anything.
Here Humanlike Babies get an empty set of genes, but I am not sure if thats it. Also I don't see why it would ever not have the xenotype name then. The HumanMother Pregnancy Also just adds on top.
I got more feedback:
So follow up. This is without any gene mods except yours using base rjw pregnancy. Birthed five babies in total two sets of twins and 1 single. Debug log was from the last set of twins. Based on debug messages it might be that not having a defined set of genes just causes rjw to error out when trying to apply genes. But as expected when its more than one child the first seems to get the error and the rest end up inheriting genes just fine. They do end up as baseliners though.
These are the first batch of screenshots provided for this:
Some more:
With a 2 baby birth using menstruation this time. One baby born without genes or xenotype one born with genes. Born as baseliner. This time an error did occur. So the error is from whatever is happening between rjw-genes and menstruation. The end results however are the same regardless of menstruations presence.
With the following screenshots:
I got a report that menstruation eggs do not fully work with the Animal Gene Inheritance.
Original chat:
Racedef: