RimWorld

RimWorld

Hermaphrodite Gene Continued
185 Comments
Rearden  [author] 31 Aug @ 12:58pm 
Sounds like something he'd do. In which case that's certainly a solution. Would definitely make it hard incompatible with this mod.
B flat 31 Aug @ 7:41am 
I'm not sure why anyone would need a patch for Intimacy since they already have a gene that does the same thing.
Rearden  [author] 31 Aug @ 5:03am 
@Sithril
I appreciate the heads up. I'll get it added to the list.

@ThatOneBloke
My thoughts on a patch for Intimacy have been posted in this very discussion. Anyone is welcome to try their hand at it. It's not something I play with, so I don't patch for it. I'm a hobbyist with finite time, so I have to draw clear lines for what work I am willing to do. Patches are non-trivial code additions that require an understanding of three code bases. HAR compatibility practically required a rewrite. (Again, thanks a tonne to Zomuro for helping there) On top of that I spent weeks tracking down weird behaviour between the two.

What this mod does seems simple. Even being a single gene, it's not. It breaks fundamental assumptions of how pregnancy works, and anyone that adds a custom path to or through pregnancy and its surrounding fertility checks will potentially clash with this mod.
Sithril 28 Aug @ 5:06pm 
Seems VRE - Highmates can be added to the not-quite-compatible list, since the Initiate Lovin' ability has a custom call to initiate pregnancy where it checks for Gender.Male and Gender.Female (in JobDriver_InitiateLovin.MakeNewToils, fwiw).

RIP half an hour of debugging...
ThatOneBloke 27 Aug @ 4:31pm 
I know you say that intimacy breaks the pregnancy check, but from what the dev of that mod has provided from their end it doesn't seem like that should be the case. Might it be worth having another look to see if a patch can be done to make the two mods compatible with one another?
B flat 14 Aug @ 1:51am 
Oh, I didn't actually test if Charmweavers works or not, was just surprised that it doesn't work and I didn't notice. It probably still breaks whatever you said it breaks
One thing I'd love is being able to fertilize own ovums by hermaphrodite pawns tho. How it works now is you need to extract ovum from female, and fertilize with male. A hermaphrodite female can't fertilize her own ovum, but another hermaphrodite female can. A niche issue tho.
Rearden  [author] 11 Aug @ 3:29pm 
Harmony patches run in a priority order. Compatibility tends to come down to whether or not downstream patches and transpilers are allowed to run. By nature of how most mods affecting pregnancy function, they can't. Doesn't help that everybody and their brother hardcodes genders in their code either. If Charmweavers is functioning now, that's good to hear. I will have to go back and fiddle with it some to verify when I have time.

It's actually rather hard to add incompatibilities via xml just by how it's used. there would have to be several naming collisions.
B flat 11 Aug @ 7:24am 
I've been using this for a looong time now, without any problems, thanks a lot! Didn't notice the incompatibility with Charmweavers tho. I know it's possible to add compatibilities, but is it possible to add incompatibilities to the xml? Or is that done only through Rimsorts rules databases, So that this doesn't to someone else
Rearden  [author] 3 Aug @ 1:52pm 
The pregnancy code is really hard to mod and retain compatibility. this version of the mod is actually compatible with more stuff than it used to be, but everyone hardcodes their gender checks, including the base game.I can think of ways I could tweak the Core code to make this stuff play better together, but that's unlikely to happen.
Kyle 3 Aug @ 2:53am 
Dang, I really liked like the idea of the mod and I saw everything under incompatible is something I use.
Tidurian 1 Aug @ 3:08am 
Thanks for replying.
had a look and checked 1.6 genetic drift : https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3522332727
tough there are a lot of mods out there that add traits that enforce genes one example is VRE - Highmate wich adds a "beautiful" gene that just makes them have the trait regardless.
Rearden  [author] 31 Jul @ 4:01am 
I'll have to give that some thought. I'm inclined to say no since that's out of scope for what the mod was planned to be, but I do like the idea. The major issue I have with it is that those are mostly personality traits that pawns can develop. The ones that aren't are already a bit awkward when a pawn develops them for some reason. A pawn suddenly deciding they can become pregnant or impregnate someone else and *that* making it so would certainly be an odd one.

I think there is a mod that allows for some traits to spawn on pawns outside of their defined xenotype. Genetic Drift I think it was. I don't know how configurable it is or if it's up to date. It captures the concept that most humans aren't precisely baseline at this point in history, so random traits can resurface out of the gene pool.
Tidurian 31 Jul @ 1:45am 
I like this mod, can i drop a suggestion?

could you change the gene into a trait? (with the gene just forcing the trait)
that way there is a chance that random other Xenotypes/Baseliners could be hermaphrodites.

