[1.3] Children and Pregnancy - v4.1.0

Started by GhostData, March 22, 2020, 04:32:51 PM

Previous topic - Next topic

Alundra

So my kids don't have heads. These are the errors in the logs :)

Failed to find any textures at Things/Pawn/Humanlike/Apparel/Robe/Robe_Newborn while constructing Multi(initPath=Things/Pawn/Humanlike/Apparel/Robe/Robe_Newborn, color=RGBA(0.102, 0.102, 0.102, 1.000), colorTwo=RGBA(1.000, 1.000, 1.000, 1.000))
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (string)
Verse.Graphic_Multi:Init (Verse.GraphicRequest)
Verse.GraphicDatabase:GetInner<Verse.Graphic_Multi> (Verse.GraphicRequest)
Verse.GraphicDatabase:Get<Verse.Graphic_Multi> (string,UnityEngine.Shader,UnityEngine.Vector2,UnityEngine.Color)
(wrapper dynamic-method) RimWorld.ApparelGraphicRecordGetter:RimWorld.ApparelGraphicRecordGetter.TryGetGraphicApparel_Patch0 (RimWorld.Apparel,RimWorld.BodyTypeDef,RimWorld.ApparelGraphicRecord&)
(wrapper dynamic-method) Verse.PawnGraphicSet:Verse.PawnGraphicSet.ResolveApparelGraphics_Patch0 (Verse.PawnGraphicSet)
(wrapper dynamic-method) Verse.PawnGraphicSet:Verse.PawnGraphicSet.ResolveAllGraphics_Patch2 (Verse.PawnGraphicSet)
(wrapper dynamic-method) Verse.PawnRenderer:Verse.PawnRenderer.RenderPawnAt_Patch1 (Verse.PawnRenderer,UnityEngine.Vector3,System.Nullable`1<Verse.Rot4>,bool)
Verse.Pawn_DrawTracker:DrawAt (UnityEngine.Vector3)
Verse.Pawn:DrawAt (UnityEngine.Vector3,bool)
Verse.Thing:Draw ()
Verse.ThingWithComps:Draw ()
Verse.DynamicDrawManager:DrawDynamicThings ()
(wrapper dynamic-method) Verse.Map:Verse.Map.MapUpdate_Patch1 (Verse.Map)
Verse.Game:UpdatePlay ()
Verse.Root_Play:Update ()


Error rendering pawn portrait: System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorldChildren.Patches.PawnRenderer_DrawBodyApparel_Patch.ModifyClothingMaterial (UnityEngine.Material original, Verse.Pawn pawn, Verse.Rot4 facing) [0x0007d] in <009bca27e7d74cfcb251aa8279941a04>:0
  at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.DrawBodyApparel_Patch0(Verse.PawnRenderer,UnityEngine.Vector3,UnityEngine.Vector3,UnityEngine.Mesh,single,Verse.Rot4,Verse.PawnRenderFlags)
  at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnInternal_Patch1(Verse.PawnRenderer,UnityEngine.Vector3,single,bool,Verse.Rot4,Verse.RotDrawMode,Verse.PawnRenderFlags)
  at Verse.PawnRenderer.RenderCache (Verse.Rot4 rotation, System.Single angle, UnityEngine.Vector3 positionOffset, System.Boolean renderHead, System.Boolean renderBody, System.Boolean portrait, System.Boolean renderHeadgear, System.Boolean renderClothes, System.Collections.Generic.Dictionary`2[TKey,TValue] overrideApparelColor, System.Nullable`1[T] overrideHairColor, System.Boolean stylingStation) [0x00138] in <b64badbf3c3d41018b3ca5d3e8c77771>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (string)
Verse.PawnRenderer:RenderCache (Verse.Rot4,single,UnityEngine.Vector3,bool,bool,bool,bool,bool,System.Collections.Generic.Dictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool)
RimWorld.PawnCacheRenderer:OnPostRender ()
(wrapper dynamic-method) RimWorld.PawnCacheRenderer:RimWorld.PawnCacheRenderer.RenderPawn_Patch1 (RimWorld.PawnCacheRenderer,Verse.Pawn,UnityEngine.RenderTexture,UnityEngine.Vector3,single,single,Verse.Rot4,bool,bool,bool,bool,bool,UnityEngine.Vector3,System.Collections.Generic.Dictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool)
(wrapper dynamic-method) Verse.PawnRenderer:Verse.PawnRenderer.GetBlitMeshUpdatedFrame_Patch1 (Verse.PawnRenderer,Verse.PawnTextureAtlasFrameSet,Verse.Rot4,Verse.PawnDrawMode)
(wrapper dynamic-method) Verse.PawnRenderer:Verse.PawnRenderer.RenderPawnAt_Patch1 (Verse.PawnRenderer,UnityEngine.Vector3,System.Nullable`1<Verse.Rot4>,bool)
Verse.Pawn_DrawTracker:DrawAt (UnityEngine.Vector3)
Verse.Pawn:DrawAt (UnityEngine.Vector3,bool)
Verse.Thing:Draw ()
Verse.ThingWithComps:Draw ()
Verse.DynamicDrawManager:DrawDynamicThings ()
(wrapper dynamic-method) Verse.Map:Verse.Map.MapUpdate_Patch1 (Verse.Map)
Verse.Game:UpdatePlay ()
Verse.Root_Play:Update ()


