RimWorld

RimWorld

Children, school and learning
Dex 14 Nov, 2020 @ 6:52pm
Children all seem to come out as the same/similar
I am using my own race mod and when the first child came out I noticed it's a male and uses the female body, but it's also a perfect mix of the parents hair colors.
1 has a burning passion in melee, passion in plants and burning passion in animals.
2 has a burning passion in melee, passion in plants and passion in animals (not burning).
That's a ton of similarities for my taste, where the only differences are the hair style, traits and that one skill is a passion instead of a burning passion. Does anyone know if this is a setting in the mod or if I need to add something into my race mod to not result into the same stuff?
< >
Showing 1-7 of 7 comments
Dylan  [developer] 15 Nov, 2020 @ 3:54am 
The colors are taken as a mix from the parents for most alien races, there is currently no way to disable / override that. Body type may be taken from a parent, but can be problematic in some rarer edge cases.

The base game generates the passions based on the skills alone, there are options to influence what skills are inherited which might mix that up.

I will see if I can put an option to disable the color/body type inherit, but I also want to have a per AlienRace setting in a future version, which is probably better in this case. (I might look into it over the next week or two)

If you use code with your AlienRace you are able to change things yourself after birth (it is not super complicated) let me know if you do or know how to, then I try to write down a basic example for the body type maybe.

Last edited by Dylan; 15 Nov, 2020 @ 4:10am
Dex 15 Nov, 2020 @ 4:43am 
Hello and thanks a lot for the reply,
First of all I noticed after testing with normal crash landed pawns that the children always had the same hair color too, is that rather a general thing?

I think the approach of a general settings AND a per mod setting is a good solution, that way you can either do it for all or do it for specific ones, but that doesnt exclude smaller mods or like in my case personal mods.

For body type I only allow 1 body type so that is totally fine, the issue is rather that the babies all have the same hair color.
My initial plan was to build up 5 factions with similar hair color and 2 main parents that are overpowered, but that wont work out if all children look the same (color wise).

If after birth is the only option then I would be more than willing to take that!
Dylan  [developer] 19 Nov, 2020 @ 4:52am 
My mod at least does not touch anything that isn't 'born' so maybe there is some issue there with the crash landed ones having similar problems (you could probably override those aswell in code, but I haven't done that yet, it might be very similar to birth)

The specific setting thing is definitely coming, just not sure when exactly ^^

To be clear 'after birth' just means immediately after they are born from my mod, you would not see this visually or anything, it would still be in an instant in game.




For the code side: I have to make a more detail thing as an example, but you could have a look at how the mod 'A Rimworld of Magic' does it:

(You have to use Harmony to do it this way, there are also other ways, but I haven't done those myself)

This basically puts the function 'TM_Children_TrySpawnHatchedOrBornPawn_Tweak' of aRWoM right after my mod is done with creating a new colonist:

https://github.com/TorannD/TMagic/blob/master/Source/TMagic/TMagic/HarmonyPatches.cs#L259

(this checks if my mod is active, which is referenced above)

https://github.com/TorannD/TMagic/blob/master/Source/TMagic/TMagic/ModCheck/Validate.cs#L60

and then this is the called function which does the actual work:
(here I think it adds/removes certain traits that the child should not have on birth etc.)

https://github.com/TorannD/TMagic/blob/master/Source/TMagic/TMagic/HarmonyPatches.cs#L1899
Dylan  [developer] 28 Jan, 2021 @ 4:54pm 
I have just updated the mod and you can now have a general and per species setting to have more variation in the colors that are inherited.

I have also seen this mod by chance:
(which may help with the passions)

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2072521087
Dex 29 Jan, 2021 @ 6:48am 
Originally posted by Dylan:
I have just updated the mod and you can now have a general and per species setting to have more variation in the colors that are inherited.

I have also seen this mod by chance:
(which may help with the passions)

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2072521087

I love you, thank you so much
That will get me back into playing again, restarting the colony. While I started liking that the children all had the same hair mix as the parents and therefore creating "factions" within the tribe, that "roleplay" got boring rather quickly. This is amazing, will try it out today right away!
Beletseri 9 Mar, 2021 @ 4:26pm 
Sorry to revive this again, however I am having a similar problem. 3 babies, with completely different parents, all coming out with a burning passion in both intelligence and social. Aside from the gain skill passions, can you think of a cause for this? I do have it combined with babies and children if that helps.
Dylan  [developer] 10 Mar, 2021 @ 8:37am 
Originally posted by Beletseri:
Sorry to revive this again, however I am having a similar problem. 3 babies, with completely different parents, all coming out with a burning passion in both intelligence and social. Aside from the gain skill passions, can you think of a cause for this? I do have it combined with babies and children if that helps.

It must be related to some other mod or a combination is my guess still, but I have nothing concrete. I will still try to put an option in to regenerate those again just right after they are born in addition to the normal stuff, to maybe fix this for those situations.
(The passion mod is the only direct thing to do right now, it would be nice if it would support options to limit this to a life-stage or age - maybe I will take a look at that aswell from my side as an option, if it is possible)
< >
Showing 1-7 of 7 comments
Per page: 1530 50