that way this mod has an effect even if you do not make a xenotype that has the Gene.
Rearden  [author] 26 Jul @ 3:51am 
I adopted the mod from it's original author when they retired at the 1.5 update. This is practically a rewrite, but it is a continuation of the original mod replicating its behaviour in the newer versions of RimWorld. This will be the space to watch for the mod till I decide I'm done with modding the game. Short of major life changes, I plan to maintain my mods for the foreseeable future.
Merper 24 Jul @ 4:50pm 
So I'm guessing the continued version of this mod is just so it works in future updates in Rimworld?
Rearden  [author] 18 Jul @ 4:58am 
Not a whit. normal relationship rules and pawn generation rules still apply. If you have an endogene that forces child pawns to be female then yes. else, no. they can still be male.

One of the reasons I link to sexuality genes, and male and female only genes. they make for good companions to this one.

As for how the hermaphrodism works, it is an extra layer on top of the default male and female. If the pawn has the gene they will be considered a valid parent if all the other normal fertility checks pass, and the partner is also a valid fertile pawn. If both pawns are valid mothers it is a coinflip which gets to carry the child. The default gender of the pawn still exists. I don't futz with it. If the pawns wouldn't normally form a relationship leading to children, you're still out of luck there. This mod only makes them physically compatible not romantically.
SirSmith148 18 Jul @ 12:39am 
So with this mod it doesn't matter if the pawns have the gay or bisexual trait? Will all children born be coded in the game as female with the added trait or can they still be male?
Rearden  [author] 17 Jul @ 4:23pm 
I am not sure what you are saying/asking. Having the default Lovin' behaviour use this logic would be out of scope for this mod.

The gene has the normal probabilities to show up in shops and the like, and can be applied to xenotypes like any other gene. If the mod is enabled and its prerequisites are installed, you should be able to use the gene. Characters will not spawn with the gene unless they are a xenotype including it. Any other cases for pawns spawning with it are from other mods, which I do not and never did control.
NekoRain_ 17 Jul @ 5:31am 
hope there are two functions, thank you
1. Make this gene appear with a certain probability in some form
2. In the mod settings, switch the default to have this gene
Rearden  [author] 16 Jul @ 9:07pm 
no worries. can be hard to tell when stuff is random. sometimes you just get unlucky. Glad to hear it's working
tetheredAmbler 16 Jul @ 7:56pm 
Nevermind, wasn't incѻmpatible, I was just unlucky and fѻund it ѻut after mѻre thѻrѻugh/fѻrceful testing. Sѻrry abѻut that.
tetheredAmbler 16 Jul @ 6:11pm 
Hey, weird questiѻn, but there -may- be an issue with hѻw the pregnancy is being fѻund fѻr Alpha Genes, specifically fѻr ѻviparѻus species. Any guidance tѻ track it dѻwn/fix it?
Rearden  [author] 15 Jul @ 3:33pm 
As long as there is proper attribution given, I don't mind if you release derivative works. Zomuro and I put a lot of work into getting this updated and compatible with more stuff.
Heroman3003 15 Jul @ 12:18pm 
Hello again. I wanted to know if a mod that I described earlier were made, based on this mod, would it be fine to post on workshop with credit given to this mod, ofc?
Rearden  [author] 12 Jul @ 1:30am 
I'll wish you luck. Pregnancy is a tough thing to futz with. a huge chunk of it is hardcoded for pawn gender and breaks immediately if you try to do something odd. Expect to have to write custom logic for it, and for that logic to be fundamentally incompatible with basically anything that touches the pregnancy code.
Heroman3003 11 Jul @ 6:16pm 
I very specifically want a non-surgery-based solution, but a gene-based kind so yeah that's not at all what I am looking for. I was hoping to enable stuff like a xenotype that can only impregnate regardless of gender, but never get pregnant themselves, or xenotype with reversed pregnancy roles between females and males (though with both still considered male/female by the other systems), etc. I'll try some fiddling with it myself as I don't really use anything else that messes with pregnancy to see if I can brute force such genes into existing...
Rearden  [author] 11 Jul @ 6:09pm 
Considering how fiddly this mod was to get working with just the one gene, not really. Frankly, that sounds rather a lot like Male and Female with extra steps. You might like one of my other mods Surgical Body Shaping. not precisely what you're describing, but you could achieve something quite similar.
Heroman3003 11 Jul @ 6:03pm 
I was curious about something. Have you given consideration to a more modular version, where you can individually make males capable of pregnancy, females capable of impregnating and disabling male impregnation and female pregnancy based on individual genes?
Rearden  [author] 11 Jul @ 3:22pm 
confirmed functioning for the current version. will update the xml to indicate this when I get a moment
Jetharius 1 Jul @ 5:16am 
@Lair Hermaphrodite is the medically and scientifically accurate term. It may not be your preferred term, but it is the proper term.
Rearden  [author] 1 Jul @ 2:12am 
Therein lies the rub. Everybody and their brother reimplements the pregnancy code and tends to shortcircuit everyone else with their harmony call. Most don't fall through since that would cause unusual behaviour. This mod can't fall through because it breaks core assumptions of how pregnancy functions. In any case I don't patch for mods I don't play with. If someone else wants to implement a patch to implement such compatibility they can. This mod implements a function that can be called to check if any pawn is a valid parent for either sex.