Failed to find any textures at Things/Pawn/Humanlike/Apparel/Robe/Robe_ToddlerUpright while constructing Multi(initPath=Things/Pawn/Humanlike/Apparel/Robe/Robe_ToddlerUpright, color=RGBA(0.102, 0.102, 0.102, 1.000), colorTwo=RGBA(1.000, 1.000, 1.000, 1.000))
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (string)
Verse.Graphic_Multi:Init (Verse.GraphicRequest)
Verse.GraphicDatabase:GetInner<Verse.Graphic_Multi> (Verse.GraphicRequest)
Verse.GraphicDatabase:Get<Verse.Graphic_Multi> (string,UnityEngine.Shader,UnityEngine.Vector2,UnityEngine.Color)
(wrapper dynamic-method) RimWorld.ApparelGraphicRecordGetter:RimWorld.ApparelGraphicRecordGetter.TryGetGraphicApparel_Patch0 (RimWorld.Apparel,RimWorld.BodyTypeDef,RimWorld.ApparelGraphicRecord&)
(wrapper dynamic-method) Verse.PawnGraphicSet:Verse.PawnGraphicSet.ResolveApparelGraphics_Patch0 (Verse.PawnGraphicSet)
(wrapper dynamic-method) Verse.PawnGraphicSet:Verse.PawnGraphicSet.ResolveAllGraphics_Patch2 (Verse.PawnGraphicSet)
(wrapper dynamic-method) Verse.PawnRenderer:Verse.PawnRenderer.RenderPawnInternal_Patch1 (Verse.PawnRenderer,UnityEngine.Vector3,single,bool,Verse.Rot4,Verse.RotDrawMode,Verse.PawnRenderFlags)
Verse.PawnRenderer:RenderCache (Verse.Rot4,single,UnityEngine.Vector3,bool,bool,bool,bool,bool,System.Collections.Generic.Dictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool)
RimWorld.PawnCacheRenderer:OnPostRender ()
(wrapper dynamic-method) RimWorld.PawnCacheRenderer:RimWorld.PawnCacheRenderer.RenderPawn_Patch1 (RimWorld.PawnCacheRenderer,Verse.Pawn,UnityEngine.RenderTexture,UnityEngine.Vector3,single,single,Verse.Rot4,bool,bool,bool,bool,bool,UnityEngine.Vector3,System.Collections.Generic.Dictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool)
RimWorld.PortraitsCache:RenderPortrait (Verse.Pawn,UnityEngine.RenderTexture,UnityEngine.Vector3,single,Verse.Rot4,bool,bool,System.Collections.Generic.Dictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool)
RimWorld.PortraitsCache:Get (Verse.Pawn,UnityEngine.Vector2,Verse.Rot4,UnityEngine.Vector3,single,bool,bool,bool,bool,System.Collections.Generic.Dictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool)
ColoredMoodBar13.MoodPatch:DrawColonist (object,UnityEngine.Rect&,Verse.Pawn&,Verse.Map&,bool&,bool&,System.Collections.Generic.Dictionary`2<int, ColoredMoodBar13.MoodCache>)
ColoredMoodBar13.VanillaDrawColonist:Prefix (RimWorld.ColonistBarColonistDrawer,UnityEngine.Rect&,Verse.Pawn&,Verse.Map&,bool&,bool&)
(wrapper dynamic-method) RimWorld.ColonistBarColonistDrawer:RimWorld.ColonistBarColonistDrawer.DrawColonist_Patch1 (RimWorld.ColonistBarColonistDrawer,UnityEngine.Rect,Verse.Pawn,Verse.Map,bool,bool)
RimWorld.ColonistBar:ColonistBarOnGUI ()
(wrapper dynamic-method) RimWorld.MapInterface:RimWorld.MapInterface.MapInterfaceOnGUI_BeforeMainTabs_Patch1 (RimWorld.MapInterface)
RimWorld.UIRoot_Play:UIRootOnGUI ()
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)


There are a lot of these in the log :).
Log: https://gist.github.com/e35088ae0a4b216c2125e9376ea08f9f

May I also request a way to set human pregnancy length? I am playing with a mod that accelerates aging and I'd like pregnancies to be slightly faster to fit with that :). If not able to get a setting can someone tell me if I can edit something in the files to get a shorter timeframe? :)

NamingIsHard

I'm kind of confused about trait inheritence of this mod. Are children's traits inherited randomly or depends on traits of parents? Does the "max number of traits" in mod setting determine the exact number of traits of children?

Wolpeti

Could you just please make it that children are exempt from most pawn spawns?
Having 8 year old raiders is nonsense, having an imperial squad ment to assist me being made up of seven year old flake addicts who drop their biocoded weaponry when fired is useless.

RibDibbington

#498
Quote from: Wolpeti on November 19, 2021, 08:34:49 PM
Having 8 year old raiders is nonsense
I love that, actually. It makes me feel terrible to have to shoot them. It also makes a lot of sense with many of the settlement types. Sure, the more civilized industrial raiders shouldn't technically use kids, but cannibals? Flagellators? Unga bungas? Perfect sense.
Quotehaving an imperial squad
There's that, though. It doesn't make much sense there. But a kid being the focus of a quest which also sends a squad to help protect him is good.
Quoteseven year old flake addicts who drop their biocoded weaponry
This is cool, too. Some societies aren't worth saving. You'll be doing them a kindness to see them die.


RibDibbington

Quote from: Wolpeti on November 20, 2021, 02:28:14 AM
[clinically defined insanity]
So you're mentally ill, then. Got it. Heaven forbid anyone have any opinions or preferences that differ from yours. Fuck off, kid.

Ramsis

Ugh... I have SO MANY MESSES TO CLEAN UP. Oh also I slap people around who work on mods <3

"Back off man, I'm a scientist."
- Egon Stetmann


Awoo~

Daruny

Mod is having issues with Rim of Madness - Vampires.
Maybe race problem?

Awrawra

Greetings everyone.

After a long time without play RimWorld, I came back to play some weeks ago. Since then, I started to have issues and random crashes, specially when a trade caravan, visitors or even raids arrives to my colony. When I get my screen to see who just came, I got instantly crash with unity crash error or sometimes runtime error. These crashes were annoying me that today I had the decision to remove all mods and add gradually back, 20 mods each time and see which one was causing the crashes.

I play rimworld heavy modded, so it took several hours to finally come to realize that was Children and Pregnancy that is causing these annoying crashes. When I removed CnP, immediatly stop the crashes, and I really don't know why is CnP causing them. I use this mod for a long time, since almost the beggining, and never had these crashes before.

Anyone have any idea what I have to do to still playing with CnP and dont get these crashes anymore? I'm using the lastest version, 4.1.2.

Here is the in game log I generated with HugsLib: https://gist.github.com/HugsLibRecordKeeper/91aab091bc029553d71e06b65a37d4a4

Any tips will really be welcome.

Thanks in advance.

laffin

Quote from: Awrawra on November 25, 2021, 05:44:47 PM
Greetings everyone.

After a long time without play RimWorld, I came back to play some weeks ago. Since then, I started to have issues and random crashes, specially when a trade caravan, visitors or even raids arrives to my colony. When I get my screen to see who just came, I got instantly crash with unity crash error or sometimes runtime error. These crashes were annoying me that today I had the decision to remove all mods and add gradually back, 20 mods each time and see which one was causing the crashes.

I play rimworld heavy modded, so it took several hours to finally come to realize that was Children and Pregnancy that is causing these annoying crashes. When I removed CnP, immediatly stop the crashes, and I really don't know why is CnP causing them. I use this mod for a long time, since almost the beggining, and never had these crashes before.

Anyone have any idea what I have to do to still playing with CnP and dont get these crashes anymore? I'm using the lastest version, 4.1.2.

Here is the in game log I generated with HugsLib: https://gist.github.com/HugsLibRecordKeeper/91aab091bc029553d71e06b65a37d4a4

Any tips will really be welcome.

Thanks in advance.

I'm using this mod with a bunch of others too but do not get any errors or crashes. Sorry I cant help much but it makes me wonder if one of your other mods to conflicting somehow. Can you trace which mods went through recent updates and keep testing just incase its a conflict.

Tenshi~Akari

Quote from: Awrawra on November 25, 2021, 05:44:47 PM
Greetings everyone.

After a long time without play RimWorld, I came back to play some weeks ago. Since then, I started to have issues and random crashes, specially when a trade caravan, visitors or even raids arrives to my colony. When I get my screen to see who just came, I got instantly crash with unity crash error or sometimes runtime error. These crashes were annoying me that today I had the decision to remove all mods and add gradually back, 20 mods each time and see which one was causing the crashes.

I play rimworld heavy modded, so it took several hours to finally come to realize that was Children and Pregnancy that is causing these annoying crashes. When I removed CnP, immediatly stop the crashes, and I really don't know why is CnP causing them. I use this mod for a long time, since almost the beggining, and never had these crashes before.

Anyone have any idea what I have to do to still playing with CnP and dont get these crashes anymore? I'm using the lastest version, 4.1.2.

Here is the in game log I generated with HugsLib: https://gist.github.com/HugsLibRecordKeeper/91aab091bc029553d71e06b65a37d4a4

Any tips will really be welcome.

Thanks in advance.

Haven't had too many notable issues in my first playthrough since the updates, but can definitely say that I as well haven't experienced this, either.

Hazarding a guess, though, based on taking a glance at your HugsLib file:

Quote from: Tragix on March 22, 2020, 04:32:51 PM
RimJobWorld - Intentionally breaks CNP pregnancy in favor of its own. Childhood features of CNP may still work. Use at own risk until integration is performed.

Awrawra

Quote from: laffin on November 26, 2021, 03:28:53 PM
I'm using this mod with a bunch of others too but do not get any errors or crashes. Sorry I cant help much but it makes me wonder if one of your other mods to conflicting somehow. Can you trace which mods went through recent updates and keep testing just incase its a conflict.

Yes indeed, it is for sure a incompatibility with another mod, but I don't know why it is crashing the game, doesn't make any sense to me. The fact is the crashes stopped when I removed CnP. Now I can play without a problem. I even added some mods for children like Babies and Children and Children, School and Learning, but isn't the same thing like CnP, because my children are spawning with 14 years old already, working and even with good skills already. I know it's kinda boring have a useless pawn for 4 years, but at least it is immersive and I like it.

Quote from: Tenshi~Akari on November 27, 2021, 07:08:27 PM
Haven't had too many notable issues in my first playthrough since the updates, but can definitely say that I as well haven't experienced this, either.

Hazarding a guess, though, based on taking a glance at your HugsLib file:

Quote from: Tragix on March 22, 2020, 04:32:51 PM
RimJobWorld - Intentionally breaks CNP pregnancy in favor of its own. Childhood features of CNP may still work. Use at own risk until integration is performed.

I understand what you said, but I already played with both mods before, and never had this issue. The incompatibilities they can have, it's all about broken funcionality, but what I'm having right now is game crash with unity error or runtime error. Like I said, it doesn't make any sense that this is happening just with this mod.

Mox

How long does pregnancy take? I'd like it to take 3 seasons, and presumably as a hediff it's configurable? But I can't find a setting for it. Presuming I'm understanding this correctly.

Pactrick Willis

Having the same issue as one of the posters above, ctd whenever a trade caravan approaches.

GhostData

#509
Quote from: Mox on December 10, 2021, 07:47:33 PM
How long does pregnancy take? I'd like it to take 3 seasons, and presumably as a hediff it's configurable? But I can't find a setting for it. Presuming I'm understanding this correctly.
It is configured by def files now, as one-size-fits all configurations did not fit the mod's direction to be extensible. Each race, should they choose to implement CNP for their race, can define those characteristics themselves. I could probably come up with a way for clients to modify these settings in-game as well.

V4.1.3 Released
https://gitlab.com/Tragix/children-and-pregnancy-collab/-/releases/v4.1.3
This fixes an alignment issue with Combat Extended backpacks and a crash when any pawn wears Combat Extended tac vests. This is the most likely cause of a few CTDs I see in the recent-ish posts.

v4.1.4 Released
https://gitlab.com/Tragix/children-and-pregnancy-collab/-/releases/v4.1.4
- Fix animal sterilization conflict
- Condensed 3 feed baby workgivers into 1
- Babies will now be fed by lactating pawns first, then by caretakers, then by doctors depending on availability and child hunger.
- Lactating pawns now have increased hunger rate.


I am not regularly checking the forums right now, so feel free to join the discord in the OP to post reports. I don't have a ton of time to spend on this right now, but I will be prioritizing reports on discord over the forums for the time being.