RimWorld

RimWorld

510 ratings
[KV] Supply and Demand
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.0, 1.1, 1.2, 1.3
File Size
Posted
Updated
219.534 KB
Sep 13, 2018 @ 11:02am
Jul 18, 2021 @ 7:52pm
10 Change Notes ( view )

Subscribe to download
[KV] Supply and Demand

Description
Capitalism? On my Rimworld? It's more likely than you think!
If you are like me, you have played colonies to their bitter end, and had a few amazing successes where your pawns have amassed riches to the envy of the Rim. But what do you do with all of that money? Traders, when they visit, can barely afford to purchase your legendary golden statues. And that is being generous.

Wouldn't it make sense that traders visiting a rich colony will bring more goods to trade because... the colony is rich?

That's what Suppy and Demand does. Rather than creating new TraderKindDefs and manually giving them oodles of silver, human leather, and charge rifles, this mod takes your total colony wealth, scales it by game difficulty, then takes the natural logarithm of that to produce a scalar with diminishing returns that it then multiplies the stock of your trader by. If that all sounds hard to follow, here's the tl;dr: the mod scales trader stock based on colony wealth.


Mathbrain Stuff
If all you want is scaling things, you can tune out now. For the rest of you, this is the explaination of what I am doing and how I'm doing it.

I've wanted to implement a system that allows visiting traders to bring more stuff if you have more stuff to trade with them. It makes sense from an economic standpoint: your colonists have greater demand because they're rich, and traders are willing to supply more because they can get more. I was dissatisfied with XML patches because they failed to account for my addition to downloading new things, and definitely can't be scaled dynamically as you collect new things.

Wealth was the most obvious variable to choose to scale by, but it needed to be first compressed to keep traders from having two million chickens in their inventory, and it needed to grow at a slower rate than wealth, getting progressively slower over time to model diminishing returns. The natural log has both of these properties. To preserve the significance of difficulty, wealth is scaled by the price loss factor that the difficulty setting provides.



This equation is the scaling formula used in this mod. Lambda represents total colony wealth. Phi represents the difficulty scalar. The minimum value this function can take on within the domain is 1.



Original mod done by Cookie Wookie. Cookie, if you want me to remove this mod i will.


Direct Download:
https://github.com/KiameV/rimworld-supplyanddemand/releases/download/1.3/SupplyAndDemand.zip
Popular Discussions View All (6)
2
Jul 16, 2019 @ 12:25pm
Problem with Trade Ships
Maistronom
2
Nov 3, 2018 @ 11:30am
Ran into a bug upon opening options
Copper Boltwire
1
Apr 19, 2020 @ 8:45am
Could not find class SupplyAndDemand.Patch_FloatMenuMakerMap_ChoicesAtFor+Settings
SineSwiper
38 Comments
Aksarian Apr 26, 2023 @ 9:29pm 
Did someone test it with 1.4? Is it still working?
Liwet Nov 18, 2022 @ 5:09pm 
Any reason to pick this mod over Trading Options which has the same scaling option?
Stinky Hellgooner™ McMullen Nov 9, 2022 @ 12:15pm 
So long and thanks for all the mods, take care <3
Olaf-Opossum Oct 29, 2022 @ 12:19pm 
Thank you for all the great mods.
Naturtok Oct 22, 2022 @ 1:12pm 
Thanks KV for all the work with your mods! I hope your life is going well outside of the game!


In the meantime Trader Options gives *somewhat* similar functionality, insofar as you can boost up the trader wealth in relation to colony wealth. Not sure how well it does it compared to Supply and Demand, but at the very least you can manually boost up trader wealth in the late game if it's not scaling high enough.

https://steamcommunity.com/sharedfiles/filedetails/?id=2876541977
TwotoolusFLY_LSh.st Oct 21, 2022 @ 10:59pm 
thank you for your service :hardhat::highlvl:
Scrungo Oct 19, 2022 @ 2:31pm 
@Kiame_Vivacity thank you, enjoy your life
Kiame Vivacity  [author] Oct 7, 2022 @ 1:14pm 
After 5 years of modding for this game I am stepping aside. Life has me busy and I will not have time to update my mods. If anyone picks this up let me know and I'll post a message in the description pointing people to the 1.4 version.
LegitGamer1017 Aug 14, 2022 @ 3:59am 
So this increases the amount of goods and available silver for Walking Traders / Orbital Traders based on the formula?

Is this compatible with mods such as Traders Have Money by Neceros? (afaik this mod only increases Walking Trader / Orbital Trader available silver)

I like the concept of traders bringing in more stuff to sell. Are there separate sliders for Goods Brought and Silver Brought?
OkBuddy® Jul 20, 2022 @ 2:52am 
i think yeah you have to, because at 100 percent prices are same as vanilla, i'd say 150 percent is not too op