Found a major bug in the multiple production addon while using Alt-Build.
In this save game, Garduk, the Illian Capital has 1
+ 250
while trying to build Work Boats (20
).
Click next turn and I get a CTD.
If I change to Hawks (13
) I also get a CTD. But switching to Hunters (40
) allows the turn to continue. I then get 15! Hunters instead of about 6 that I should get.
So I tested it. I queued up 20 Work Boats -> No CTD all 20 built.
40 Work Boats-> No CTD all 40! built.
There is obviously some major bug with overflow handling with the multiple production addon.
Seems to me that while Alt-Building, the overflow keeps adding on and the game gets stuck in an infinite loop trying to give me a million units. Some problem with small cost and large overflow, resulting in infinite builds.
Yet with something like Arquebuses it gives the correct 1-3 units that you would expect while on Alt-Build.
I am running Version 7.20 with Hot patch. Also I am running the Conquest civic which may be upsetting the overflow calculation in the multiple production code.
Edit: I have a lot of bonus
buildings including:
Command Post
Pillar of Chains
Heroic Epic
Shipyard
Forge
Heron Throne
It seems to me that the overflow gets modified each time by all those buildings and that it is possible that the overflow amount times by the bonus will always be greater that say (20
) for Work Boats. So it gets into the infinite loop.
I would change the mutiple production code to simply get the current
that the town produces, divide by the current cost of the Alt-Build unit and produce that many copies. If the code already does this then good luck trying to debug
Regards,
Maglock