Python wrapper question

DarkAnt

Chieftain
Joined
Jun 27, 2006
Messages
8
I added a function to CyUnit in the sdk. CyUnit is the python wrapper class for CvUnit. I don't know how/what python does with this file, all i know is that the simple function i created makes civ4 crash hard.

So basically, how does python use this wrapper and where?
 
Firstly, Python won't do anything unless it makes a call to the function you have made. Secondly, functions have to be defined in (in this case) CyUnitInterface1.cpp, otherwise Python will give you an 'unspecified C++ function' error message. Can you list all the files and functions that you have modified?
 
I'm still getting the same error, but with your input I think I'll be able to figure it out.
 
Just note that you can get the same error if there is something wrong with your actual code.
 
Back
Top Bottom