[SUBMOD] BASIC TRADE V 0.5
So, I was reading the Cutthroat Trade Development mod and was inspired to create a smaller version of the mod while I wait for it to be finished.
AIM
The idea of this mod is to introduce the few luxury resources that were traded over long distances and to allow Merchant Republics to make money off of this trade.
CURRENT STATUS
Pepper, cinnamon, amber, diamonds, silk and jade are in the mod right now.
FEATURES
- A trade network that transports resources from a starting region to the rest of the world.
- The ability to siphon some of the trade as MR holding a trade post in a resource producing province. The MR can then sell the resources via decision or keep it for themselves.
- The ability to lease trade posts as an MR. You no longer have to worry about not being able to reach India as a European MR.
- The ability to buy a resource if your capital contains enough of it. This creates an artifact that you can gift for opinion bonuses.
I intend to include up to 10~15 luxury resources to be traded around the world. The reason there's an upper limit is the number of calculations that need to be performed per resource.
This is how the distribution of a resource occurs:
TO DO
- Add more resources.
- Teach the AI to use the new MR functions.
I welcome suggestions on resources to add or changes to the algorithm used.
LIMITATIONS
1) If production is very high, resources might end up pooling in end nodes (West Africa, Scandinavia, Eastern Steppe). This most likely won't happen.
2) MRs in Europe can't actually build trade posts in India. CK2+ also destroys trade posts whenever they are transferred in a war. To circumvent this, take and Indian province and give it to a vassal. When the vassal finishes building a trade post, revoke the title.
3) The cost of a resource depends on the supply/demand ratio which currently means that poor tribal areas with low demand have lower cost than richer feudal areas.
So, I was reading the Cutthroat Trade Development mod and was inspired to create a smaller version of the mod while I wait for it to be finished.
AIM
The idea of this mod is to introduce the few luxury resources that were traded over long distances and to allow Merchant Republics to make money off of this trade.
CURRENT STATUS
Pepper, cinnamon, amber, diamonds, silk and jade are in the mod right now.
Produced along the Malabar coast and Ceylon.
Produced along the Malabar coast and Ceylon.
Produced only in Kollipake.
Produced only in Sambia and Marienburg. Production starts small but can be increased.
Produced in developed Indian and Tibetan provinces as well as Constantinople. China also supplies a portion via the silk road. Chinese supply depends on its status.
Produced in and around Khotan. China diverts a portion of the resource towards itself, removing it from the map. Chinese demand depends on its status.
FEATURES
- A trade network that transports resources from a starting region to the rest of the world.
- The ability to siphon some of the trade as MR holding a trade post in a resource producing province. The MR can then sell the resources via decision or keep it for themselves.
- The ability to lease trade posts as an MR. You no longer have to worry about not being able to reach India as a European MR.
- The ability to buy a resource if your capital contains enough of it. This creates an artifact that you can gift for opinion bonuses.
I intend to include up to 10~15 luxury resources to be traded around the world. The reason there's an upper limit is the number of calculations that need to be performed per resource.
This is how the distribution of a resource occurs:
1) Resource is generated in provinces with the appropriate province modifier.
2) Regional demand is met first. If excess resource remains, it is exported to neighbouring regions. MRs can buy from producing provinces before they export.
3) The amount a region receives is proportional to its total tax value.
4) Once in a region, it is distributed to provinces based on weighted tax values. Provinces on trade routes are weighted higher.
5) Rich provinces can pull resources from neighbouring or same realm provinces even if they are not on a trade route.
6) Costs are generated based on demand/supply ratios for both individual provinces and regions.
2) Regional demand is met first. If excess resource remains, it is exported to neighbouring regions. MRs can buy from producing provinces before they export.
3) The amount a region receives is proportional to its total tax value.
4) Once in a region, it is distributed to provinces based on weighted tax values. Provinces on trade routes are weighted higher.
5) Rich provinces can pull resources from neighbouring or same realm provinces even if they are not on a trade route.
6) Costs are generated based on demand/supply ratios for both individual provinces and regions.
TO DO
- Add more resources.
- Teach the AI to use the new MR functions.
I welcome suggestions on resources to add or changes to the algorithm used.
LIMITATIONS
1) If production is very high, resources might end up pooling in end nodes (West Africa, Scandinavia, Eastern Steppe). This most likely won't happen.
2) MRs in Europe can't actually build trade posts in India. CK2+ also destroys trade posts whenever they are transferred in a war. To circumvent this, take and Indian province and give it to a vassal. When the vassal finishes building a trade post, revoke the title.
3) The cost of a resource depends on the supply/demand ratio which currently means that poor tribal areas with low demand have lower cost than richer feudal areas.
Version 0.1 : Started with pepper.
Version 0.2 : Added cinnamon and diamonds
Version 0.3 : Added amber. Fixed some calculation issues.
Version 0.2 : Added cinnamon and diamonds
Version 0.3 : Added amber. Fixed some calculation issues.
- MRs now buy resources proportional to the number of trade posts they own. Exact formula is N/(N+25) of the excess resource, where N is the number of trade posts.
- Added Silk and Jade.
- Changed provincial distribution. Provinces with less than 4 settlements, that don't produce the resource being distributed and are not on any trade route cannot receive the resource. If the province in question is a capital of a duke or higher, it can still attempt to 'pull' from nearby provinces. Province distribution is still based on tax income.
- Filled in the map with generic resources. Some of these will be replaced over time with luxuries or finished goods.
- Added Silk and Jade.
- Changed provincial distribution. Provinces with less than 4 settlements, that don't produce the resource being distributed and are not on any trade route cannot receive the resource. If the province in question is a capital of a duke or higher, it can still attempt to 'pull' from nearby provinces. Province distribution is still based on tax income.
- Filled in the map with generic resources. Some of these will be replaced over time with luxuries or finished goods.
- MRs can now lease trade posts for 50 years. It is a trade post targetted decision, so right click on a trade post to access it. You can't target the trade posts of other patricians.
- MRs can now sell the excess resources that they have accumulated in their capital.
The AI won't use either of the two decisions above as I need to teach them how to value certain
provinces.
- Switched to using custom defines instead of fixed values. To edit resource prices or consumption ratios, go to the scripted_effects file.
- MRs can now sell the excess resources that they have accumulated in their capital.
The AI won't use either of the two decisions above as I need to teach them how to value certain
provinces.
- Switched to using custom defines instead of fixed values. To edit resource prices or consumption ratios, go to the scripted_effects file.
Attachments
Last edited: