Page 1 of 1

Persistable Pregnancy class

Posted: April 20th, 2013, 1:14 am
by SimsMx
Hello Twallan,

I have a mod that introduces surrogacy to the game. To accomplish this I derive a new <tt>Surrogacy</tt> class from the existing <tt>Pregnancy</tt> class. Then I override the <tt>virtual</tt> methods so the surrogate mother is the one that gets the belly. It seems to work ok, but if I save the game and quit, when I play the game again there is no pregnancy. The Sim is still wearing the maternity outfit, but the pregnancy is null. Do you know what may be causing this?

This also happens on my <tt>InVitroFertilization</tt> class, derived from the <tt>Pregnancy</tt> class too.

Posted: April 21st, 2013, 1:29 pm
by twallan

Did you ensure to explicitly define an "no parameter" constructor for your persistable class ?

That was what always got me in the past.

Posted: April 21st, 2013, 9:54 pm
by SimsMx
Thank you very much, that seems to work! I'd never have found it out by myself.

Persistable Pregnancy class

Posted: April 29th, 2019, 6:40 pm
by sms2lynn
I would love to have this in my game...where can I download it???

Persistable Pregnancy class

Posted: April 29th, 2019, 8:33 pm
by igazor
sms2lynn wrote:
April 29th, 2019, 6:40 pm
I would love to have this in my game...where can I download it???
Hi there. What ultimately resulted from this effort six years ago was SimsMX's Hospital Overhaul mod, hosted at Simlogical. Unfortunately we cannot recommend it (and thus I won't link to it directly) because SimsMX dropped out while the game was still in development. The mod was made for Patch 1.55 and the later patches, 1.63 especially, broke it to the point where it tends to ruin players' game on them.

SimsMX was a brilliant modder. We keep hoping he will return to the game someday and update the creations of his that require it. Not all of them do, but this one certainly.

Persistable Pregnancy class

Posted: April 30th, 2019, 2:30 am
by sms2lynn
Thank you so much Igazor, i actually have Hospital Overhaul mod in my game but didn't realize this is what was being referred to. So far I haven't had any issues so I will keep my fingers crossed.

I have posted a mod request here in reference to "real" labor and delivery. If you could review it and get back with me I would greatly appreciate it. I have created the animations but for some reason I just can't get the hang of the modding.

Thank you all for the fun that you provide to the Sims Community

Persistable Pregnancy class

Posted: May 1st, 2019, 2:20 am
by sittingbear
sms2lynn wrote:
April 30th, 2019, 2:30 am
i actually have Hospital Overhaul mod in my game but didn't realize this is what was being referred to. So far I haven't had any issues so I will keep my fingers crossed.
The damage it does to your Save doesn't always show up right away it could awhile before things start to explode.

Persistable Pregnancy class

Posted: May 2nd, 2019, 3:27 am
by Mandelyn
And tend to be completely irreparable.