RimWorld

RimWorld

Traders Have Money
Bobdolemite 17 Mar, 2020 @ 8:31pm
Trader Def's For Adding Modded Orbital Traders
I went ahead and modded my version of Traders Have Money using the TraderDef's found in other mods. If your comfortable editing XML you can insert these TraderDef's into the base mod so that all your modded traders also benefit from the carried silver increase. I might consider working this into an actual patch with the Authors permission:


Traders Have Money SteamWorkshop folder: 2022959333

Modded Trader Def Names:
(Mod Name - In Game Trader Name. TraderDef listed on line below)

OPOE - Textiles Trader

TextilesTrader

OPOE - Prosthesis Trader

ProsthesesTrader

Glitter Tech - Black Market Trader

BlackMarket

Industrialisation - Deep Space Mining Trader

Ind_Orbital_DeepSpaceMiningShip

Star Wars Factions - Empire Trader

Orbital_Empire

Star Wars Outer Rim Protocol Droid, Astromech Droid - Inudstrial Automaton Trader

Orbital_IndustrialAutomaton

Star Wars JSD Phase 2 Clone Armor - Kaminoan Armor Trader

JSDOrbital__PhaseII_Armor

Misc Robots, Misc Robots++ - Robot Trader

AIRobotsTrader

Glitterworld - Farming Trader

Orbital_FarmingSW

Glitterworld - Glitterworld Trader:

Orbital_GlitterWorldSW

Glitterworld - Mining Goods

Orbital_MiningGoodsSW

Genetic Rim

GR_Mad_Science_Caravan

Traders Have Money - Horder Trader

Orbital_Horder

Wealthy Traders (Outdated 1.0) - Liquidator

Orbital_Liquidator

*Note if you would like me to add another TraderDef to this list please post the following: Mod Name, In Game Trader Name, TraderDef Name. You can find these by searching your steam workshop content folder filtered by Trader or Traderkind.

(Basic Instructions)

Navigate to your steam workshop content folder and search for 2022959333 (this is the folder that contains the Traders Have Money mod.

Go to Patches folder and open file Patch_TraderPatches with a text editor (notepad will work, though I suggest notepad++ at least. Dreamweaver also works if you have it) *Note* This is a good time to save a backup of the file incase of updates or if you break something.

There are three sets of patches, two for on foot traders and one for orbital traders. Add the TraderDef names to this section following the format EXACTLY. *Note* if you dont follow the format (ie caps, spacing, etc) then the mod will not work properly.

example:

defName="Orbital_BulkGoods"

my personal list:

defName="Orbital_BulkGoods" or defName="Orbital_CombatSupplier" or defName="Orbital_Exotic" or defName="Orbital_PirateMerchant" or defName="AIRobotsTrader" or defName="Orbital_Empire" or defName="Orbital_IndustrialAutomaton" or defName="Orbital_FarmingSW" or defName="Orbital_GlitterWorldSW" or defName="Orbital_MiningGoodsSW" or defName="JSDOrbital__PhaseII_Armor" or defName="Orbital_Horder" or defName="GR_Mad_Science_Caravan" or defName="TextilesTrader" or defName="ProsthesesTrader"

Goodluck and let me know if you run into any issues.
Last edited by Bobdolemite; 20 Mar, 2020 @ 9:35pm
< >
Showing 1-4 of 4 comments
NECEROS  [developer] 21 Mar, 2020 @ 3:15am 
Merged into the mod. Thank you.
okradonkey 5 Apr, 2020 @ 9:31am 
Hi NECEROS

Here's a little patch I put together using your xpath style for the Let's Trade! mod. I noticed in your patch the comment says "PatchOperationSequence was purposefully not used, so the success is hidden if there's any errors" - If you would prefer these in that same format let me know and I'll reformat them to save you the hassle. Also, if you don't mind educating me, I'd love to learn about when and why that's a better patchOperation choice. Thanks!

<!-- ========== Patch for "Let's Trade!" ========== --> <Operation Class="PatchOperationFindMod"> <mods> <li>Let's Trade!</li> </mods> <match Class="PatchOperationSequence"> <success>Always</success> <operations> <!-- Tribal --> <li Class="PatchOperationReplace"> <xpath>/Defs/TraderKindDef[ defName="Caravan_Neolithic_Farming" or defName="Caravan_Neolithic_Mining" or defName="Caravan_Neolithic_Textiles" or defName="Caravan_Neolithic_Medical" or defName="Caravan_Neolithic_Art" or defName="Caravan_Neolithic_Odd" ]//thingDef[text()="Silver"]/../countRange</xpath> <value> <countRange>800~4000</countRange> </value> </li> <!-- Industrial --> <li Class="PatchOperationReplace"> <xpath>/Defs/TraderKindDef[ defName="Caravan_Outlander_Farming" or defName="Caravan_Outlander_Mining" or defName="Caravan_Outlander_Textiles" or defName="Caravan_Outlander_Medical" or defName="Caravan_Outlander_Drugs" or defName="Caravan_Outlander_Archeological" ]//thingDef[text()="Silver"]/../countRange</xpath> <value> <countRange>4000~10000</countRange> </value> </li> <!-- Orbital --> <li Class="PatchOperationReplace"> <xpath>/Defs/TraderKindDef[ defName="Orbital_Archelogical" or defName="Orbital_Butcher" or defName="Orbital_Cannibal" or defName="Orbital_Drug" or defName="Orbital_Factory" or defName="Orbital_Farming" or defName="Orbital_Livestock" or defName="Orbital_Medical" or defName="Orbital_Mining" or defName="Orbital_Rare" or defName="Orbital_Restaurant" or defName="Orbital_Scrap" or defName="Orbital_Textiles" ]//thingDef[text()="Silver"]/../countRange</xpath> <value> <countRange>10000~100000</countRange> </value> </li> </operations> </match> </Operation>
Last edited by okradonkey; 5 Apr, 2020 @ 9:33am
NECEROS  [developer] 5 Apr, 2020 @ 1:13pm 
Hey.

So the reason I didn't use sequences is because if one operation in that sequence fails, it won't continue through the sequence.

Also, thanks! I'll check this out.
TwoBitSprite 23 Dec, 2021 @ 7:13am 
this is unfortunately the only place I can find this on google. Do you know where the "Horder trader" comes from? I'm not sure if it's this mod. Should it not be Hoarder? Wanted to report that typo to whoever I needed to
< >
Showing 1-4 of 4 comments
Per page: 1530 50