RimWorld

RimWorld

159 ratings
Hermaphrodite Gene Continued
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5, 1.6
File Size
Posted
Updated
249.008 KB
17 May, 2024 @ 6:22pm
11 Jul @ 3:36pm
5 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Hermaphrodite Gene Continued

Description
This mod adds a new gene, Hermaphrodite. Pawns with this gene can become pregnant and impregnate others. If both partners are hermaphrodites, each pawn has a 50% chance of acting as the mother for that lovin' session.

Safe to be added to, and removed from, existing saves. Pawns will lose the gene if they have it. This functions as a drop in replacement for the original mod for RimWorld Version 1.4

Thanks to Zomuro for helping make HAR compatibility possible

This version is known to be compatible with:
1.4
1.5
1.6

A continuation of the original mod authored by Sea
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2879035868

You might also like Male and Female only Genes Continued
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3249501807

You might also like Sexuality genes
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2895151374

This software is distributed without warranty. I haven't encountered any issues with this mod but that's no guarantee there aren't any. Like any mod, you use this at your own risk. Feel free to drop this in on an existing save.
The source code is included for those interested.

Possible incompatibilities:
Anything that adds a new reproduction method or fundamentally changes the existing one. Dang near everyone hardcodes male and female. Even the base game. Hermaphrodism is not something most people think about

HAR framework (I think I got this working. let me know if you spot oddities)

Known incompatibilities:
ReSplice: Charmweavers: Hermaphrodite breaks the multiple pregnancy gene
Same Room Lovin'
EDB Prepare Carefully: Breaks same sex gene inheritance
Intimacy - A Lovin' Expansion: breaks pregnancy checks on same sex couples
VRE - Highmates: Initiate Lovin' will not work with same sex couples bearing this xenogene

Bugs:
Report bugs in the Bug Reports Discussion! Reproduction steps, logs and a modlist are the bare minimum I need to be able to help you.
This mod REQUIRES RimWorld build 1.5.4094 or later to run. Verify your version before filing a bug report.
Popular Discussions View All (1)
42
21 Jun @ 12:57pm
Bug Reports
Rearden
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.