• We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days. For more updates please see here.

Why don't yields add up?

theodcyning

Chieftain
Joined
Mar 17, 2017
Messages
9
20180413000328_1.jpg
This is turn 3, nothing has changed since settling. And I have not worked, nor even own any times that yield anything other than food and production. Why are these numbers all over the place?

I understand that each population gives 0.3 culture. So why does the city total say 1.4???
I understand that each science gives 0.5 science. So why isn't it accounted for under the Population row of the city ledger? and why is it 0.6???
Gold is supposed to be 5 for the Palace, but it shows up at 5.3, and then drops back down again to 5.2 at the very bottom. Why?

And finally how the hell are the net per turns at the bottom rounded? It looks like science is rounded UP but culture is rounded DOWN?

Could someone help me make sense of these values? I'm sure some of you guys probably figured this stuff out day one. Is it all just awkward behind the scenes fractional rounding errors? Is the reports buggy? Am I missing something? Also, does anybody know where in the source code files any of this may be calculated?
 
View attachment 493295 This is turn 3, nothing has changed since settling. And I have not worked, nor even own any times that yield anything other than food and production. Why are these numbers all over the place?

I understand that each population gives 0.3 culture. So why does the city total say 1.4???
I understand that each science gives 0.5 science. So why isn't it accounted for under the Population row of the city ledger? and why is it 0.6???
Gold is supposed to be 5 for the Palace, but it shows up at 5.3, and then drops back down again to 5.2 at the very bottom. Why?

And finally how the hell are the net per turns at the bottom rounded? It looks like science is rounded UP but culture is rounded DOWN?

Could someone help me make sense of these values? I'm sure some of you guys probably figured this stuff out day one. Is it all just awkward behind the scenes fractional rounding errors? Is the reports buggy? Am I missing something? Also, does anybody know where in the source code files any of this may be calculated?

Uh, that's because of the bonus yields from having +1 amenity.
The net per turns are indeed rounded to entire numbers. Science is rounded up because if a number ends on 5-9 it rounds up, culture is rounded down because if a number ends on 0-4 it rounds down, elementary school math rules. Also, you don't actually earn the rounded values, you earn the unrounded ones (at the very least for gold and faith, so I assume for the others as well).
 
ReportScreen.lua has a few errors inside, especially related to Yields tab. e.g. yields from amenities are calculated incorrectly, yields from pop is calculated only for Culture, Science is simply omitted, etc.
Use Better Report Screen, I’ve fixed them there.
 
I understand that each population gives 0.3 culture. So why does the city total say 1.4???
Your city is happy and thus gains 5% to all non-food yields resulting in 1.3 + (1.3 * 0.05) = 1.365 which is rounded up to 1.4. This should be stated in the row for amenities (like for production) but somehow is not. A possible explanation is that rounding is handled inconsistently and 0.065 is not rounded up to 0.1 for the amenities row but rounded down to 0 and 0 are not shown / left empty.

I understand that each science gives 0.5 science. So why isn't it accounted for under the Population row of the city ledger? and why is it 0.6???
I looked in the lua file FearSunn mentioned and while there is a paragraph to fill the population row for culture there doesn't seem to be one for science...
So if you account for 0.5 for the population you are left with an unexplained 0.1 which is again a result of the bonus for happiness: 2 + 0.5 + ((2 + 0.5) * 0.05) = 2.5 + 0.125 = 2.625, rounded down to 2.6. As for culture: Maybe 0.125 is rounded down and 0 is omitted in the amenity field for science.

Gold is supposed to be 5 for the Palace, but it shows up at 5.3, and then drops back down again to 5.2 at the very bottom. Why?
Happiness again: 5 + (5 * 0.05) = 5.25, rounded up to 5.3.

And finally how the hell are the net per turns at the bottom rounded? It looks like science is rounded UP but culture is rounded DOWN?
Seems like rounding is handled inconsistently. Gold keeps the decimal and is rounded down instead of up (which is unusual for 5.25). Culture and science on the other hand are rounded to the next integer.

