How do you mod the distance limit globally for all trade units?

DistantRainbow

Chieftain
Joined
Apr 16, 2015
Messages
81
I'm about to use a mod which increases the minimum required distance between cities from 4 to 6, and the maximum workable/tile-buyable distance from a city to 5.

However, I soon realized that this mod would potentially pose a problem for trade units(Caravans/Cargo Ships) due to the average distance between cities increasing.

So I'm thinking of adding a (personal) modification code to the limit in the mod by applying a multiplier or whatever, but I can't figure out how to do it, there doesn't seem to be a variable regarding that in GlobalDefines or such.

How do you do it? Keep in mind that I'm trying to modify the default range for every player in the game, not just some or myself.

Do I have to do it some other way? The only other ways to modify trade route range... might be via buildings or techs, maybe?... If there isn't a simpler, direct method, should I try to slap the modifiers on the Palace? Or modify the Agriculture tech? If so, how should I do that? (haven't tried modifying techs before especially, don't know how to do that)
 
If you're using my custom DLL (or one based on it), see also the trade route API extensions and the option to scale trade routes with map size
 

Looking at Technology_TradeRouteDomainExtraRange as mentioned in that topic, it seems that this is a flat increase in the number of hexes(as in, Compass/Refrigeration/Combustion each add 10 to the max distance for land or sea)?

That won't do. Not what I want. I want a multiplier of 1.5x or 1.6x, not a flat increase of X hexes.

Is there a way to mod a trade unit max distance multiplier into techs? Or do I have to look elsewhere?

If you're using my custom DLL (or one based on it), see also the trade route API extensions and the option to scale trade routes with map size

I do sometimes play with your DLL, but I'd rather have this be a standalone thing added to the mod I mentioned, for the times when I play without it.

But thanks for the advice.
 
Back
Top Bottom