RimWorld

RimWorld

339 ratings
Auto-Extract Genes
4
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5, 1.6
File Size
Posted
Updated
5.575 MB
Oct 31, 2022 @ 8:54pm
Jun 12 @ 5:40am
15 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Auto-Extract Genes

Description
Adds a checkbox on the Health tab of colonists, slaves, and prisoners that, when enabled, will have them automatically visit the gene extractor when their genes have regrown. The checkbox available in the Health tab in both the pawn summary window on the bottom left corner, and the bigger detailed pawn info window.

This mod works by simulating clicking the "Insert person ..." gizmo on the gene extractor when genes have regrown. It doesn't add any new jobs, tasks, etc to the pawns.

This mod should be safe to add and remove to existing saves.

Optionally Supported Mods:
Numbers: Adds a checkbox column for Auto-Extract Genes

Known Issue:
At the time of writing, this is actually a vanilla bug/issue with the "Insert person ..." gizmo on the gene extractors. If a non-prisoner pawn is interrupted (drafted, downed, etc) on his way to visit a gene extractor, they will never try to visit it again until 'cancel" is clicked at the gene extractor. The mod will re-issue the "Insert person ..." command shortly after it is cancelled which should solve the problem.

If you have other mods that add things to the Health tab, the Auto-Extract Genes checkbox may get pushed out of the window. You may still be able to access it in the bigger detailed pawn info window. You can also use the Numbers mod to access the Auto Extract genes checkbox. At this time, I don't really have any plans to fix this, as I can't really account for all the ways mods could modify the UI.

Please post feature requests or bug reports on GitHub[github.com]
Bug reports without a log will be ignored

Translation Contributors:
Ferchu (Spanish)

Links:
GitHub[github.com]
Numbers
64 Comments
[咕咕]竹兮 Apr 4 @ 9:45pm 
Excuse me, there are some races I do not see automatic extraction option, is it a compatibility issue?
Raskaran Mar 17 @ 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] Nov 15, 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 Nov 15, 2024 @ 6:55am 
Wouldn't calculations tank the performance?
Alan2025 Oct 30, 2024 @ 7:46pm 
Thank you so much! I didn't think the button would be there also
Nibato  [author] Oct 30, 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 Oct 29, 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 Aug 5, 2024 @ 7:15pm 
Will this work with/can you add compatibility with Gene Extractor Tiers?
https://steamcommunity.com/sharedfiles/filedetails/?id=3016454783

Thanks and great QoL mod!
bolemeus Aug 5, 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
Примат Танковый Jun 30, 2024 @ 2:10pm 
Спасибо тебе, добрый человек! Не понимаю, почему такую важную функцию не может разработчик сделать...