RimWorld

RimWorld

Toddlers
cyanobot  [developer] 11 Aug, 2023 @ 9:13am
(1.4) HAR Compatibility
Known Issues:
  • occasionally, toddlers disappearing when picked up?
  • under some circumstances, error spam on every rendering tick "Error drawing [name]" etc, see discussion below. If you're experiencing this error please leave a response with (as many as you can of):
    • a copy-paste of the error with stack-trace
    • the race of the affected pawn
    • the age and life stage of the affected pawn (especially if they aren't a toddler!)
    • whether or not the error goes away if you turn off "Custom renderer" in the Toddlers mod options
    • your full log file
    • your full modlist, if you please
  • in some modlists, the learning to walk process is broken and all toddlers start with maximum mobility

Features:
  • toddler life stage automatically generated for alien races (provided it can find room between baby and child)
  • duration of toddler life stage is based on duration of alien baby life stage
  • alien toddlers use the same AI as human toddlers
  • automatically attempts to pick the least inappropriate body graphics for babies if the race mod doesn’t provide specific textures
  • a whole load of xml patches for popular races to ensure that body parts (ears, tails, etc) render in the right places

Doesn’t touch:
  • races that aren’t born helpless
  • races that age up to children in less than two years
  • races that don’t have defined baby/child life stages
  • races whose life stages are too unusual for this mod to automatically parse

Not (yet?) included:
  • custom AI for toddlers of races with unusual AI
  • compatibility for unusual diets, etc

Not planned:
  • Alternate baby clothes or swaddle graphics. Sorry, this is just not something I'm interested in taking on.

Gameplay
I do not have time to test the gameplay of every single race to find out if they have unusual features that ought to impact how their toddlers play. If you find something that doesn’t work, let me know, and I can look into it.

I probably won’t add small features, like niche behaviours the adults do occasionally, but if it’s a big deal like “this species eats rocks and the toddlers don’t/can’t”, then I’ll patch it.

About the XML Patches
In theory if the races are set up correctly, no XML patches should be necessary. However, a lot of races weren’t built with babies in mind, or haven’t paid very close attention to the positioning of body parts that would normally be hidden under swaddling.

If you are a developer of one of the patched mods, please feel free to take the patched values and put them into the race definition, and please tell me if you do, so that I can remove the patch.
Last edited by cyanobot; 28 Jan @ 9:32am
< >
Showing 1-10 of 10 comments
cyanobot  [developer] 11 Aug, 2023 @ 9:15am 
Full list of tested races (so far):

Compatible:
AA Snowbold Race (XML patch)
Adeptus Xenobiologis: Aeldari
Anthro Race
Archotech Race
Bori race (XML patch)
Bun Race
Cutebold Race (XML patch)
Dogbold Race (XML patch)
Epona race Renaissance (XML patch)
Erin's Auronya - HAR Edition (XML patch)
ESCP - Dunmer, Falmer, Orsimer, probably the others also
Ferian Race (XML patch)
Foxbold Race (XML patch)
Gloomy Dragonian race
Kiiro Race (XML patch)
Kurin HAR Edition (XML patch)
Lord of the Rims - Hobbits, Elves (XML patch), Dwarves
Moonjelly Race (Continued)
Moosesian race
NewRatkinPlus (XML patch)
Nyaron race (XML patch)
Ogre Race
Orassans (XML patch)
Pawnbold Race
Rabbie The Moonrabbit race (XML patch)
Revia Race (XML patch)
RimRaces - Caerulean, Cruttun, Grodan, Xotan
Rockmen race
Silvalise Kobolds (XML patch)
Spacebold Race (XML patch)
Star Wars Races
Sylveon - Fairy Pokemon [1.4]
The Drow Race Continued
Vaporeon - Water Pokemon [1.4]
Xenohumans Expanded
Yuran race (XML patch)

Partially compatible:
Adeptus Xenobiologis: Tau, Kroot, Vespid – vespids kinda work, the other two seem to have kinda broken babies right now
Ayameduki’s races – I haven’t tested all of them but they all seem to be built to the same pattern. The author has set babies to lack body addons, so they won’t look quite like the adults of their species, but the toddler life stage and AI should work.
Lapelli Race - lapelli babies use the vanilla body, which looks a little weird on them as it has no fur, but otherwise should work fine
ShadowRimRaces – this mod is currently experiencing technical difficulties, so it’s hard to know how well toddlers might work
Rimeffect Races (Continued) – Haran work. Asari and Vorcha babies seem broken so toddlers won’t work either. All others mature too fast to have toddlers

Incompatible:
Monstergirl Races: baby/child life stages are not correctly configured, so there’s nothing for Toddlers mod to work with
Maru: life stages seem muddled, can’t find a place to slot in a toddler stage
Rimhammer - The End Times: in their current state these mods have so many errors that I can’t really work with them
Rim-Effect: Asari and Reapers: no non-adult life-stages defined, nothing for Toddlers mod to work with
Teressa: toddlers walking through walls is brokenNot applicable:[url]Adeptus Xenobiologis: Orkoids - born precocious
Androids for RW 1.4: I assume these do not engage in biological reproduction
Arachne Race (Continued) - mature too fast for a toddler stage
Anty the war ant race: Anty are born adult. I’m not sure if this is functioning as intended or a bug, but either way the problem is not at my end
Gerzee Race: have their own life stages (which I am not sure work right, but that’s not my problem)
Kilhn Race: born precocious and have a different set of life stages to humans
Last edited by cyanobot; 9 Mar, 2024 @ 11:28am
TurtleShroom 11 Nov, 2023 @ 5:20pm 
This Mod breaks the Teressa Mod: https://www.steamcommunity.com/sharedfiles/filedetails/?id=2983172796 .

Teressas have a gimmick where they can pass through walls. Toddler Teressas, which can walk, try to pass through walls and end up getting stuck, as they use the "Wandering" action and wander into a wall, where they spam errors until you Draft and move them.
knaifuwaifu 4 Dec, 2023 @ 2:31am 
sorry if i'm not meant to post this here, however I believe I've run into a HAR issue?

I've linked the error log and have pasted one of the repeating codes (sorry if its spammy)... my game fully breaks when this loop starts, and I've only managed to fix it by removing Toddlers.


https://gist.github.com/HugsLibRecordKeeper/8555b4f0c747f3d6e55e2790302fcfb1


This particular loop is at line 7657.

Exception drawing Ir'ik: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Toddlers.Patch_HAR.GetBodyAddonWrapper (Verse.Pawn pawn, System.Object addon_orig) [0x00039] in <12833f93be754322ac9414e9450d4b4a>:0
at Toddlers.HAR_DrawAddonsFinalHook_Patch.Postfix (Verse.PawnRenderFlags renderFlags, Verse.Pawn pawn, System.Object addon, Verse.Rot4& rot, Verse.Graphic& graphic, UnityEngine.Vector3& offsetVector, System.Single& angle, UnityEngine.Material& mat) [0x00092] in <12833f93be754322ac9414e9450d4b4a>:0
at (wrapper dynamic-method) AlienRace.HarmonyPatches.AlienRace.HarmonyPatches.DrawAddonsFinalHook_Patch1(Verse.Pawn,AlienRace.AlienPartGenerator/BodyAddon,Verse.Rot4,Verse.PawnRenderFlags,Verse.Graphic&,UnityEngine.Vector3&,single&,UnityEngine.Material&)
at AlienRace.HarmonyPatches.<DrawAddons>g__DrawAddon|206_0 (AlienRace.AlienPartGenerator+BodyAddon ba, Verse.Graphic addonGraphic, UnityEngine.Vector2 drawSize, AlienRace.HarmonyPatches+<>c__DisplayClass206_0& ) [0x001bc] in <581ea5401bc54fe49c9232e6e33912b0>:0
at (wrapper dynamic-method) AlienRace.HarmonyPatches.AlienRace.HarmonyPatches.DrawAddons_Patch2(Verse.PawnRenderFlags,UnityEngine.Vector3,UnityEngine.Vector3,Verse.Pawn,UnityEngine.Quaternion,Verse.Rot4)
at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnInternal_Patch7(Verse.PawnRenderer,UnityEngine.Vector3,single,bool,Verse.Rot4,Verse.RotDrawMode,Verse.PawnRenderFlags)
at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnAt_Patch6(Verse.PawnRenderer,UnityEngine.Vector3,System.Nullable`1<Verse.Rot4>,bool)
at Verse.Pawn_DrawTracker.DrawAt (UnityEngine.Vector3 loc) [0x00000] in <cd7169108ea74757aa50c5b33d275c15>:0
at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.DrawAt_Patch2(Verse.Pawn,UnityEngine.Vector3,bool)
at Verse.Thing.Draw () [0x00015] in <cd7169108ea74757aa50c5b33d275c15>:0
at Verse.ThingWithComps.Draw () [0x0000e] in <cd7169108ea74757aa50c5b33d275c15>:0
at (wrapper dynamic-method) Verse.DynamicDrawManager.Verse.DynamicDrawManager.DrawDynamicThings_Patch0(Verse.DynamicDrawManager)
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)
cyanobot  [developer] 4 Dec, 2023 @ 7:11am 
Originally posted by knaifuwaifu:
sorry if i'm not meant to post this here, however I believe I've run into a HAR issue?

No, you are absolutely in the right place, thank you for including the log.

It looks like you have several objects failing to render. One of those errors is absolutely coming from my HAR code, and it is not implausible that that's the root cause of the other errors. I'll look into it.

To help me find the problem, can you tell me what race/species Ir'ik is, how old they are, and whether or not you think they should be a toddler?
knaifuwaifu 6 Dec, 2023 @ 4:04am 
awesome, thanks for the reply. Sorry mine is so late!

Ir'ik is a hybrid Ork from LTS Xenotech and a Stoneborn from Det's Xenotypes. He is 1year 1quadrum 5days and is counted as a toddler.

Cae is also one that gets pinged in the error files a lot and he is also a hybrid, but is instead an Elfin from LTS Xenotech and Nephilim from the mod Nephilim Xenotype. He is 2 quadrums 11 days and is not counted as a toddler, just a baby.
sidfu1 8 Dec, 2023 @ 3:33pm 
getting same ereror with kurin har edition.
knaifuwaifu 18 Dec, 2023 @ 1:16am 
is there anything else i can provide to help find the root of the issue??
Pinkie Keen 20 Dec, 2023 @ 5:51am 
I'm also getting this error, except I don't have any modded races just renamed baseliners with custom set ethnic colors for immersion that i threw together
cyanobot  [developer] 9 Mar, 2024 @ 11:49am 
I've started looking into this problem again and I'm still not able to reproduce it. Which probably means either:
1) it only happens under quite specific circumstances (ie after xyz things have also happened, etc)
or 2) it's actually a sneaky compatibility issue with an as-yet-undiscovered additional mod (besides Toddlers, HAR, and the race mods in question).

If you are experiencing the above error, please share any of the following if you can (and haven't already):
  • the race of the affected pawn
  • the age and life stage of the affected pawn (especially if they aren't a toddler!)
  • whether or not the error goes away if you turn off "Custom renderer" in the Toddlers mod options
  • your full modlist (a big ask I know, but the only way I can think of to track down any other mod that might be involved)
  • a save file

And if you can reliably reproduce this error on a new save file, please please let me know your setup!
MoeLotl Race is not compatible.Have you considered compatibility with MoeLotl Race?
< >
Showing 1-10 of 10 comments
Per page: 1530 50