RimWorld

RimWorld

Auto-Extract Genes
67 Comments
Nibato  [author] 5 hours ago 
I can't reproduce that error. If I'm understanding the log correctly, it's complaining that the Gene Extractor doesn't exist in the game. I'm guessing due to any one of these reasons: biotech dlc isn't loaded, another mod removes it, or my mod loads before biotech. I'd need a complete log, and list of mods to even be able to begin to figure out what's going on.
Ogrozera 9 hours ago 
I got two errors:"

[AutoExtractGenes - Start of stack trace]
Verse.PatchOperationAdd(xpath="/Defs/ThingDef[defName="GeneExtractor"]"): Failed to find a node with the given xpath
Verse.PatchOperationConditional(xpath=/Defs/ThingDef[defName="GeneExtractor"]/comps): Error in <nomatch>

Patch operation Verse.PatchOperationConditional(/Defs/ThingDef[defName="GeneExtractor"]/comps) failed
file: C:\Program Files (x86)\Steam\steamapps\workshop\content\294100\2882834449\Common\Patches\AutoExtractGenesAssignerComp.xml
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.PatchOperation:Complete (string)
Verse.LoadedModManager:ClearCachedPatches ()
Sudo Modding 21 Jun @ 6:38am 
For any colony that tries to create the "perfect" genotype, it's a god send. It saves hundreds of needless clicks, and remove some mental load (having to check regularly if one of the prisoner is ready for gene extraction). Thanks!
[咕咕]竹兮 4 Apr @ 9:45pm 
Excuse me, there are some races I do not see automatic extraction option, is it a compatibility issue?
Raskaran 17 Mar @ 5:35pm 
@Nibato as for the Known Issue workaround. My Vampire couldn't implant genes as he was constantly interrupted by this mod. Have a settings page or increase the timer to be over implantation time. thx
Nibato  [author] 15 Nov, 2024 @ 7:20am 
I've never personally had any performance issues with it.

The auto extractor check is ran per-extractor-building roughly every 250 ticks (CompTickRare). When looping through the pawns the first thing it checks is to see if auto extract is enabled and if their genes aren't regrowing. there's no need to proceed calculating/checking anything else if those checks don't pass.

I have a few ideas on how things could be rewritten for better performance, but I'm probably not going to invest time into premature optimization without profiler data showing the need for it.
harrydubois 15 Nov, 2024 @ 6:55am 
Wouldn't calculations tank the performance?
Alan2025 30 Oct, 2024 @ 7:46pm 
Thank you so much! I didn't think the button would be there also
Nibato  [author] 30 Oct, 2024 @ 4:00pm 
For anyone who has other mods that push the checkbox out of the window, If you go to the info page of the pawn (clicking the i), under the Health tab, the checkbox should be there as well.

This window is a bit bigger and has more room, so it may be accessible there.

Example: https://imgur.com/a/Fkf1qgy
Alan2025 29 Oct, 2024 @ 7:13pm 
I have a couple mods that modify the health bar, enough to make the extract gene button inaccessible since it's under the window, is there another way to enable it or a fix for this? (A part from removing the mods obviously)
Goomba 5 Aug, 2024 @ 7:15pm 
Will this work with/can you add compatibility with Gene Extractor Tiers?
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3016454783

Thanks and great QoL mod!
bolemeus 5 Aug, 2024 @ 4:32am 
Currently Im not seeing the uto extract genes checkbox on all of my owns pawns, not on any of my slaves, and not on most of my prisoners.
Weirdly enough though some of my prisoners do have the chackbox.

I'm also using the numbers addon, and I can add the column there and check all of the pawns I want auto extracted there. It is a bit of a hassle though.

