Surviving Mars

Surviving Mars

Birth Control/Infertility mod
40 Comments
Luna 7 Aug, 2019 @ 11:32am 
Update plz :-)
jpinard 6 Apr, 2018 @ 12:01pm 
I like this solution way better than the official patch.
AncientGatekeeper 5 Apr, 2018 @ 8:46pm 
Don't give up! Revive it. This mod is so much better than the vanilla experience.
MissedFrizzle  [author] 5 Apr, 2018 @ 12:12pm 
I'm all for a variety of options in game mechanics, but I think the game's default code replicates this pretty well and it's not necessary any longer. I learned a lot from making it so I'm calling that a win. =)

If the default mechanics don't suit you I'd definitely recommend Thorik's excellent Nurseries Limit Births mod.

I'll do a tiny update as the mod will break the game's version of birthcontrol if you have an existing save until I do but that'll be mostly it. Thanks for your support, folks. =)
「 LiTe Em uP 」 5 Apr, 2018 @ 11:49am 
so i know that this mod adds comfort limits to have births, but with changes to april 4 update is this mod still likely needed or fine without it?
MissedFrizzle  [author] 2 Apr, 2018 @ 6:14pm 
Yes, it should work with most of those that modify the default reproduction constants.
jpinard 2 Apr, 2018 @ 5:19pm 
Would this mod work in tandem with one of the mods that also cuts the default reproductive rates by 66% ?
MissedFrizzle  [author] 1 Apr, 2018 @ 8:34pm 
Good to hear.

I reached out to Haemimont and they told me the code should update based on the new version/isn't saved anywhere. Guessing that where i'm overwriting default methods for objects the code doesn't like it.
uB| SIL3NT-DE4TH 1 Apr, 2018 @ 2:43pm 
so i did update. have not tried the Lua console but it only effected my first done and i updated before my 2nd dome. 2nd dome has births 1st dome does not. Thats ok with me
MissedFrizzle  [author] 1 Apr, 2018 @ 10:51am 
If the infirmary is unstaffed for a shift it will drop back to the default similar to the way the default function works. That should be the only trouble causing that.
MDZZ 1 Apr, 2018 @ 10:48am 
New domes build after mod update(the version 59) works well, but old domes still have no childs born.
There is another problem, the birth comfort level sometimes drop to 70 instead of 95.
MissedFrizzle  [author] 1 Apr, 2018 @ 6:57am 
I've uploaded a new version that should try to check if an older version is installed and force an update. Apparently the game doesn't do that by default, so i'm kinda hesitant to believe it will work but...

If you copy/paste the below into the Lua Console it should force it to do it if the mod update doesn't work.

ModsLoaded[table.find(ModsLoaded,"id","lL7iiAa")]:UpdateCode() ReloadLua()

Sorry for the trouble.
MDZZ 1 Apr, 2018 @ 1:35am 
I use the Lua Console mod and reload mods, but seems no effect
MissedFrizzle  [author] 31 Mar, 2018 @ 5:49pm 
No, it's not Abby's issue but tangentially related.

There was an error in the updated dome birth code that caused it to quietly fail to execute. It was corrected in version 59, which should be the workshop version.

It should have been applied to existing saves but i'm not positive.

If it hasn't you can try to use the Lua Console mod to reload them - there's a button in the dropdown menu. not sure if there's an existing method ingame to do so.
uB| SIL3NT-DE4TH 31 Mar, 2018 @ 5:05pm 
with the options off and confort at 77 and domt confort needed 55 i am not having any babies is this because of what abby said?
MissedFrizzle  [author] 29 Mar, 2018 @ 6:20pm 
D'oh. Yes. Thanks. :S

Fixed...
Abby Normal 29 Mar, 2018 @ 4:30pm 
I think you've got a typo in the Dome.lua file; shouldn't it be "if not dome_birthcontrol then" at line 9? As is i'm pretty sure it will never execute line 10, and thus the infirmery 'mincomfortbirth' bonus will never apply even if you don't have birth control turned on.
Shadow 28 Mar, 2018 @ 4:44am 
TheEventHorizon Keep your political shit posting off the comments section of the steam workshop
TheEventHorizon 27 Mar, 2018 @ 5:13pm 
Republicans be spinning in their chairs... (Not all, just a majority based on statistics)
MissedFrizzle  [author] 27 Mar, 2018 @ 7:45am 
New version is now out with infertile trait and sterilization upgrade for infirmaries (along with some fixes and optimizations). If you have any problems or feedback, please shout.
broken_AI 26 Mar, 2018 @ 2:18am 
aah, I probably figured it out, I head the Medical Spire in some of the domes as well, from early game, could it be that there is some interference with it?
because now I also had a dome with everything active in the infirmary but still showing 55 limit
MissedFrizzle  [author] 26 Mar, 2018 @ 1:47am 
Do you have an active infirmary in each dome with the upgrade enabled?
broken_AI 26 Mar, 2018 @ 1:05am 
I reverted to the original file from you, and still getting with 800 collonists ~50-60 childs/sol
MissedFrizzle  [author] 26 Mar, 2018 @ 12:45am 
Oh, and one note for the current version as well - the values won't immediately update when you flip the birth control 'on', but it will take one cycle of the birth function to display the post-adjustment values for now.

