RimWorld

RimWorld

Sell Prisoner With No Guilt(patch method)
37 Comments
[FIREFLY] FURINA FIXED ME 14 Apr @ 11:25pm 
<3
xNaquada 5 Apr @ 6:42pm 
thanks velcroboy333
velcroboy333  [author] 5 Apr @ 11:35am 
Updated for 1.5. No changes made. Let me know if any bugs pop up.
Cheers.
velcroboy333  [author] 17 Oct, 2022 @ 3:37pm 
Updated to 1.4

Altered the patch slightly so that the debuff affects only those with Kind trait. Others will not get the thought at all.
[FIREFLY] FURINA FIXED ME 5 Aug, 2021 @ 12:34am 
thanks for the update!
velcroboy333  [author] 19 Jul, 2021 @ 11:14pm 
Updated for 1.3
velcroboy333  [author] 5 Jul, 2021 @ 4:48pm 
Attention: I will absolutely be updating all my mods to 1.3. I want to take the time to look at the new code first in order to make sure the code changes are implemented correctly for the new version, as well as make any balance changes, and to implement any relevant new features into my mods,

The upcoming week is going to be busy for me already as the busy season for my real job is just beginning and goes pretty heavy through the fall and holiday season. But I will try to find the time as soon as I am able. My goal is to have all my mods ready for the official release in a couple weeks.

note I will be maintaining support for 1.2 after the update to 1.3 but I a have already moved on from 1.1 or older, so, those versions will not be maintained unless they are naturally compatible.

Thanks for your patience.
Azuwi 7 Jan, 2021 @ 10:54am 
Okay thanks! :)
velcroboy333  [author] 6 Jan, 2021 @ 2:24pm 
Yes. It does the same thing but uses a more campatable patch method.
Azuwi 6 Jan, 2021 @ 2:20pm 
is this a re-upload of another mod? cause i got a mod called selling prisoners with no guilt in my mod list but it's from 1.0 but the file is missing, so is this an re-upload of that? :D
Scout Gaming 28 Dec, 2020 @ 7:21pm 
Thanks so much. It appears that gifting people to some faction via droppods still counts as selling, even tho I just return them home, because they are from the same faction. This mod fixes it, thank you so much!
velcroboy333  [author] 9 Dec, 2020 @ 9:11pm 
Yes it does.
OOZ662 6 Dec, 2020 @ 10:04pm 
Does this mod also get rid of the social impact of selling prisoners or just the mood effect?
Planetfall 12 Sep, 2020 @ 1:37pm 
Ah nice. Thanks for the quick reply
velcroboy333  [author] 12 Sep, 2020 @ 9:32am 
Correct. The patch method is a bit more friendly for other mods. Technically they are both XML. Overwriting is when you copy/paste a def from vanilla and then change some elements/values. if another mod is looking at this def, those changes can cause issues.