Could someone help me make sense of these values? I'm sure some of you guys probably figured this stuff out day one. Is it all just awkward behind the scenes fractional rounding errors? Is the reports buggy? Am I missing something? Also, does anybody know where in the source code files any of this may be calculated?

IMHO this is a mixed bag of bugs, inconsistencies and oversights.
Bug: Empty field for science in population row.
Inconsistency: If every value was displayed with one decimal place and the rounding was done the same way everywhere it would help a lot.
Oversight: If a value is not zero but 0.xx it should be indicated and not left empty.
 
Uh, that's because of the bonus yields from having +1 amenity.

To expand upon this, +1 or +2 surplus amenites makes your city Happy, giving a 5% boost to non-food yields. +3 or more would make it ecstatic giving a 10% boost.

This should be stated in the row for amenities (like for production) but somehow is not. A possible explanation is that rounding is handled inconsistently and 0.065 is not rounded up to 0.1 for the amenities row but rounded down to 0 and 0 are not shown / left empty.

[...]

IMHO this is a mixed bag of bugs, inconsistencies and oversights.
Bug: Empty field for science in population row.
Inconsistency: If every value was displayed with one decimal place and the rounding was done the same way everywhere it would help a lot.
Oversight: If a value is not zero but 0.xx it should be indicated and not left empty.

I think this is the likely explanation. Pretty shoddy, but will presumably sort itself out when the city is bigger and has more of everything to show, and not be rounded down to zero as far as the reports screen is concerned.
.
 
ReportScreen.lua has a few errors inside, especially related to Yields tab. e.g. yields from amenities are calculated incorrectly, yields from pop is calculated only for Culture, Science is simply omitted, etc.
Use Better Report Screen, I’ve fixed them there.

I looked again and if I understand this correctly the code calculates amenity bonuses only for the WorkedTileYields and not for all yields including those from palace and population. And the bonus for food is ignored altogether.
So more bugs.
 
I looked again and if I understand this correctly the code calculates amenity bonuses only for the WorkedTileYields and not for all yields including those from palace and population. And the bonus for food is ignored altogether.
So more bugs.

Given that it's not a yield, it's a multiplier, I can't think why they chose to add "Amenities" as a row in that table instead of just a multiplier to the total yields in the bottom. The UI designer clearly isn't a spreadsheet fan :P.
 
I think this is the likely explanation. Pretty shoddy, but will presumably sort itself out when the city is bigger and has more of everything to show, and not be rounded down to zero as far as the reports screen is concerned.
.
Actually, when the game progresses, it’s getting worse. The yields from modifiers (of any type) are not displayed at all, and you start to get more and more of them.

Edit. Yields from Specialists are also incorrectly calculated and adjacency bonus for districts is displayed twice.
 
Actually, when the game progresses, it’s getting worse. The yields from modifiers (of any type) are not displayed at all, and you start to get more and more of them.

Edit. Yields from Specialists are also incorrectly calculated and adjacency bonus for districts is displayed twice.

Well, that will teach me for having any degree of faith in the UI... :crazyeye:
 
The reports in Civ6 are everything but clear. Also is it possible to sort your cities by production (cogs) without using addons?
 
The reports in Civ6 are everything but clear. Also is it possible to sort your cities by production (cogs) without using addons?

No. There's no sorting on this report.

I open this report after every patch, check to see if the math is a good approximation of reality yet or if it can be used to sort cities by culture, etc., then shut it down.

It could really use a new pass and is likely literally no more than 2 hours of developer time (a modder could confirm) to change it to provide accurate information in a sortable framework. But, you know, it's the output of the coding team not the art team, so presumably already meets the coding team's internal quality expectations.

Hopefully it's been addressed in the upcoming patch. It looks like a good patch that's made some improvements in a lot of (non-England) areas.
 
Last edited:
Still bugged :( Even with mods the figures are not showing correctly. The population science contribution is not displaying for instance. Many other items do not show either, 2K failled here :( I cannot play the game just because of that ! Yes call me autistic ... But this is the minimum in such game to have accurate figures ... It is the basic of the game !!! How to trust the AI or whather based on these figures ?
 
Last edited:
Back
Top Bottom