What I'm looking to do is to divide up Future Tech into five seperate techs, which would each add one of either:
Happiness
Health
Food
Hammers
Commerce
So, I'm going to have to add 3 new tags to the XML, which means adding them into the SDK, and teaching the AI they exist so it will adequately try to go for them. And making sure they're counted properly in the City screen, so everything totals correctly.
So, a simple text search through the SDK files for "iHealth", then cross-checking for "iHappiness" brought up:
CvCity.cpp
CvCityAI.cpp
CvGameTextMgr.cpp
CvInfos.cpp
CvInfos.h
CvPlayerAI.cpp
which looks right to me (noob that I am
). But, starting with CvCity.cpp, I think I might be ok for just adding the XML tags, but having my Future Food Tech say it adds +1
in the Civilopedia won't do squat if I don't tell the game to count it in when checking how much food a city is garnering each turn. It'll look pretty, but do nothing. Same goes for Hammers & Commerce.
So, I'm asking for help. Is this going to be simple? Better yet, has it already been done (I couldn't find anything...)? Could someone do it for me?

Happiness
Health
Food
Hammers
Commerce
So, I'm going to have to add 3 new tags to the XML, which means adding them into the SDK, and teaching the AI they exist so it will adequately try to go for them. And making sure they're counted properly in the City screen, so everything totals correctly.
So, a simple text search through the SDK files for "iHealth", then cross-checking for "iHappiness" brought up:
CvCity.cpp
CvCityAI.cpp
CvGameTextMgr.cpp
CvInfos.cpp
CvInfos.h
CvPlayerAI.cpp
which looks right to me (noob that I am
). But, starting with CvCity.cpp, I think I might be ok for just adding the XML tags, but having my Future Food Tech say it adds +1
in the Civilopedia won't do squat if I don't tell the game to count it in when checking how much food a city is garnering each turn. It'll look pretty, but do nothing. Same goes for Hammers & Commerce.So, I'm asking for help. Is this going to be simple? Better yet, has it already been done (I couldn't find anything...)? Could someone do it for me?

You'll learn quite a bit while getting the CvInfos straightened out which will help considerably in explaining the next bits.
, &
be listed as FOOD_CHAR, HAMMER_CHAR, & COMMERCE_CHAR in the SDK?
Ya, the problem is, I run out of things to buy. I get all my cities finished, and have nothing left but military units to buy... So, switching those to commerce would allow me to better control how much gold I wind up with...
), the pedia grabs the hover text using Python and splits it apart line-by-line to add it to the bulleted list of effects. I'll have some time later today to check out the code you posted, but it would really help if you could be very specific about what you do and do not see.

Yeesh, how did I ever miss that...?

