BUG 4.4 Sevopedia Effects payne

OrionVeteran

Deity
Joined
Dec 25, 2003
Messages
2,443
Location
Newport News VA
I have been working on production trait changes for my latest mod. Specifically, I have added a production trait change to a World Wonder, which doubles the production for a specified trait (Say Philosophical for this example). The problem is the World Wonder effect change fails to appear in the Effects payne on the Sevopedia page for the philosophical Trait, in BUG 4.4. What BUG 4.4 python file must be changed and what lines must be added to make the World Wonder effect actually appear in the Effects payne?
 
This is not a BUG problem, it is a BtS problem.

FFP has a similar problem. Each world wonder gets a small production boost for a leader who has a specific trait (except the United Planets wonder and the shrines). It doesn't show up anywhere in the trait properties. It does show up in the building properties in the civilopedia/sevopedia (but not in the hover pop-up help for the wonders), just not anywhere in the trait information. FFP has added a little text to the TXT_KEY_TRAIT_*_PEDIA entries saying which wonder it speeds up and by how much (always just 10% in our case) as a work-around.

The reason it is being left off is that it is specifically programmed to do so in CvGameTextMgr::parseTraits. It only adds the text for the ProductionTraits data if the building is not a world wonder. Line 3524 of that file:
Code:
			if (eLoopBuilding != NO_BUILDING && !isWorldWonderClass((BuildingClassTypes)iI))
This seems like a silly thing to do. It assumes no world wonder will be sped up by a trait via the building's ProductionTraits, only by the iMaxGlobalBuildingProductionModifier trait setting which affects all world wonders (and which gets added to the trait properties text earlier in that function if it is not 0).

So the cure is to remove that "&& !isWorldWonderClass((BuildingClassTypes)iI)" part of the condition in the if statement. And then you need to compile a new DLL, of course. If you are on a Mac, this is not possible.
 
Back
Top Bottom