| General | Hosted Sites | Civ5 | CivRev | Civ4Col | Civ4 | Civ3 | Civ2 | Civ1 | Misc | Marketplace |
![]() |
|
|
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. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Prince
Join Date: Mar 2007
Location: Pennsylvania, USA
Posts: 440
|
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.
__________________
|
|
|
|
|
|
#2 |
|
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 |
|
|
|
|
|
#3 |
|
Prince
Join Date: Mar 2007
Location: Pennsylvania, USA
Posts: 440
|
Aww...Nuts!!!
Thanx.
__________________
|
|
|
|
![]() |
| Bookmarks |
|
| Thread Tools | |
|
|
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 |