For the purposes of importing the softcoding value_dbed has been replaced by the more generic term preference. Either
Code:
technology = {
preference_complete = {
7240 = 10 # x 69 = 690 # 1951 Air Cavalry
[...]
}
}
or
Code:
technology = {
preference_tweak = {
7240 = 10 # x 69 = 690 # 1951 Air Cavalry
[...]
}
}
are imported.
preference_complete imports a complete list of preference for all techs. If a tech is not specified, than a default value of 100 is used.
preference_tweak only resets the values in its list.
In practice preference_complete should only be used for the 2 default files, and preference_tweak in all other files to define those values, that do differ from the default files or the last file loaded. At the start of a campaign the default file is loaded first and the dedicated ai file second.
preference is value divided by effective difficulty.
Effective difficulty of a tech is the sum of the effective difficulties of its components. The effective difficulty of a component
is the difficulty as described in the tech files plus 2 and at least 5. In case of "double_time = yes" the effective difficulty is doubled.
preference times effective difficulty is value, 690 in the given example of 1951 Air Cavalry.
score = value x [historical date modifier] / [research time including ministers and ideas but excluding historical date modifier]
Whenever new research project can be started whichever combination of available tech team and available tech scores best will be chosen.