Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!

Kestrellyn's PregRel compatibility patch

SCREENSHOTS
2,942 Downloads 149 Thanks  Thanks 59 Favourited 14,064 Views
Uploaded: 20th Nov 2021 at 12:18 AM
Updated: 18th Aug 2023 at 9:29 PM
Updates:
  • Now with WildChild version
  • Fixed error that could occur if a pregnant teen had less than two parents

Chris Hatch made a hack called PregRel, which causes sims to react negatively to a significant other's first pregnancy bump if it indicates cheating and they pass a logic check (3+ logic to tell that it was cheating, 7+ logic to identify the person they cheated with and get mad at them also), or for any pregnancy if the sims are parents of a pregnant teen sim. The pregnant sim would then do a worry interaction if the pregnancy is from cheating, regardless of whether or not any other sims reacted.

Anyway, this hack doesn't work right with Name the Father, the Surrogate hack, the Sperm Donors hack, ACR jealousy settings, poly relationships, or custom pollination technicians. So I've created a compatibility patch that makes it work right with all that stuff. Added features:
  • Significant others will not be angry if the father of the baby is a custom pollination technician (and the hack will not cause the pollination technician to show up in anyone's relationship panel)
  • Significant others will not be angry if the pregnancy was caused using the surrogate hack
  • Significant others will not be angry if the pregnancy was caused using the sperm donors hack and they were named as the other parent
  • Significant others will not be angry if the father of the baby or the named other parent is also married/engaged/going steady with the pregnant sim
  • If the pregnant sim has multiple significant others, they all have a chance to be angry, not just the one with the lowest neighbor ID
  • Significant others will not be angry if they ordinarily would not be jealous of the pregnant sim romancing other people due to ACR jealousy settings
  • If none of the pregnant sim's significant others could logically have caused the pregnancy, they do not need to pass a logic check to find out that the baby isn't theirs. The original hack only checks if the two sims have woohooed, I have added checks for gender, RCC toggled/untoggled status, RCC alien status, and the RCC global alien token. This won't work with PregForAllGenders, use the RCC and set the global alien token instead
  • If a significant other would have gotten angry, but failed the logic check, and they could have reasonably gotten the pregnant sim pregnant (see above), and you have Name the Father installed, and the pregnancy was not caused by the sperm donors hack, that significant other will be named as the father using Name the Father, so they will continue to believe the baby is theirs after birth. You can always change this setting manually afterwards, as normal. If more than one significant other fails the logic check, the one with the lowest neighbor ID will be used
  • If the pregnancy was caused by the sperm donors hack, angry parents and significant others will get mad at the second parent you selected and not the sperm donor
  • Angry parents and significant others will not get mad at the father of the baby/second parent if they have never met them and thus have no way of knowing who they are no matter how logical they are
  • Fixed a bug in the original where recent changes to significant others' logic skills did not count

Note that if you end the pregnancy with the Sim Blender after PregRel has triggered on it, PregRel will stop working for that particular sim for at least the next pregnancy.

Hack Compatibility

This is just a patch, it does not do anything unless you also have the original PregRel installed. I believe the latest version of it is linked from this post: https://modthesims.info/showthread....een#post5707238, or at least this is the version I used when making this, so it is the one that is guaranteed to work. This patch should load after PregRel.

This overrides BHAVs 0x1110, 0x1111, 0x1112, and 0x1116 in group 0x7F1D0F49, which are in not in the game as shipped but were defined in the original PregRel. It also adds additional BHAVs 0x1118 and 0x1119 in the same group. Other hacks that modify the same BHAVs will conflict.

PregRel was also included in WildChild, and Chris Hatch's Alternate Pregnancy Controller, which aren't affected by mods made to the regular EA pregnancy controller, such as the original version of this patch. There is now a special version of this to be used with WildChild and the Alternate Pregnancy Controller, pregrel_kestrellyn_compatibility_wildchild. Again, it should load after WildChild or the Alternate Pregnancy Controller.

Game Compatibility

The version of PregRel that I used advertises itself as being for "NL+", but I do not believe anything I added or modified is incompatible with the base game, so it may also work with whatever non-NL version of PregRel exists and thus be base-game compatible, but I haven't tried it.

Credits

Chris Hatch, for the original PregRel. All BHAVs except for 0x1118 and 0x1119 were originally written by him. As far as I know he doesn't mind people modding his stuff.