Got this error when I tried Duel/Settler/Normal combination.
Edit: Both normal and debug DLLs are 21 MB...
Normal DLL would be smaller.
This meant you accidentally set Debug DLL for normal use
I guess Thunderbird is Jebediah Kerman from KSP
I added calculator in XML voodoo, where you can normalize Noble to 100 without changing final costs.
It uses global production modifier as thing to adjust.
From there you can do further adjustments like trimming handicaps to multiplies of 5 (aren't all modifiers for everything in multiplies of 5?).
Did trimming as example in XML and cost didn't deviate by more than 5%.
Basically this is changing frame of reference.
In short I changed Global Modifier to 0.6 (0.8*0.75, 0.75 being Noble handicap/100).
Then from Noble being 100 I stepped down by 5% to 85% for settler.
Up from Noble to Immortal I used steps up of 5%.
For Deity I stepped 10% and for Nightmare - stepped by 20%.
Settler - 85, Noble - 100, Immortal - 120, Deity - 130, Nightmare - 150.
For comparison current handicaps are 60, 75, 95, 100 and 110 for mentioned difficulty levels.
Now in this SVN difference between Settler and Deity is 1.83x.
After trimming it got slightly lowered to 1.76x.
For comparison: cost difference between Prehistoric and Future modifiers is 2.86x.
If math is done correctly inside of game then I should get 1.83*2.86*8.25 = 43.18x difference in costs between Settler/Normal/Prehistoric and Nightmare/Eternity/Future (will change modifier accordingly for prehistoric to simulate future era cost).
If I get 43x (rounding errors are a thing) then it should be fine.
I picked most expensive normal building from end of tech tree.
Settler/Normal/Prehistoric: 9964
Nightmare/Eternity/Future: 430 588
430 588/9964 = 43.21x in cost difference. YAY.
My XML calculator managed to recreate these numbers (base cost is 29 655)
Internal consistency of production math is holding up in these cases.
By the way it seems like production cost tooltip doesn't take era location of building under account.
If it did, I would see 28 445 instead of 9946 on Prehistoric start.
It seems like production costs were absolutely destroyed
