View Full Version : Question on Cash-Costs (Education, Pioneer)


historix69
Oct 02, 2008, 07:19 PM
1. Did anybody already find the place in code or xml where the Cash-Costs for the higher professions for school/highschool/university are defined or calculated? For example if a student graduates to elder statesmen, it costs 1.500 $ (on marathon) ...

2. Question : Where are the improvement cash-costs for the Pioneer defined, e.g. for building roads, mines, etc. The costs are quite low compared with other costs in the game. So it is not really worth keeping them in the game Imo.

In the beginning of the game the player is mostly threatened by the king to give away his money so it seems to be better to spend it quickly ... which often results in temporary lack of money to pay for improvements or education.
In the end-game, it is easy to get into a situation where you cannot earn money any more : high taxes, embargos on all kinds of goods, natives and european neighbours without money ... kind of a dead end ... and no money to upgrade some colonists to blacksmith or gunsmith ...

The cash-costs are kind of half-baked ... they would make sense if you could raise taxes in the colonies and if workers and troops would demand wages and if there would be a local market for stuff to sell, etc. ...

Polobo
Oct 02, 2008, 10:57 PM
1) Guessing here:
iEuropeCost (from CIV4UnitsInfo.xml)
EDUCATION_BASE_TUITION (from GlobalDefines.xml)

MAX(iEuropeCost - EDUCATION_BASE_TUITION, 0)

Except that for your example the elder statesman should 3,000 instead of 1,500: (2000 - 1000) * 3 (for marathon - maybe you were playing epic?)

Keep in mind iEuropeCost is modified by Minuit, the modified cost is used in the above equation (see historix69 comment below)

2) XML\Units\CIV4BuildInfos.xml
iCost is the element holding the gold cost to build improvements.

historix69
Oct 03, 2008, 06:04 AM
Thanks for the info ...

I had the FF Peter Minuit who gives a 25% discount on Europe prices ...

So the calculation for Statesman is :
75% of 2.000 = 1.500
(1.500 - 1.000) * 3 = 3 * 500 = 1.500