1.0.12.9 - Building maintenance cost on Reports panel.

cholsy

Warlord
Joined
Dec 20, 2010
Messages
180
This does not affect game play.
Perhaps minor bug but I believe many players are aware of this.
On Reports panel, every building cost slot is "-1" regardless of how many buildings are in each District.

Spoiler screenshot :

nbm1.jpg



Spoiler screenshot :

nbm2.jpg

 

Attachments

  • no building maintenance.Civ6Save
    2.2 MB · Views: 46
The issue is caused by the fact that the function that is supposed to return a building maintenance, GetBuildingMaintenance(), always returns 0.
Firaxis changed the function GetCityData() in CitySupport.lua. In the base game it used direct access to game data to get maintenance:
Maintenance = GameInfo.Buildings[building.BuildingType].Maintenance --Expense in gold
but in Gathering Storm they used:
Maintenance = pCityBuildings:GetBuildingMaintenance(type),
And this function is either bugged, or incorrectly used. It always returns 0.

I made a fix in my Better Report Screen mod to account for the above and the report is ok now.
It's not yet released.

Funny fact is that this change was done with the initial release of GS, so 2+ years ago. And noone ever noticed that (which shows how "useful" are reports in the base game).
 

Attachments

  • buildings_no_maintenance.jpg
    buildings_no_maintenance.jpg
    375.7 KB · Views: 46
Last edited by a moderator:
Top Bottom