Unfortunately the dome code is a bit of a wreck so it's not easy to call an update to those values.
MissedFrizzle  [author] 26 Mar, 2018 @ 12:37am 
If you overwrote Dome:GetMinComfortBirth, you may have overwritten my mod or mine overwrote what change you made because two competing versions can't exist. If you adjusted the game constant that's a little different.

I haven't touched the main Dome birth functions in the current version. Worst case it reverts to default behavior though and you would see that on the tooltip.
broken_AI 26 Mar, 2018 @ 12:22am 
could it be that with temp. removing the fertility-functions, you accidentally disabled the whole comfort-check? I set the return value of Dome:GetMinComfortBirth() to something obscure like 230(actually 230000), the value was shown correct in game but the text was still green and everybody was fu***** like nothing changed
MissedFrizzle  [author] 26 Mar, 2018 @ 12:14am 
Any individuals over 95 sanity will still join the pool of folks who want to have kids, so kids will still be born. Unless you're providing a lot of services the birth rate will be substantially reduced however; the number of couples in the pool drives the growth.

the hope is to make birth control upgrade a hands-off 'maintain current pop level in moderate conditions without a lot of micromanagement' button, given that people are still dying off.

A future update (almost done) will allow you to sterilize colonists, preventing them from ever having kids - but obviously that will involve more management in ensuring you're still having enough kids to keep everything running.
broken_AI 25 Mar, 2018 @ 11:54pm 
hey, thanks for writing this mod. I was searching for something like a global "child-ban" switch, but this is a far more intelligent approach ;D

but is it right, that the domes still show the green "childs will be born"-text, even if sanity is not even close to 95? and it seems like childs will still be born
「 LiTe Em uP 」 25 Mar, 2018 @ 10:44pm 
yay.... thnx for makign it work with current saves... going to test drive this soon to find out if it is working
MissedFrizzle  [author] 25 Mar, 2018 @ 8:50pm 
False alarm on the sterilization upgrade - temp removed, just doing some rework. I broke things worse.
MissedFrizzle  [author] 25 Mar, 2018 @ 6:36am 
New version updated - should work for existing saves now. =)

I'm probably going to add a sterilization option as well. I keep my domes spartan (y'all are on mars, why the hell do you need a casino?!), but I suppose you should be able to pamper your colonists and not have them breed like rabbits.
「 LiTe Em uP 」 25 Mar, 2018 @ 3:31am 
dang it.... im disappointed it doesnt work for current cmpaigns... im starting to have "rabbit breeding" problems right now... and only option is to send extra colonists to "retirement" domes
MissedFrizzle  [author] 24 Mar, 2018 @ 11:55pm 
Some colonists may have higher comfort levels than the average comfort level of the dome and those would be the ones shaggin'. You should see a fairly steep reduction in the overall number of couples however.
magei 24 Mar, 2018 @ 10:34pm 
This doesn't seem to work, It says Birth Threshold comfort 95 and even though comfort is at 83, The dome says in green text, Children will be born, The Dome is comfortable enough, Infirmary has all 3 shifts full and babies still popping out of people xD
MissedFrizzle  [author] 24 Mar, 2018 @ 10:55am 
Lite: It won't be current save compatible right now, I need to rewrite the unlock code to properly unlock the infirmary mod for 'existing' games.

It will work fine with any mods that alter the base game constant, but it will override them while the effect is active.
「 LiTe Em uP 」 24 Mar, 2018 @ 2:43am 
is this current save compatible?? means i can use it to my current campaigns..

known mod conflicts??

Burr 23 Mar, 2018 @ 12:15pm 
Baller!!!! Dang colonists are smothering Mars with babies. This should help and I love the level of control. Thank you!
Ǥɾᴧᴤʆᴧᵯᴧ 23 Mar, 2018 @ 3:26am 
nice idea james! :)
James009 23 Mar, 2018 @ 1:58am 
You need to add cover art for this mod and make it a futurist condom or something :D
esad.atari 22 Mar, 2018 @ 11:25pm 
THANK YOU SO SO SO SO SO SO SO MUCH.

This is exactly what I've been looking for.