Design Discussion Persistable Pregnancy class

Talk nerdy to us here.
Post Reply
User avatar
SimsMx
Reactions:
Posts: 2
Joined: December 3rd, 2012, 6:00 pm

Persistable Pregnancy class

Post by SimsMx » April 20th, 2013, 1:14 am

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.

User avatar
twallan
Reactions:
Posts: 270
Joined: December 26th, 2011, 6:00 pm

Post by twallan » April 21st, 2013, 1:29 pm


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

That was what always got me in the past.

User avatar
SimsMx
Reactions:
Posts: 2
Joined: December 3rd, 2012, 6:00 pm

Post by SimsMx » April 21st, 2013, 9:54 pm

Thank you very much, that seems to work! I'd never have found it out by myself.

sms2lynn
Reactions:
Posts: 3
Joined: April 29th, 2019, 6:30 pm

Persistable Pregnancy class

Post by sms2lynn » April 29th, 2019, 6:40 pm

I would love to have this in my game...where can I download it???

User avatar
igazor
Organizer
Reactions:
Posts: 11904
Joined: April 8th, 2013, 6:00 pm
Answers: 47

Persistable Pregnancy class

Post by igazor » April 29th, 2019, 8:33 pm

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.

sms2lynn
Reactions:
Posts: 3
Joined: April 29th, 2019, 6:30 pm

Persistable Pregnancy class

Post by sms2lynn » April 30th, 2019, 2:30 am

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

User avatar
sittingbear
Reactions:
Posts: 2362
Joined: January 20th, 2017, 6:00 pm
Answers: 4

Persistable Pregnancy class

Post by sittingbear » May 1st, 2019, 2:20 am

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.

User avatar
Mandelyn
Reactions:
Posts: 201
Joined: January 3rd, 2012, 6:00 pm

Persistable Pregnancy class

Post by Mandelyn » May 2nd, 2019, 3:27 am

And tend to be completely irreparable.

Post Reply