RimWorld
Оцінок: 512
[KV] Supply and Demand
2
2
   
Нагородити
До улюбленого
В улюблених
Прибрати
Mod, 1.0, 1.1, 1.2, 1.3
Розмір файлу
Додано
Оновлено
219.534 KB
13 верес. 2018 о 11:02
18 лип. 2021 о 19:52
Змін 10 ( перегляд )

Підпишіться, аби завантажити
[KV] Supply and Demand

Опис
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
Популярні обговорення Переглянути всі (6)
2
16 лип. 2019 о 12:25
Problem with Trade Ships
Maistronom
2
3 листоп. 2018 о 11:30
Ran into a bug upon opening options
Copper Boltwire
1
19 квіт. 2020 о 8:45
Could not find class SupplyAndDemand.Patch_FloatMenuMakerMap_ChoicesAtFor+Settings
SineSwiper
Коментарів: 39
Mlie 16 лип. о 11:15 
Made an update of this:
https://steamcommunity.com/sharedfiles/filedetails/?id=3290701666
Hope it helps anyone!
Aksarian 26 квіт. 2023 о 21:29 
Did someone test it with 1.4? Is it still working?
Liwet 18 листоп. 2022 о 17:09 
Any reason to pick this mod over Trading Options which has the same scaling option?
Stinky Hellgooner™ McMullen 9 листоп. 2022 о 12:15 
So long and thanks for all the mods, take care <3
Olaf-Opossum 29 жовт. 2022 о 12:19 
Thank you for all the great mods.
Naturtok 22 жовт. 2022 о 13:12 
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 21 жовт. 2022 о 22:59 
thank you for your service :hardhat::highlvl:
Scrungo 19 жовт. 2022 о 14:31 
@Kiame_Vivacity thank you, enjoy your life
Kiame Vivacity  [автор] 7 жовт. 2022 о 13:14 
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 14 серп. 2022 о 3:59 
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?