[BNW] Any way to mod max trade route distance?

skodkim

Deity
Joined
Jan 16, 2004
Messages
2,497
Location
Denmark
Hi

After my first few games with BNW I've got the feeling that the default max trade route distance is too low. Even though I had other civs/city states relatively close by my Capital couldn't trade with them.

I know I can influence this by e.g. building buildings, but is there any way of modding it?

\Skodkim
 
The base range is hardcoded in the DLL. They didn't even bother making defines for it.

If you don't want to use buildings to change the range then I would suggest using Technology_TradeRouteDomainExtraRange on techs you feel are in a good place to increase the range.

If it's the base range you want to increase then I suggest using Technology_TradeRouteDomainExtraRange to increase the range for TECH_AGRICULTURE. Since you always have that tech you will always get the increase.
 
The base range is hardcoded in the DLL. They didn't even bother making defines for it.

If you don't want to use buildings to change the range then I would suggest using Technology_TradeRouteDomainExtraRange on techs you feel are in a good place to increase the range.

If it's the base range you want to increase then I suggest using Technology_TradeRouteDomainExtraRange to increase the range for TECH_AGRICULTURE. Since you always have that tech you will always get the increase.

That's unfortunate, it would be nice to allow changing trade route ranges without making a custom DLL.
 
Thanks for the reply. I always hate when values are hardcoded since it limits modding possibilities. Think I might experiment with adding a distance boost to agriculture then (since it's the base distance I - for now - would like to change).

Does anyone know if I can find the values anywhere and whether they're scaled by map size?

\Skodkim
 
They do not scale with map size.

Base value is 20 range for naval trade routes and 10 for land. The code for it is in CvPlayerTrade::GetTradeRouteRange.
 
They do not scale with map size.

Base value is 20 range for naval trade routes and 10 for land. The code for it is in CvPlayerTrade::GetTradeRouteRange.


That's crazy :crazyeye: I know larger maps will/can have more players but you'd still expect that there would be some kind of increased distance between civs.

\Skodkim
 
Back
Top Bottom