If you are offended, don't be. As the mods stand, there is an incompatibility in that behaviour. Simple statement of fact. I have no plans to change it on my end. It is not a slight against you or your mod. Never was.
turkler 30 Jun @ 7:09pm 
just as a fyi for people using this mod, since the developer of this mod claims my mod 'breaks pregnancy checks on same sex couples' - the intimacy 'incompatibility' is more or less the choice of this mod's developer. intimacy has a seperate function for the pregnancy roll that this mod could easy harmony patch onto, if they wanted to. hell this mod already uses harmony so it's not like the dev isn't aware of this
implying intimacy 'breaks pregnancy checks on same sex couples' is just false. intimacy reimplements the vanilla pregnancy check almost 1:1 and other mods can easily override this behavior with harmony
Rearden  [author] 30 Jun @ 4:07am 
um. can't say I've ever heard that before, and sorry to say, I don't really care. Don't count on it changing. The usage is not derogatory.
LairuTheLathasthar 29 Jun @ 11:10pm 
hey could you replace all references of hermaphroditism with gynandromorphism as hermaphrodite is an intersexist slur and gynandromorphism is the preferred terminology to refer to possessing male and female gonads
Rearden  [author] 29 Jun @ 10:59pm 
Good to hear that it seems to be working alright. which combinations have you tried so far? Pair of males, pair of females, conventional couple are the major cases.
Jetharius 27 Jun @ 1:33pm 
Gender Supremacy; Herm.
Rearden  [author] 26 Jun @ 10:44pm 
I think there are such floating around, but I haven't looked lately.
Rearden  [author] 11 Jun @ 2:46pm 
It's that time again. I do not support the beta, but do try the mod in the new version and let me know how it goes. I will update the mods as soon as is feasible after the full release.
Jetharius 27 May @ 5:25pm 
@captain this is the mod you want https://github.com/vegapnk/RJW-Genes
Rearden  [author] 20 May @ 5:47pm 
If there is, I am not aware of it. That said, I haven't been looking. It's not something I play with.
Captain SuperEarth 18 May @ 1:06am 
Very good mod,I like same sex pregnancy in a kind of natural way
yet I wonder if there's any mod can do the same thing that compatible with rjw
Flesh Forge 9 Mar @ 9:50am 
thanks for the reply :steamthumbsup:
Rearden  [author] 9 Mar @ 9:23am 
probably casual hookups if I recall right. They aren't handled like standard lovin', so I could see how someone might view this as being incompatible. your experience matches my own testing. Everything works as expected, so isn't explicitly incompatible.
Flesh Forge 9 Mar @ 4:52am 
Super low priority: I don't know why but the Way Better Romance mod marks this mod as explicitly incompatible. It doesn't throw any errors or warnings and everything still seems to work correctly.
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2877731755
Rearden  [author] 13 Feb @ 10:43am 
There is a series of modding tutorials on the RimWorld wiki. It's not always up to date with everything, but it'll be better than asking me for a tutorial if you're interested in learning this. No matter what, I recommend making a copy of the steam mod and moving that to your local mods to fiddle with. that will prevent your modification from being overwritten by updates.

There are two locations where your mods are if you've installed through Steam.
Local mods are stored in *\Steam\steamapps\common\RimWorld\mods\
Workshop mods will be in *\Steam\steamapps\workshop\content\294100\
This mod will be in *\Steam\steamapps\workshop\content\294100\3248739089\
The file you will need to modify is *\3248739089\Defs\GeneDefs\GeneDefs_Herm.xml
Xception 13 Feb @ 4:16am 
Where is the xml?
Rearden  [author] 13 Feb @ 3:58am 
yes, though I've not done an xml patch to other mods myself. You pretty much just need to redefine the gene to not have a metabolism cost. the source is included with the mod, so you can tweak it yourself if you make a local copy. That particular bit is easily changed in the xml with no code knowledge.

the design thought on it is that it is a functional gene, not just cosmetic, therefore it should have a small metabolic cost. It follows the paradigm of the vanilla biotech genes.
Xception 12 Feb @ 6:34pm 
Is it possible to create a mod setting that makes the gene cost no metabolism?
Rearden  [author] 12 Feb @ 12:18pm 
Good to hear it's working right. Have fun!
GamesAtFlames 12 Feb @ 8:14am 
Sorry for the bother, figured out yesterday it was indeed because of age, and somehow I missed the bit where the game said so. Both versions of this mod work perfectly, thank you for making it!