Xenobionic Patcher

MOD Desc
About This patcher mod looks through most of the surgery operations, and matches your modded surgeries (like new bionics) with your modded races and animals. In other words, if you have a bionic expansion mod like FSF’s Vanilla Bionics Expansion, EPOE, or RBSE, and a set of modded races or animals, this patcher will match them together a few different ways (examples in quotes):

  • If the surgery works against a ‘Leg’, and your pawn has a ‘Leg’, your pawn gets the operation option.
  • If the surgery works against a different named part, but your pawn definition really calls it a ‘Leg’ in the label, the body part will be mapped together and your pawn will get other ‘Leg’ operations. This mapper is smart enough to strip out certain adjectives from labels (‘left front leg’ or ‘big leg (first)’), and comes with a premade static list of part mappings.
  • If the surgery is called ‘Install bionic arm’, and your pawn also has a surgery called ‘Install bionic arm’, the body part will be mapped together (like ‘Arm’ → ‘Tentacle’) and your pawn will get other ‘Arm’ operations.
  • On top of the surgery-to-race compatibilities, Xenobionic Patcher will also link humanlike operations with animals and visa-versa. Think of the possibilities:

    • Do your animals need bionic legs or an Orion Exoskeleton from Glitter Tech? You got them!
    • Is your best colonist quickly dying from a shot to the heart (only alive because of Death Rattle) and the only other heart you own is some bionic animal heart you bought cheap from a trader? You can save him!
    • Do you want those sweet Genetic Rim animal implants for yourselves? Install them freely!

    This patcher does not create any items or pawns. It merely links already known operations to other races and animals.

    With this mod installed, you don’t need any additional race or animal patchers. However, they shouldn’t interfere with Xenobionic Patcher, even if you do.

    Requires HugsLib.

    Features

    Load Order Put this dead last for best compatibility! After any race mods, animal mods, bionic mods, medical mods, surgery mods, etc.

    FAQ
    Q: Does this work on animals?

    A: Yes, both animals and modded races get the extra surgeries. So, if you need to install regular bionics or prosthetics onto an animal, you can.

    Q: Does this mean I no longer need animal prosthetic mods?

    A: Yes and no. If you don’t install them, then your animals can use the standard humanlike prosthetics. However, you may still want to install them to use some of the extra abilities, like Cyber Fauna’s Battle Boosters or Genetic Rim’s animal implants.

    Q: Animal bionics in human races?! That sounds overpowered. Can I disable that?

    A: Sure.[i.imgur.com] The config screen has lots of options.

    Q: My pawn has body part X and I can’t install bionic part Y onto it.

    A: It’s probably a bug or something I can fix. Report it![github.com]

    Keep in mind that body parts need to be a 1:1 match of the operation you’re trying to perform. For example, an Elder Thing’s respiration cell cluster is plantlike combination of a heart and a lung and it would require a special bionic part to replace. If that bionic part doesn’t exist, there’s no surgery operation to install.

    Q: Is this save-game compatible?

    A: Yes, you can add this mod to an existing save game.

    Other Resources


    • I mean, I’m amused by giving my top negotiator a bionic middle finger… but otherwise, yea, between fingers and toes, adds a whole PAGE of damn harvests to scroll through. And when all this SLOW loads started happening the other day, it also started doing stuff like… saying I could install my dryad eyeball on the mantis man’s read left foot. Any ‘insect humanlike’ was having 6 pages of things. It was showing me EVERY surgery that existed, if I had the parts or not. https://drive.google.com/open?id=1rlGXHJT2GLaajhESO6jeibPaOx32E0xG – This is same with EPOE and forked, even tried removing DE surgeries, (had a moment so tested). If I uncheck ‘Artificial’ and ‘Implant’, I can load up without the 7 minute wait…and not as spammy.
    • Chef, It looks like EPOE Forked has a duplicate Synthetic Heart (among other obsolete dupes) that is causing issues. I’ll see if I can remove those from the searches.Kreeman: That’s the Power Claw breaking the hand/feet boundary. Humans get to use a Power Claw on their hands, but then animals also get to use Power Claws on their feet. Then a handfeet mapping gets made and all the surgery options mix together. Some of that is useful for animals (like humanlike hand operations on animal feet), but yeah, it’s a bit weird on humans. I’ll look into that issue again, but it’s tough to separate without reducing functionality. As a workaround, you can turn off some of the human/animal crossovers, if you don’t mind not having human/animal surgery mixing.
    • Thank you for considering this, I appreciate it :)I can see what you mean about nonsensical operations. Since this option would likely be best set to off by default, perhaps a note on the toggle that warns of the potential for nonsensical operations if enabled. I know I would be ok with them appearing, and just not using them – but as long as there’s a note, it should prevent people from thinking those operations are a bug, and make it clear that they are the result of the player choosing to use the option. Thanks again for considering this, I appreciate your efforts 🙂
    • Hello – This mod is awesome! So very handy, saves a ton of time, and works great – thank you!Would you consider an option to allow Mech types to receive Human surgeries/implants please? I realize it makes little sense scientifically, and is likely quite OP, but I’ve come to enjoy using the Android Tiers pawns, (especially with AT++!) and with the recent Evolved Organs Redux I’m inspired to go full Moreau with QEE, Genetic Rim, and Alpha Animals as well and play as a sect of transhumanist Forsaken steadily modify themselves into bio-mechanical monstrosities of awesomeness :)If there is something I can do on my end to save you the trouble, I’m happy to do so, though I must admit I’m not really grasping the code after a quick dive. I do realize that the operations will only match up equivalent body part defs, so not everything would work, but I believe a lot could, if there were a toggle to allow additional silliness, heh. Thank you for your efforts, and a great mod!
    • https://gist.github.com/HugsLibRecordKeeper/d03e7b0eea10c4ce2fcb15c445da7b5a I went from [XenobionicPatcher] Injected fleshlike surgical recipes into fleshlikes (took 17.3730s; 260,927 combinations)->[XenobionicPatcher] Injected fleshlike surgical recipes into fleshlikes (took 353.1540s; 286,974 combinations) I don’t recall changing any races and load orders lately…but new Rimworld update, plus misc mods updating, i’m guessing something is FREAKING out. IS there any way to look at the ‘injected’ list to see what is causing a 6 1/2 minute delay?

    Leave a Reply

    Your email address will not be published. Required fields are marked *