Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - SDK/Python

Notices

Reply
 
Thread Tools
Old Nov 13, 2007, 06:17 PM   #1
bmarnz
Prince
 
bmarnz's Avatar
 
Join Date: Mar 2007
Location: Pennsylvania, USA
Posts: 440
Religion Custom Game Options

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_LIMIT ED_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.
bmarnz is offline   Reply With Quote
Old Nov 14, 2007, 04:52 AM   #2
MatzeHH
Warlord
 
Join Date: Jan 2006
Location: Germany
Posts: 210
You will have to add your option to the dll as well.
Take a look at enums.h and cyenumsinterface.cpp

Matze
MatzeHH is offline   Reply With Quote
Old Nov 14, 2007, 07:15 AM   #3
bmarnz
Prince
 
bmarnz's Avatar
 
Join Date: Mar 2007
Location: Pennsylvania, USA
Posts: 440
Aww...Nuts!!!

Thanx.
bmarnz is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - SDK/Python > Custom Game Options

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom game options explained Julian Delphiki Civ4 - Strategy & Tips 21 Oct 20, 2012 07:08 PM
Enabling Custom Game Options redazncommieDXP Civ4 - General Discussions 3 Apr 19, 2008 06:46 PM
Custom game start options AAjus[LTU] Civ4 - General Discussions 3 Aug 04, 2007 07:43 AM
Playing scenarios with the custom game options Orion43 Civ4 - Creation & Customization 1 Jan 28, 2006 05:08 PM


Advertisement

All times are GMT -6. The time now is 12:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR