RimWorld
Sell Prisoner With No Guilt(patch method)
댓글 37
[FIREFLY] FURINA FIXED ME 2024년 4월 14일 오후 11시 25분 
<3
xNaquada 2024년 4월 5일 오후 6시 42분 
thanks velcroboy333
velcroboy333  [작성자] 2024년 4월 5일 오전 11시 35분 
Updated for 1.5. No changes made. Let me know if any bugs pop up.
Cheers.
velcroboy333  [작성자] 2022년 10월 17일 오후 3시 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 2021년 8월 5일 오전 12시 34분 
thanks for the update!
velcroboy333  [작성자] 2021년 7월 19일 오후 11시 14분 
Updated for 1.3
velcroboy333  [작성자] 2021년 7월 5일 오후 4시 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 2021년 1월 7일 오전 10시 54분 
Okay thanks! :)
velcroboy333  [작성자] 2021년 1월 6일 오후 2시 24분 
Yes. It does the same thing but uses a more campatable patch method.
Azuwi 2021년 1월 6일 오후 2시 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 2020년 12월 28일 오후 7시 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  [작성자] 2020년 12월 9일 오후 9시 11분 
Yes it does.
OOZ662 2020년 12월 6일 오후 10시 04분 
Does this mod also get rid of the social impact of selling prisoners or just the mood effect?
Planetfall 2020년 9월 12일 오후 1시 37분 
Ah nice. Thanks for the quick reply
velcroboy333  [작성자] 2020년 9월 12일 오전 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 2020년 9월 12일 오전 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  [작성자] 2020년 8월 10일 오전 7시 54분 
Send me your logs if you want. I might be able to find the conflict that way.
Aurabeth 2020년 8월 10일 오전 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  [작성자] 2020년 8월 9일 오후 5시 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 2020년 8월 9일 오후 3시 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  [작성자] 2020년 8월 6일 오전 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 2020년 8월 6일 오전 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  [작성자] 2020년 8월 5일 오후 5시 52분 
velcroboy333  [작성자] 2020년 8월 4일 오후 11시 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  [작성자] 2020년 8월 4일 오후 11시 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  [작성자] 2020년 7월 26일 오후 3시 11분 
That looks like it should work yeah.
mrclrchtr 2020년 7월 26일 오후 2시 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 2020년 7월 26일 오후 2시 27분 
Thx for the upload. Is it possible to remove the social debuff (-15) as well?
velcroboy333  [작성자] 2020년 7월 26일 오전 11시 18분 
A little busy today but definitely will have time tomorrow.
velcroboy333  [작성자] 2020년 7월 26일 오전 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 2020년 7월 26일 오전 10시 31분 
Can you make a version of this for killing/selling bonded animals? GassyTaco removed their mod
CrazedKiller 2020년 7월 22일 오전 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 2020년 7월 21일 오전 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  [작성자] 2020년 7월 3일 오전 9시 46분 
@GassyTaco, no problem. and thanks for making in the first place.

@ColdWind. Yes. This works.
ColdWind 2020년 7월 3일 오전 9시 45분 
working?
GassyTaco 2020년 7월 1일 오후 4시 56분 
Thanks man, i been pretty beat up with stuff lately and i havent been able to play around with XML.
kaneeden 2020년 6월 2일 오후 3시 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 :)