RimWorld
Sell Prisoner With No Guilt(patch method)
37 comentários
[FIREFLY] FURINA FIXED ME 14 de abr. às 23:25 
<3
xNaquada 5 de abr. às 18:42 
thanks velcroboy333
velcroboy333  [autor] 5 de abr. às 11:35 
Updated for 1.5. No changes made. Let me know if any bugs pop up.
Cheers.
velcroboy333  [autor] 17 out. 2022 às 15:37 
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 ago. 2021 às 0:34 
thanks for the update!
velcroboy333  [autor] 19 jul. 2021 às 23:14 
Updated for 1.3
velcroboy333  [autor] 5 jul. 2021 às 16:48 
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 às 10:54 
Okay thanks! :)
velcroboy333  [autor] 6 jan. 2021 às 14:24 
Yes. It does the same thing but uses a more campatable patch method.
Azuwi 6 jan. 2021 às 14:20 
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 dez. 2020 às 19:21 
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  [autor] 9 dez. 2020 às 21:11 
Yes it does.
OOZ662 6 dez. 2020 às 22:04 
Does this mod also get rid of the social impact of selling prisoners or just the mood effect?
Planetfall 12 set. 2020 às 13:37 
Ah nice. Thanks for the quick reply
velcroboy333  [autor] 12 set. 2020 às 9:32 
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 set. 2020 às 8:38 
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  [autor] 10 ago. 2020 às 7:54 
Send me your logs if you want. I might be able to find the conflict that way.
Aurabeth 10 ago. 2020 às 6:48 
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  [autor] 9 ago. 2020 às 17:59 
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 ago. 2020 às 15:03 
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  [autor] 6 ago. 2020 às 7:32 
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 ago. 2020 às 7:01 
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  [autor] 5 ago. 2020 às 17:52 
velcroboy333  [autor] 4 ago. 2020 às 23:10 
@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  [autor] 4 ago. 2020 às 23:08 
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  [autor] 26 jul. 2020 às 15:11 
That looks like it should work yeah.
mrclrchtr 26 jul. 2020 às 14:51 
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 às 14:27 
Thx for the upload. Is it possible to remove the social debuff (-15) as well?
velcroboy333  [autor] 26 jul. 2020 às 11:18 
A little busy today but definitely will have time tomorrow.
velcroboy333  [autor] 26 jul. 2020 às 11:18 
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 às 10:31 
Can you make a version of this for killing/selling bonded animals? GassyTaco removed their mod
CrazedKiller 22 jul. 2020 às 8:14 
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 às 9:23 
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  [autor] 3 jul. 2020 às 9:46 
@GassyTaco, no problem. and thanks for making in the first place.

@ColdWind. Yes. This works.
ColdWind 3 jul. 2020 às 9:45 
working?
GassyTaco 1 jul. 2020 às 16:56 
Thanks man, i been pretty beat up with stuff lately and i havent been able to play around with XML.
kaneeden 2 jun. 2020 às 15:33 
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 :)