Trade Route Outputs
Posted: Thu May 01, 2008 5:03 pm
The default output of a trade route is
[output per turn] = 0.05 * [population of source system] + 0.1 * [population of destination system]
I've now found the two colored multipliers in trek.exe:
0.05
offset: 0x176924
length: 8 bytes (double)
0.1
offset: 0x17692c
length: 8 bytes (double)
Negative values are possible
-----------------------------------------------------------------------------------
In addition, there's a third constant at offset 0x176934 (8 bytes as well).
It determines how much a minor race's attitude towards the player will increase per turn if the players has a trade route to the minor race's system.
The default value is 0.05, and their attitude will increase by approximately that many lines (lines in the attitude bar on the F5 screen) per turn, i.e. given the default value, their attitude "should" (without rounding errors) increase by 1 line every 20 turns.
However, rounding errors seem to be a major factor here. If the constant is relatively big, the attitude improvement a bit "too fast", and if it's relatively small, then the improvement is a bit "too slow".
Since the default value of 0.05 is *very* small, the default effect is significantly less than expected, and the real increase is only about 1 line every 30 turns.
The effect is doubled if you have a friendship treaty with them.
If you have an affiliation treaty with them, it's tripled instead.
Of course, in a normal game, there can be a lot of other effects (bribing, battles etc.) that interfere with the rather small (unless modded ) influence of trade routes on attitude.
Negative values are possible here as well.
-
Trade routes to major empires also have a mimimal positive influence on their attitude, but it's really small and doensn't seem to pile up over the turns.
[output per turn] = 0.05 * [population of source system] + 0.1 * [population of destination system]
I've now found the two colored multipliers in trek.exe:
0.05
offset: 0x176924
length: 8 bytes (double)
0.1
offset: 0x17692c
length: 8 bytes (double)
Negative values are possible
-----------------------------------------------------------------------------------
In addition, there's a third constant at offset 0x176934 (8 bytes as well).
It determines how much a minor race's attitude towards the player will increase per turn if the players has a trade route to the minor race's system.
The default value is 0.05, and their attitude will increase by approximately that many lines (lines in the attitude bar on the F5 screen) per turn, i.e. given the default value, their attitude "should" (without rounding errors) increase by 1 line every 20 turns.
However, rounding errors seem to be a major factor here. If the constant is relatively big, the attitude improvement a bit "too fast", and if it's relatively small, then the improvement is a bit "too slow".
Since the default value of 0.05 is *very* small, the default effect is significantly less than expected, and the real increase is only about 1 line every 30 turns.
The effect is doubled if you have a friendship treaty with them.
If you have an affiliation treaty with them, it's tripled instead.
Of course, in a normal game, there can be a lot of other effects (bribing, battles etc.) that interfere with the rather small (unless modded ) influence of trade routes on attitude.
Negative values are possible here as well.
-
Trade routes to major empires also have a mimimal positive influence on their attitude, but it's really small and doensn't seem to pile up over the turns.