[0.8.22] Olivia's birthTs gets reset whenever I load a save

Ilovekatz19

Member
Dec 10, 2023
14
20
I was messing around with the console and looking at the code when I noticed that in Olivia's handleKnockup there's code that I assume is meant to change her birthTs, but I then noticed that the block containing her pregnancy info (child race, mother, father, ect.) has birthTs set to 259200.
So I did a test I put olivia.preg().handleKnockup() into the console geting Olivia pregnant, then olivia.preg().birthTs to check what it's set to, it returned 388800, I then saved and loaded said save and put olivia.preg().birthTs into the console to check what it's set to this time returning 259200.

In the save I tested this Olivia had only given birth once.

I'm assuming by the fact that when Oliva get's pregnant that the intended way her pregnancy is supposed to work is that Olivia's birthTs gets calculated when she's knocked up, that part works. The problem seems to be the fact her birthTs is set to 259200 else where in the code so when the game loads a save Olivia's birthTs gets set to 259200 as apposed to what was calculated.
 

Tarnakus

Well-Known Member
Oct 31, 2020
529
279
I doubt your conclusion. I have highly sophisticated mechanism of checking this - called Drifa (pure). I play with them same day and despite multiple load and saves cycles -> they finish the same day. birthTs - is how long pregnancy should be for certain races -> not the current calculation - I'm not sure how you got that 388800 value.
388800 - probably default as it is present for many other races.
259200 - is spefic for lupines, half-lupines and tanuki, edit: also taeleer and hellhound.

Ps. My highly sophisticated method is also used in Brienne house and with all orc ladies.
 
Last edited:

Tarnakus

Well-Known Member
Oct 31, 2020
529
279
If you save game the variable were the current pregnancy time is stored is OLIVIA_PREG_TIMER (npcname_PREG_TIMER are the flags for many other NPC as well). And they do in fact increased based on days passed.
Just after knock up:
1770465221379.png
~Two day after:
1770465251964.png
You can see that this are last flag added, and see that Zhara and Yoli laid theirs eggs and my char didn't saw that yet.
 

cryo24

Member
Nov 19, 2019
10
3
24
Olivia's Ts is supposed to be much longer, there's dialogue related to that.
Dialogue you can't really get, since it's bugged
 

Tarnakus

Well-Known Member
Oct 31, 2020
529
279
I misunderstood the original bug :p sorry about that -> yes, the game calculates birthTs based on pc virility -> but then handles the whole process as any other pregnacy so never saves the new birthTs and defaults to base lupine one.
 

Tarnakus

Well-Known Member
Oct 31, 2020
529
279
The Ts isn't a fixed value? really?
I think Olivia is the first special case where they wanted to change it. From the code -> I think they wanted different time based on virility of pc during the deed -> and that is calculated and assigned but never permanently saved. And then during init (so load of save game) Olivia's pregnancies default to standard lupine time of 259200