Victoria 3

Victoria 3

26 ratings
Treaty Ports Modification
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
495.327 KB
Nov 14, 2022 @ 4:24am
Nov 16, 2022 @ 9:40pm
6 Change Notes ( view )

Subscribe to download
Treaty Ports Modification

In 1 collection by CommonAnts
Mods Collection Basic 基础模组合集
38 items
Description
Are you tired of France and Britain getting rid of each other's tariffs?
Does your blood pressure rise when two great powers can't embargo each other only because their colonial treaty ports are next to each other?
Do you have any doubts about that treaty ports in protectories affect the whole market, including the overlord country?
Then you may need this mod.

Compatibility: Compatible with any mod, never modified vanilla content. The playset can be in arbitrary order.

Contents:
- Adding "valid condition" to treaty ports: treaty ports are valid only when they are adjacent to or in the same state region as an incorporated state of every potential market's owner country. Unless the international rank of the potential market's owner is weak enough.
- "Potential markets" refers to the markets which are affected by this treaty port in vanilla game. That is, every market adjacent to or in the same state region as the treaty port, except the treaty port's market itself.
- "Weak enough" means the country has low rank. If the treaty port belongs to a major or great power, a "weak"/"unrecognized regional"/"unrecognized (weak)" power is considered weak enough. Otherwise, a "weak"/"unrecognized (weak)" power with lower rank than the treaty port's owner is weak enough.
- Invalid treaty port becomes a normal unincorporated state and receives a modifier named "invalid treaty port".
- The "invalid treaty port" will become a treaty port again once the conditions are met again (e.g. Pondicherry of France after India becomes independent from the UK market).
- The "invalid treaty port" will lose its modifier if the entire state is owned and it is thus never a treaty port.
- Please subscribe ARoAI and ARoAI Modification mods if you want AI to stop demanding treaty ports in unincorporated states or countries in markets not owned by themselves.
- The above content is checked and updated once per month within the game.
15 Comments
Literally Nobody Nov 21, 2022 @ 1:43pm 
Hello, Gibraltar is still treaty port , is it oversight or working as intendent?
gjh4028 Nov 19, 2022 @ 12:10am 
所以必須要跟市場擁有者的已整合省分相鄰或在同一區塊才能生效?
CommonAnts  [author] Nov 15, 2022 @ 11:21pm 
@Moeshevik 感谢。不过那个次要政权设定我还是改成弱小政权了。毕竟葡萄牙丹麦这些也不至于这么弱吧。
Moeshevik Nov 15, 2022 @ 10:37pm 
最后回归本心加了一条,用来解决一开始的吕贝克问题
如果通过附庸国邻接的市场属于次要政权或更低,而条约港属于主要政权或列强,条约港仍然会生效

帝国主义游戏的规则只会有利于强者!:ArmedForces:
Moeshevik Nov 15, 2022 @ 10:24pm 
实测:
奥地利的敦刻尔克条约港, 与列强法国本土,奥地利市场内的比利时本土相邻, 条约港对法国生效
奥地利的梅梅尔条约港, 与列强俄罗斯的未整合领土立陶宛,俄罗斯市场内的普鲁士本土相邻, 条约港不生效
西班牙的梅梅利亚条约港, 与他自己市场内的摩洛哥本土相邻, 条约港生效(但是没有任何起作用的市场)
带嘤的加纳条约港, 与未承认国家阿散蒂本土,奥地利市场内的尼德兰殖民地,丹麦市场的丹麦殖民地相邻, 条约港不生效
带嘤的新加坡条约港, 与法国市场的柔佛本土相邻, 条约港不生效
阿曼¿的瓜德尔条约港, 与未承认国家莫克兰本土相邻, 条约港生效, 强行把莫克兰变成未整合领土后条约港仍然生效
Moeshevik Nov 15, 2022 @ 10:18pm 
哈↓哈↑我又来了:vanilla2:
又发现了一个新的情况,割占法国皮卡第的敦刻尔克为条约港,与我自己市场内的比利时相邻,与我自己领土不相邻,结果因为比利时被判定为无效:retreat:

经过一番折腾,改成了以下判定逻辑:
正常检查条约港所在州和相邻州的所有相关国家check_ported_state,依然要求全为真
1.若owner不是市场拥有者,设定市场拥有者为checking_country
--若checking_country = $ROOT_COUNTRY则直接为真, 否则过check_ported_country
2.else弱小政权检测,符合条件直接为真
3.else直接过check_ported_country
CommonAnts  [author] Nov 15, 2022 @ 10:56am 
@Moeshevik 感谢你的提醒,现在代码好了。
CommonAnts  [author] Nov 15, 2022 @ 4:11am 
set_state_type = unincorporated可以吗?我试试。
Moeshevik Nov 15, 2022 @ 3:10am 
另外现有语句并不能正确让条约港地位恢复,实测只会变成普通的未整合地区
发现的时候,果阿和本地治里早就在之前随着东印度公司闹革命暂时市场独立变成普通未整合地图了
需要多一行set_state_type = treaty_port

还有set_state_type = unincorporated 就可以正确取消条约港地位啊,modifier可以仅作标记
失效条约港变成整合州还是有一定modifier限制范围外的影响的,比如同化机制, 城镇化journal之类
Moeshevik Nov 15, 2022 @ 3:10am 
说到底还是蠢驴的条约港机制设计太蠢, 我虽然很喜欢这个游戏概念但蠢驴做出来实在是太蠢了
翻了一会码,把判定条件全部或否,实测可以在之前描述的情况让条约港生效,
不过这就和mod原本的意愿有一定冲突
丹麦:册那,凭什么,普鲁士吃了败仗我要被开市场?
奥地利(我): 行,那也把你揍一顿
丹麦:好哥哥我说着玩的

但老实说即便是按这个逻辑也会出现离谱的条约港, 比如波斯的胡齐斯坦条约港就和土鸡的巴士拉相邻,而且这个港符合"所在州和相邻州的全部相关方都是各自市场拥有者"条件
土鸡:册那,凭......