Afforess
The White Wizard
I need to call CyEngine.AddSign(...) from the SDK, except it isn't exposed to us. I've tried simply exposing the function through BUG in BugCore.xml by:
Except that calling via the SDK by this has no effect:
The code simply never executes. The lines before and after do.
I then moved to creating my own Entrypoint, Signs.py that had only this code:
And called that from the SDK instead, but never worked either.
Does anyone know how to call this function from the SDK and what I am doing wrong?
PS. Firaxis, if you are listening, please when you expose your EXE functions, expose anything in python to the SDK, and vice-versa. Thanks!
Code:
<export module="EventSigns" function="addSign" to="CvAppInterface"/>
Except that calling via the SDK by this has no effect:
Code:
CyArgsList argsList;
argsList.add(this); //CvPlot*
argsList.add(iJ); //PlayerType
argsList.add(getLandmarkMessage()); //CvWString
gDLL->getPythonIFace()->callFunction(PYCivModule, "addSign", argsList.makeFunctionArgs());
The code simply never executes. The lines before and after do.
I then moved to creating my own Entrypoint, Signs.py that had only this code:
Code:
from CvPythonExtensions import *
import CvUtil
gc = CyGlobalContext()
localText = CyTranslator()
class Signs:
def AddSign(self, argsList):
CyEngine().addSign(argsList[0], argsList[1], argsList[2])
And called that from the SDK instead, but never worked either.
Does anyone know how to call this function from the SDK and what I am doing wrong?
PS. Firaxis, if you are listening, please when you expose your EXE functions, expose anything in python to the SDK, and vice-versa. Thanks!