Okay so I want to have the Morganites in Planetfall start out with 500 gold.
in the Infos xml files I added:
<iStartingGold>500</iStartingGold>
right under the iHappiness entry for convenience.
I then added iStartingGold to the schema xml file and loaded the game, I had no problems but of course there was no 500 gold for Morgans.
THEN I looked at the SDK files CVINFOS. In there I added
in the CVTraitInfo section:
m_iStartingGold(0), under m_iHappiness
then later:
int CVTraitInfo::getStartingGold() const
{
return m_iStartingGold;
}
then this in the xmlloadingutility section:
pXML->GetChildXmlValByName(&m_iStartingGold, "iStartingGold"); (should that second Starting gold be iGold?)
Those are the changes I made in the CvInfo.cpp file. Then I made the following entries in the CVINFOs.h file:
DllExport int getStartingGold () const; // Exposed to Python this was entered under the Dllexport entry for getHappiness
....
then I entered:
int m_iStartingGold; in the protected member variables.
Now I am getting an XML loading error which says something about a call to load the TraitInfos.xml has failed?
Anyone here have any idea what I did wrong?
edit: I have found entries dealing with Traitinfo entries in some CY files too I am looking there.
in the Infos xml files I added:
<iStartingGold>500</iStartingGold>
right under the iHappiness entry for convenience.
I then added iStartingGold to the schema xml file and loaded the game, I had no problems but of course there was no 500 gold for Morgans.
THEN I looked at the SDK files CVINFOS. In there I added
in the CVTraitInfo section:
m_iStartingGold(0), under m_iHappiness
then later:
int CVTraitInfo::getStartingGold() const
{
return m_iStartingGold;
}
then this in the xmlloadingutility section:
pXML->GetChildXmlValByName(&m_iStartingGold, "iStartingGold"); (should that second Starting gold be iGold?)
Those are the changes I made in the CvInfo.cpp file. Then I made the following entries in the CVINFOs.h file:
DllExport int getStartingGold () const; // Exposed to Python this was entered under the Dllexport entry for getHappiness
....
then I entered:
int m_iStartingGold; in the protected member variables.
Now I am getting an XML loading error which says something about a call to load the TraitInfos.xml has failed?
Anyone here have any idea what I did wrong?
edit: I have found entries dealing with Traitinfo entries in some CY files too I am looking there.