Sapiens

Sapiens

Drakken 11 Jul, 2023 @ 5:55pm
Babies?
I have a village of 26, i have just 2 kids and i have a lot of olders...
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3002943806

usualy a "couple" will have 1 kid, so if 2 give one, quickly the tribes will be forgotten.
Back then, they had A LOT of kids
And fyi a 30 years old was old, the life span was around 32 max.
Anyway, they are aging way to fast anyway.
< >
Showing 1-11 of 11 comments
Elessar 11 Jul, 2023 @ 11:34pm 
I recommend mods, I already have over 600 sapiens
Drakken 12 Jul, 2023 @ 12:05am 
Originally posted by Elessar:
I recommend mods, I already have over 600 sapiens


This is a bit too much, but thanks i will look into the mods.
Do you have it's name?
drewstan 13 Jul, 2023 @ 9:13am 
In version 0.4.2.4 the speed at which they try to get pregnant is mainly driven by the hunger level.

The hungrier they are, the faster the pregnancy timer goes.

High nutrition food (cooked meat, cooked pumpkin) usually reverses the pregnancy timer, because sapiens try to eat when they're >60% hungry and these foods provide 70% and 80% satiation.

But it seems there's an update today so maybe this already changed
grapplehoeker 13 Jul, 2023 @ 10:20am 
Originally posted by drewstan:
High nutrition food (cooked meat, cooked pumpkin) usually reverses the pregnancy timer, because sapiens try to eat when they're >60% hungry

But it seems there's an update today so maybe this already changed
I believe you meant <60% ;)
No, the update did not address this since it was just to fix some things that needed fixing.
drewstan 13 Jul, 2023 @ 10:46am 
Originally posted by grapplehoeker:
I believe you meant <60% ;)

True, they start eating when their need of need.types.food is moderate (>0.6) and they keep eating until it is lower than mild (<0.3).

elseif thisNeed > 0.6 then return desire.levels.moderate elseif thisNeed > 0.3 then return desire.levels.mild

At least that's what i observed, they always eat two berries at a time (0.3 food) but they only eat one peach (0.5 food)
grapplehoeker 13 Jul, 2023 @ 2:39pm 
Originally posted by drewstan:
elseif thisNeed > 0.6 then return desire.levels.moderate elseif thisNeed > 0.3 then return desire.levels.mild
Thanks for the coding.
What is the coding where hunger relates to increased rate of pregnancy though?
Last edited by grapplehoeker; 13 Jul, 2023 @ 2:40pm
drewstan 15 Jul, 2023 @ 2:35am 
What is the coding where hunger relates to increased rate of pregnancy though?
It's in longWaitInfrequentUpdate in serverSapien.lua. It first checks if sapien isFemale, not a nomad, it's an adult, but not too old, loyalty is at least mildNegative, and it's not very very hungry and then accumulates a value that goes from 0 to 1, populationMultiplier curves the population, speedMultiplier multiplies by the food need and dt by the time elapsed between updates:

local speedMultiplier = sapien.sharedState.needs[need.types.food.index] / 0.8 local currentPopulation = serverWorld:getTotalClientFollowerCount() local populationMultiplier = 1.0 - math.min(currentPopulation / 200.0, 0.9) sharedState:set("pregnancyOrBabyTimer", sharedState.pregnancyOrBabyTimer + dt * serverSapien.pregnancyDelaySpeed * speedMultiplier * populationMultiplier)

After that when pregnancyOrBabyTimer reaches 1 it tries to find a mate to make babies which can fail.

This update runs multiple times during the day, and since population is usually constant the most important factor is hunger, the hungrier the sapien the faster the pregnancies (up to a limit)

Fun fact: If this value reaches 1 while the sapien is sleeping it decreases randomly, can't try to get pregnant while sleeping. Maybe it should pause when sleeping, the food need timer seems to pause in that case.
Last edited by drewstan; 15 Jul, 2023 @ 2:36am
ChillGenXer 17 Jul, 2023 @ 5:17pm 
That's cool, it's nice nuance to how the game tick is increasing the timer! You should do an edit to the wiki, I had this article written as a start that could use some refreshing or start another pregnancy page on it's own:

https://wiki.playsapiens.com/index.php/Guide:Population_Management

Originally posted by drewstan:
What is the coding where hunger relates to increased rate of pregnancy though?
It's in longWaitInfrequentUpdate in serverSapien.lua. It first checks if sapien isFemale, not a nomad, it's an adult, but not too old, loyalty is at least mildNegative, and it's not very very hungry and then accumulates a value that goes from 0 to 1, populationMultiplier curves the population, speedMultiplier multiplies by the food need and dt by the time elapsed between updates:

local speedMultiplier = sapien.sharedState.needs[need.types.food.index] / 0.8 local currentPopulation = serverWorld:getTotalClientFollowerCount() local populationMultiplier = 1.0 - math.min(currentPopulation / 200.0, 0.9) sharedState:set("pregnancyOrBabyTimer", sharedState.pregnancyOrBabyTimer + dt * serverSapien.pregnancyDelaySpeed * speedMultiplier * populationMultiplier)

After that when pregnancyOrBabyTimer reaches 1 it tries to find a mate to make babies which can fail.

This update runs multiple times during the day, and since population is usually constant the most important factor is hunger, the hungrier the sapien the faster the pregnancies (up to a limit)

Fun fact: If this value reaches 1 while the sapien is sleeping it decreases randomly, can't try to get pregnant while sleeping. Maybe it should pause when sleeping, the food need timer seems to pause in that case.
DUSTY 29 Sep, 2023 @ 4:39pm 
Originally posted by Elessar:
I recommend mods, I already have over 600 sapiens
what mods are those?
Old Soldier 6 Oct, 2023 @ 12:05pm 
Originally posted by drewstan:
In version 0.4.2.4 the speed at which they try to get pregnant is mainly driven by the hunger level.

The hungrier they are, the faster the pregnancy timer goes.

High nutrition food (cooked meat, cooked pumpkin) usually reverses the pregnancy timer, because sapiens try to eat when they're >60% hungry and these foods provide 70% and 80% satiation.

But it seems there's an update today so maybe this already changed

I'm confused. Are you saying that a well fed sapien is LESS likely to get pregnant?
If that is the case, then having a food surplus will mean fewer pregnancies, while having a food shortage will mean more. That just seems backwards to me. Completely backward.

What am I missing here?
albion2014 8 Jul, 2024 @ 1:42am 
Originally posted by Old Soldier:
Originally posted by drewstan:
In version 0.4.2.4 the speed at which they try to get pregnant is mainly driven by the hunger level.

The hungrier they are, the faster the pregnancy timer goes.

High nutrition food (cooked meat, cooked pumpkin) usually reverses the pregnancy timer, because sapiens try to eat when they're >60% hungry and these foods provide 70% and 80% satiation.

But it seems there's an update today so maybe this already changed

I'm confused. Are you saying that a well fed sapien is LESS likely to get pregnant?
If that is the case, then having a food surplus will mean fewer pregnancies, while having a food shortage will mean more. That just seems backwards to me. Completely backward.

What am I missing here?


I agree, it is even contrary to scientific evidence because starving populations have lower reproduction rates than well-nourished...
Means that we should block access to food to let the tribe grow! Weird...
< >
Showing 1-11 of 11 comments
Per page: 1530 50