I'm also using the Smart medicine mod, which also adds a 'surgery uses best' checkbox at the top of the health tab. Maybe you checkbox at the bottom doesn't fit anymore, but thats weird because I do see your checkbox on some of my prisoners, but not all
Примат Танковый 30 Jun, 2024 @ 2:10pm 
Спасибо тебе, добрый человек! Не понимаю, почему такую важную функцию не может разработчик сделать...
potnik 19 Jun, 2024 @ 1:28pm 
can you make a similar mod for softscanners?
Atlantispy 6 May, 2024 @ 5:28pm 
Would you be able to do an auto mod for "Hemogen extraction"? It seems weird that I can't just have a blood donation drive for my colonists in case someone loses a lot of blood!
Nibato  [author] 20 Apr, 2024 @ 8:10am 
I just pushed an update to potentially fix the ghoul issue. Let me know if you're still having problems
Sm4Ck 20 Apr, 2024 @ 4:30am 
@Cinders I have noticed this too, also if you have auto-extract enabled before turning pawn into a ghoul it will still enter gene extractor when its genes are finished regrowing and there is no way to disable it.
Cinders 16 Apr, 2024 @ 6:04am 
Hi! I love this mod, thank you so much for sharing it with us! I noticed that ghouls do not have the auto-extract toggle available. Is that intended?
Arganot 6 Apr, 2024 @ 2:06am 
Have not tried the mod or biotech functions yet but I like the idea. Does the mod have the ability to turn off auto extraction or put them on hold if conditions are met? Say if your gene bank is full pawns don't go get scanned only for the genes to rot on the ground. Or if all of that pawns genes are in gene banks as singles? Random's Gene Assistant mod tracks genes the player has, maybe collaberating could add that functionality if not present (just going off your mod's description.)
Nibato  [author] 2 Apr, 2024 @ 11:56am 
@AerosAtar Whoops, I accidentally uploaded the debug build instead. I pushed an update to the workshop, so this -should- be fixed shortly for you
AerosAtar 2 Apr, 2024 @ 9:30am 
I think you have left the harmony debug logging active, as I am getting a harmony.log file on my desktop with the listed patching seeming to refer to this mod. :)
Xrona 14 Jan, 2024 @ 3:14am 
Hello. Should we expect compatibility with races from other mods? It’s just that half of my colony doesn’t have this jackdaw for auto extraction.
Endorsi 3 Oct, 2023 @ 5:24pm 
Hi, sometimes when the health tab has too many stats/defs in it this can be pushed 'off' the GUI (appears half cut off at the bottom? Also worth noting I'm using the Health Tab Mod by Fluffy. Any chance of a patch for this?
StoryTaleBooks 11 Sep, 2023 @ 12:07am 
Mx Emmin, your best bet is probably just arresting your colonist.
Mx Emmin 10 Sep, 2023 @ 8:40am 
Is it possible to make an auto-extract blood/hemogen version of this for slaves & colonists? Wish it wasn't just prisoners.

I don't know how to submit requests on Github sorry
Elgate 20 Aug, 2023 @ 9:12am 
Is it possible to add compatibility with Gene Extractor Tiered?
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3016454783
Multiple Birds 11 Jul, 2023 @ 8:18am 
@Freakin I believe it's assigned to hauling.
Multiple Birds 11 Jul, 2023 @ 8:16am 
Very useful mod. I've noticed a mod conflict when using auto sorting with rimpy or the like. where pawns will go invisible and trapped in the gene extractor until you deconstruct it. It's probably obvious, but if anyone else gets this problem I've fixed it by loading this mod after any xenogene related mods.
Sir Luis 5 Jul, 2023 @ 12:45pm 
can you please please make a auto brain scanner for subcore softscanner and the subcore polyanalzyer?
Nibato  [author] 25 Apr, 2023 @ 11:56pm 
@TWrecks I have implemented your request for a mod option to have auto extract genes checked by default. It should be settings->mod options. Let me know if you have any issues with it.
Nibato  [author] 22 Apr, 2023 @ 3:57pm 
@Chrisinater5 you should be able to use the kNumbers mod to do bulk assignment now
Freakin 18 Apr, 2023 @ 8:34am 
Who brings them over to the extractor? Like how do i assigne ppl to do this? Seems like it takes forever till they do it on their own
Nibato  [author] 17 Mar, 2023 @ 2:19am 
I'll take a look into possibly implementing some of these feature requests when I get the time. Thanks for your suggestions, guys!
Maarx 16 Mar, 2023 @ 3:23pm 
Feature Request: This Needs a Column in "Numbers" Mod

https://github.com/Nibato/AutoExtractGenes/issues/1
Chrisinater5 10 Mar, 2023 @ 10:04pm 
Is there a way to assign pawns in bulk to this option? if not could it be? maybe a tool or gizmo when selecting a bunch of pawns.
TWrecks 8 Mar, 2023 @ 4:53pm 
Hiya Nibato, I'm just wondering if you could make it so that this functionality is default on for any pawn that isn't a baseline genome pawn. I think that'd be really helpful :)

Happy to donate a little if you need.
Nibato  [author] 3 Mar, 2023 @ 5:41am 
As far as I can figure so far, that seems to be an error that only shows up when you're using HAR, but have no HAR races loaded. It also seems to show up if all the HAR races are loaded after Auto-Extract Genes.

I'll see what I can do to fix it.
Arcimbaldo 2 Mar, 2023 @ 7:48pm 
I'm getting an error on launch with the patch for HAR. Eyeballing the patch, i can't see anything obviously wrong and i definitely have HAR installed and loaded first. Haven't had a chance yet to test on a completely clean load order so could be some other conflict.

[AutoExtractGenes] Patch operation Verse.PatchOperationFindMod(Humanoid Alien Races) failed
file: C:\Steam\steamapps\workshop\content\294100\2882834449\Patches\AutoExtractGenesComp.xml
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string)
Verse.PatchOperation:Complete (string)
(wrapper dynamic-method)

