Jump to content

[mod] RJW 'Harvest Organs post mortem'/Autopsy Patch


Stardust3D

Recommended Posts

Posted
On 12/19/2021 at 12:20 AM, Wallet said:

Thanks for this. 

 

Not really an issue, just a feature request. Make them sellable as well?

All organs can already be sold. The traders won't accept them though.
The Lewd Traders mod on discord discored icon.png could be able to fix this.

  • 2 weeks later...
  • 2 weeks later...
Posted
On 1/4/2022 at 12:48 PM, Olapa said:

you have put the RJW Plastic Surgeries mod for the dowload, are they fusing?


Only the filename should have been wrong.
It's fixed now.

Posted

Latest version of this seems to break Post Mortem so that you can't harvest any organs, even if the chance is set to 100% (but it'll remove the organs from the corpse).

Posted (edited)
On 1/20/2022 at 10:42 AM, darkspleen said:

Latest version of this seems to break Post Mortem so that you can't harvest any organs, even if the chance is set to 100% (but it'll remove the organs from the corpse).

 

I did some testing and Post Mortem didn't drop any body parts. Even if it was nearly the only mod loaded.

I need to dig a bit deeper here, because I don't know what exactly is happening.


EDIT: "Medically preserve organs with medicine" appears to be buggy.
"Medically extract organs" does work though.

Edited by Stardust3D
Posted (edited)

used to work perfectly for me on all three tiers of extraction, but after adding some mods (i think Sized Apparel here to blame again) - all tiers of autopsy now fail with error and don't give any parts at all, only rarely it still works for some corpses, don't know why the difference

 

error:

Spoiler

