• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Mr_B0narpte

Field Marshal
12 Badges
Mar 15, 2009
4.720
352
  • Arsenal of Democracy
  • Cities in Motion
  • Darkest Hour
  • For The Glory
  • Hearts of Iron III
  • Rome Gold
  • Victoria 2
  • Rome: Vae Victis
  • 500k Club
  • Pride of Nations
  • Rise of Prussia
  • Hearts of Iron IV Sign-up
When building infrastructure to the max I have to click on the infra picture on the province itself on the map mode. If I try to do so in the production screen it only goes halfway (i.e. it would only have 0/10 for Berlin, I'd have to go to map mode to make it 0/20).
 
Upvote 0
This concrete problem was introduced by me. I thought it would be some little soft coding only, but that is not so. The problem itself was there in 107 already. When one or more units of a line of infra are finished the total line size can no longer be increased properly. It calculates that current max infra + total line size x 0.1 must never be > 2. The proper equation would be current max infra + (total line size - units done) x 0.05 must never be > 2. 0.05 must of course be no hardcoded value but infra = { size = 0.05 } that can be loaded from \db\building_costs.txt.

There is also the semirandom occurance of being unble to build full 200% infra but only one unit less. This appear to be a floating point issue. Maybe for those purposes Infravalues should be convertet into int.
 
This concrete problem was introduced by me. I thought it would be some little soft coding only, but that is not so. The problem itself was there in 107 already. When one or more units of a line of infra are finished the total line size can no longer be increased properly. It calculates that current max infra + total line size x 0.1 must never be > 2. The proper equation would be current max infra + (total line size - units done) x 0.05 must never be > 2. 0.05 must of course be no hardcoded value but infra = { size = 0.05 } that can be loaded from \db\building_costs.txt.
Ah ok, its not a big thing anyway so I don't mind if its not 'fixed'.

There is also the semirandom occurance of being unble to build full 200% infra but only one unit less. This appear to be a floating point issue. Maybe for those purposes Infravalues should be convertet into int.
That is a bit more annoying, I've had it with land forts and AA guns as well, just seems to be a random glitch as sometimes I can build to the max, sometimes I can't.