https://pastebin.com/eRThyK4m
Nox 9 Dec, 2022 @ 11:03pm 
Looks like your method for automating is firing off too frequently. It gets very expensive in eval time for larger colonies.

I'm trying to read dubs here on this.
Nibato  [author] 24 Nov, 2022 @ 2:08pm 
Not currently, no
PandoraKurczaky 24 Nov, 2022 @ 11:27am 
are you planning to add similar mod for subcore scanners?
kmcl11 21 Nov, 2022 @ 9:57pm 
loving this mod! also, hoping for a similar one that auto-queues an extract hemogen operation on colonists (like hemogen farming, but without having to be a prisoner)
RTG 17 Nov, 2022 @ 12:15am 
Now just need one that auto harvests ovums
Francis John 12 Nov, 2022 @ 8:28am 
Just checked and my deathresting prisoners now get auto harvested, beautiful work.
Nibato  [author] 11 Nov, 2022 @ 2:34pm 
Just pushed out an update that ignores deathrest for prisoners
Francis John 11 Nov, 2022 @ 1:59pm 
Excellent mod, saves a bunch of time.
The Deathrest things is still a bit off, my deathresting prisoner vamp does not get carted off for ripping.
Does not interrupt deathrest of my colonists either, but that is good.
Thanks for the mod it automates a whole bunch of clicking that feels like time wasting.
Adonidi 9 Nov, 2022 @ 12:53pm 
thx for adding races support ^^
Spank Daddy 7 Nov, 2022 @ 11:11am 
So ive been juggling extracting 8 hussars, 2 highmates, 7 impids, 3 dirtmoles, 6 wasters, 9 neanderthals, 4 genies, 5 pigskins, 10 yttakin, baseliners with colored hairs, 3 sanguophages i turned as prisoners. Clicking through looking for the genes regrowing hediff and all I felt was PAIN. This is now in my top MUST HAVE mods!!! Thanks for getting this out so fast
Nibato  [author] 6 Nov, 2022 @ 12:30pm 
I just pushed out an update that should support most races added by Humanoid Alien Races. Hopefully it fixes that problem for you.
Adonidi 6 Nov, 2022 @ 10:20am 
Kurin as far as I can see