JobDriver threw exception in initAction for pawn Peters driver=JobDriver_DoBill (toilIndex=13) driver.job=(DoBill (Job_729809) A=Thing_TableAutopsy144102 B=Thing_Corpse_Human426200 C=(113, 0, 192))
System.NullReferenceException: Object reference not set to an instance of an object
  at SizedApparel.recipePartRemoverPatch.Postfix (Verse.Hediff hd, Verse.Thing& __result) [0x0000d] in <1e01ca7ba20a48b488032b6e55c592d0>:0
  at (wrapper dynamic-method) rjw.SexPartAdder.rjw.SexPartAdder.recipePartRemover_Patch1(Verse.Hediff)
  at System.Linq.Enumerable+SelectListIterator`2[TSource,TResult].ToList () [0x0002a] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
  at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
  at RJW_patch_Autopsy.NewMedicalRecipesUtilityPatch.AddRjwParts (Autopsy.RecipeInfo recipeInfo, Verse.Corpse corpse, System.Single skillChance, System.Collections.Generic.IEnumerable`1[Verse.Thing]& __result) [0x001c1] in <a07a276b807e416bb0030a6f932f5a65>:0
  at (wrapper dynamic-method) Autopsy.NewMedicalRecipesUtility.Autopsy.NewMedicalRecipesUtility.TraverseBody_Patch2(Autopsy.RecipeInfo,Verse.Corpse,single)
  at Autopsy.MakeRecipeProductsPatch.Postfix (System.Collections.Generic.IEnumerable`1[Verse.Thing]& __result, Verse.RecipeDef recipeDef, Verse.Pawn worker, System.Collections.Generic.List`1[T] ingredients) [0x0019f] in <e3373f5499a246cb96257f127ec96b53>:0
  at (wrapper dynamic-method) Verse.GenRecipe.Verse.GenRecipe.MakeRecipeProducts_Patch1(Verse.RecipeDef,Verse.Pawn,System.Collections.Generic.List`1<Verse.Thing>,Verse.Thing,RimWorld.IBillGiver,RimWorld.Precept_ThingStyle)
  at Verse.AI.Toils_Recipe+<>c__DisplayClass3_0.<FinishRecipeAndStartStoringProduct>b__0 () [0x0009d] in <f2d2a994b972449b95534f171b6e3647>:0
  at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x001de] in <f2d2a994b972449b95534f171b6e3647>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.AI.JobUtility:TryStartErrorRecoverJob (Verse.Pawn,string,System.Exception,Verse.AI.JobDriver)
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
Verse.AI.Toils_Recipe/<>c__DisplayClass2_0:<DoRecipeWork>b__1 ()
(wrapper dynamic-method) Verse.AI.JobDriver:Verse.AI.JobDriver.DriverTick_Patch0 (Verse.AI.JobDriver)
Verse.AI.Pawn_JobTracker:JobTrackerTick ()
(wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch1 (Verse.Pawn)
Verse.TickList:Tick ()
Verse.TickManager:DoSingleTick ()
Verse.TickManager:TickManagerUpdate ()
Verse.Game:UpdatePlay ()
Verse.Root_Play:Update ()

 

hugslog:

https://gist.github.com/HugsLibRecordKeeper/f4d9b4485af3a33e22d0f0c04660acf5

 

edit: yeah, it's Sized Apparel, changing load order didn't help, but after disabling it all organs and parts pop up again without errors, some sort of a conflict

Edited by Danv
Posted (edited)

That's interesing.
I managed to catch the error inside Sized Apparel, but I don't know if I may share a recompiled version of it.


Place this fixed version of SizedApparel in RimWorld\Mods\SizedApparel\1.3\Assemblies to fix the issue.

SizedApparelforRJW.dll

 

The issue was fixed and this patch is no longer needed.

Edited by Stardust3D
there is a fix now
  • 2 weeks later...
Posted
On 2/4/2022 at 8:37 PM, Stardust3D said:

That's interesing.
I managed to catch the error inside Sized Apparel, but I don't know if I may share a recompiled version of it.


Place this fixed version of SizedApparel in RimWorld\Mods\SizedApparel\1.3\Assemblies to fix the issue.

SizedApparelforRJW.dll 96.5 kB · 34 downloads

 

The issue was fixed and this patch is no longer needed.

 

What is the fix now , this fix for sized apparell or your updated mod file ?

  • 5 months later...
  • 2 months later...
  • 1 year later...
Posted
On 10/25/2022 at 4:25 PM, yoyoman69 said:

Does this work with RJW 5+ and Rimworld 1.4?

did you find out? it's still under the submods for RJW, so I assume it does but making sure

Posted
On 11/18/2023 at 3:46 AM, CardinalBirb said:

did you find out? it's still under the submods for RJW, so I assume it does but making sure

it works for me so far. my current new less than a day old run is pretty bare skeletal mod wise except for RJW mods, its submods and dependencies.

 

 

Posted
9 hours ago, Itsuji said:

it works for me so far. my current new less than a day old run is pretty bare skeletal mod wise except for RJW mods, its submods and dependencies.

 

 

thanks! downloading with confidence then

  • 5 months later...
  • 2 weeks later...
Posted

Currently there isnt really a point in posting the git here since the autopsy mod itself didnt receive any updates since 2022.
Maybe i will update it myself at some point.

  • 2 weeks later...
Posted (edited)

hey, is there a config to prevent the organs from rotting? the rotting condition even ignores the freezer room temperature

 

edit: apparently the countdown check got randomized after every ticks, there's no errors log and the RJW parts are the only one that have this error (1.4 btw)

image.png.6f072719ed723f92570959b6c3f552a1.png image.png.fae91954dc5883d4310799df06daaa00.png

edit2: mb, should've asked the RJW team tbh, but just in case

edit3: idk what happen but it fixed itself, 10/10 best game in the market :thumbsup:

Edited by SanzeninHayate32
Posted

Out of curiosity, how do others use this mod? Are you adding random parts from dead raiders to slaves/prisoners? Training medical skills via weird surgeries? Just having fun chopping them up?

 

I've not found traders interested in buying the parts, and my "surgery for the sake of surgery" tends to focus on legs, so I've found myself with raider parts just rotting away when an intense heat wave hits and my freezer warms up (no issues on 1.5 with parts rotting while frozen, unlike previous poster).

  • 3 weeks later...
Posted
On 6/12/2024 at 11:51 PM, SeranaUser said:

Out of curiosity, how do others use this mod? Are you adding random parts from dead raiders to slaves/prisoners? Training medical skills via weird surgeries? Just having fun chopping them up?

 

I've not found traders interested in buying the parts, and my "surgery for the sake of surgery" tends to focus on legs, so I've found myself with raider parts just rotting away when an intense heat wave hits and my freezer warms up (no issues on 1.5 with parts rotting while frozen, unlike previous poster).

it's been a while since i touched RW but iirc there is a trader/visitor that's willing to buy or accept them as a gift (trade ship usually), and for me it's usually to give my pawn some confidence in term of size, what? they got small pp? no problemo, we got this random dude's chopped off dicks in our freezer for you to transplant lulw. So yeah, basically just as a cheaper alternative for size growth serum.

 

And the rotting part is a bug on my ends, idk what caused it, but i noticed that random parts were rotting in my hospital so i thought nothing of it, until i look at my storage freezer and found out about the rest of them slowly rotting away, it fixed itself after 10 minutes has passed tho

  • 10 months later...
Posted (edited)

my med storage was all assholes when I could've really used a lung, idk if anyone else wants this but I re-added the normal organs in NewMedicalRecipesUtilityPatch.cs
It's been working for me so far at least. Thank you OP!

rjw-patch-autopsy.zip

Edited by atnk

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...