Custom Game Options

bmarnz

Prince
Joined
Mar 19, 2007
Messages
441
Location
Pennsylvania, USA
Is it possible to add cusom game options to the custom game screen with just python and xml. I can get the option in the screen, but when I run a check on the option I keep getting this errors.

Code:
if bHolyCity == False or not CyGame().isOption(GameOptionTypes.GAMEOPTION_LIMITED_RELIGIONS):

Error:
AttributeError: type object 'CvPythonExtensions.GameOptionTypes' has no attribute 'GAMEOPTION_LIMITED_RELIGIONS'

Is this something in the dll or I am I missing something.

My function ran fine before I added the option check. There is a standard option check further down the function that also worked fine.

I'd appreciate any help.:)
 
You will have to add your option to the dll as well.
Take a look at enums.h and cyenumsinterface.cpp

Matze
 
Back
Top Bottom