Patching takes place after the Defs are loaded. There's still some room to bump heads with other mods but much less. Patching also offers conditional possibilities for when another mod does bump heads, allowing us to make a change if a certain mod is or isn't loaded.
Planetfall 12 Sep, 2020 @ 8:38am 
I'm not a modder so this is probebly an obvious question, but what are the pros and cons between using XML vs rewriting the Vanilla Def? Does it reduce the risk of incompatibilities?
velcroboy333  [author] 10 Aug, 2020 @ 7:54am 
Send me your logs if you want. I might be able to find the conflict that way.
Aurabeth 10 Aug, 2020 @ 6:48am 
I put it at the very bottom of the load list and I still get the -4 mood debuff for selling a prisoner (without taking organs). It doesn't really matter to me if the mood debuff exists or not. I just wanted to bring that to your attention.
Also note: I'm yeeting people in transport pods and yoinking them off into nearby tribes and such instead of using caravan selling methods. Though idk if that would change anything.
Thanks for the timely responses and everything. They've been greatly appreciated.
velcroboy333  [author] 9 Aug, 2020 @ 5:59pm 
Hmm, I looked at Psychology and I don't see it touching the same thoughts. Have you tried moving this mod lower in the order? Below any other mod that might affect pawn thoughts?
Aurabeth 9 Aug, 2020 @ 3:03pm 
Perhaps Psychology also changes mood stuff? I still get the debuff with this mod installed and I am pretty sure that is the only mod that messes with my pawn's thoughts and stuff in that save
velcroboy333  [author] 6 Aug, 2020 @ 7:32am 
One mod I've been meaning to look into is Shei Foxy's Grim Reality. That mod touches pretty much all of the thoughts/memories and would impact how this one functions
Aurabeth 6 Aug, 2020 @ 7:01am 
I've been running a colony with this mod, but for some reason my colonists still get mood debufs for selling colonists... Mod conflicts, mod placement in list, perhaps me misreading what this mod actuallly does?
velcroboy333  [author] 5 Aug, 2020 @ 5:52pm 
velcroboy333  [author] 4 Aug, 2020 @ 11:10pm 
@ZX Zero, Sorry, I completely spaced on that request. I definitely will have time tomorrow (for real this time) to put that together. Even made a little note for myself.
velcroboy333  [author] 4 Aug, 2020 @ 11:08pm 
I updated for 1.2 and added the patch to remove the opinion offset.

@Brokando. Looking again a little closer, that patch weirdly kind of works but it's not exactly correct.

The xpath line is targeting baseOpinionOffset but you are replacing with baseMoodEffect

And the 2nd one is unnecessary as labels and descriptions are slightly different.
velcroboy333  [author] 26 Jul, 2020 @ 3:11pm 
That looks like it should work yeah.
mrclrchtr 26 Jul, 2020 @ 2:51pm 
Maybe something like that?


<Operation Class="PatchOperationReplace">
<success>Always</success>
<xpath>*/ThoughtDef[defName = "SoldPrisoner"]/stages/li/baseOpinionOffset</xpath>
<value>
<baseMoodEffect>0</baseMoodEffect>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<success>Always</success>
<xpath>*/ThoughtDef[defName = "SoldPrisoner"]/stages/li/label</xpath>
<value>
<label>We sold a prisoner. At least we didn't take their organs...</label>
</value>
</Operation>
mrclrchtr 26 Jul, 2020 @ 2:27pm 
Thx for the upload. Is it possible to remove the social debuff (-15) as well?
velcroboy333  [author] 26 Jul, 2020 @ 11:18am 
A little busy today but definitely will have time tomorrow.
velcroboy333  [author] 26 Jul, 2020 @ 11:18am 
Yes. I know GT had several similar mods. I don't remember what they all were but if you do, let me know. I'll make them.
ZX Zero 26 Jul, 2020 @ 10:31am 
Can you make a version of this for killing/selling bonded animals? GassyTaco removed their mod
CrazedKiller 22 Jul, 2020 @ 8:14am 
I had to search my modlist to find what got removed, yeah, turns out the original "Selling prisoners with no guilt" is deleted, lets use this one now
TrickeyTrick 21 Jul, 2020 @ 9:23am 
looks like GassyTaco removed his mod entirely in favor of your updated one; I didn't even know his wasn't working haha. Thanks for this!
velcroboy333  [author] 3 Jul, 2020 @ 9:46am 
@GassyTaco, no problem. and thanks for making in the first place.

@ColdWind. Yes. This works.
ColdWind 3 Jul, 2020 @ 9:45am 
working?
GassyTaco 1 Jul, 2020 @ 4:56pm 
Thanks man, i been pretty beat up with stuff lately and i havent been able to play around with XML.
kaneeden 2 Jun, 2020 @ 3:33pm 
thank you. the original mod doesnt work for me in 1.1 but yours seems to have even cured my savegame of previously accumulated whining debuffs. great job :)