planetfall
Emperor
It must be Friday. I'm not getting the connectors between Cpp-python-XML.
For example:
void CvCity::doCulture(){...
gDLL->getPythonIFace()->callFunction(PYGameModule, "doCulture", argsList.makeFunctionArgs(), &lResult);
..}
void CvCity::doPlotCulture(bool bUpdate){...
gDLL->getPythonIFace()->callFunction(PYGameModule, "doPlotCulture", argsList.makeFunctionArgs(), &lResult);
...}
One of the culture xml files is CIV4CultureLevelInfo.xml where you can change the thresholds.
So where does python connect. And which python scripts?
CvDefines.h
#define PYGameModule "CvGameInterface"
Nevermind, figured it out. Posting with new heading for reference by others struggling with this.
<C4 dir>\Assets\Python\EntryPoints\CvGameInterface.py
For example:
void CvCity::doCulture(){...
gDLL->getPythonIFace()->callFunction(PYGameModule, "doCulture", argsList.makeFunctionArgs(), &lResult);
..}
void CvCity::doPlotCulture(bool bUpdate){...
gDLL->getPythonIFace()->callFunction(PYGameModule, "doPlotCulture", argsList.makeFunctionArgs(), &lResult);
...}
One of the culture xml files is CIV4CultureLevelInfo.xml where you can change the thresholds.
So where does python connect. And which python scripts?
CvDefines.h
#define PYGameModule "CvGameInterface"
Nevermind, figured it out. Posting with new heading for reference by others struggling with this.
<C4 dir>\Assets\Python\EntryPoints\CvGameInterface.py