Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
This mod essentially just automatically clicks the "Insert person" gizmo/button on the extractor for you behind the scenes.
Even without using this mod, If you clicked the insert person button, and the target pawn interrupted by a mental break or something else, the same thing would happen. The command stays queued up in the extractor but the pawn will never go to it until the command is cancelled and re-issued. This actually happens with a lot of buildings that have an "Insert person" button in vanilla.
https://gist.github.com/HugsLibRecordKeeper/0d21b9172cace98c86d448f149639999
If the tending is permanent, the pawn won't be skipped for queuing after the condition is tended (basic wounds, bleeding, etc). Only pawns with untended conditions, or conditions that require constant tending (diseases, flu, etc) will be skipped until the condition is healed (or developed immunity).
But as i said, just having that simple toggle in the options makes the whole process already a lot easier.
I was considering diseases that require tending multiple times when I implemented it, not just injuries and bleeding. I was thinking about conditions that may require constant tending when I implemented it (flu, plague, infection, etc). With those diseases, If they were just auto-inserted instantly after the initial tending, it could be unfortunate :P
I've implemented it in a pretty generic way to try and avoid any issues with hediffs added by other mods.
The only pawns scheduled for extraction are now those that have no condition that are tend-able, regardless of the state.
But just having a quick way to disable the auto extraction helps a lot, is just turn it off while new prisoners are still being tended.
Good idea! I've pushed an update that adds a mod setting to skip any pawns that have conditions that require tending or periodic tending. It should be enabled by default.
I've also added support for the Numbers (1.6 Temp) mod.
If you want the update immediately you may need to unsubscribe and resubscribe to the mod to get steam to download it right away.
[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 ()
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.
This window is a bit bigger and has more room, so it may be accessible there.
Example: https://imgur.com/a/Fkf1qgy
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3016454783
Thanks and great QoL mod!
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
I don't know how to submit requests on Github sorry
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3016454783
https://github.com/Nibato/AutoExtractGenes/issues/1
Happy to donate a little if you need.