1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Creating New <Hurrytypes>

Discussion in 'Civ4 - Creation & Customization' started by CaptainMidnight, Jul 5, 2011.

  1. CaptainMidnight

    CaptainMidnight Warlord

    Joined:
    Apr 16, 2006
    Messages:
    141
    How do I make a new HurryType?

    I'm making a new civic that requires a hurry type different from HURRY_POPULATION or HURRY_GOLD.

    Initially I thought this would be easy XML changes. I created a new HurryType HURRY_POPULATION2 by copying HURRY_POPULATION XML, changed the values and changed the necessary civic in Civivinfos.

    Civ4 loads without errors but when I switch to the new civic in game it won't allow me to use it.

    I know the hurrytype is linked to the button on the interface, I figure as long as I don't let the new civic clash with slavery the button will work the same. However, it doesn't. I've been looking but can't seem to find any threads on the subject.
     
  2. Voyhkah

    Voyhkah Political Activist

    Joined:
    Apr 25, 2009
    Messages:
    1,444
    Location:
    Earth
    It's possible that the number of HurryTypes are encoded in the SDK.
     
  3. Asaf

    Asaf Sleep Deprived

    Joined:
    Mar 22, 2010
    Messages:
    1,326
    I didn't see any limit in the DLL.

    You'd need to change the Python interface code to have a different button for this hurry type (look for WIDGET_HURRY in CvMainInterface.py).
    You might need to do more to make it work, but you probably need to add a button there anyway.
     
  4. Voyhkah

    Voyhkah Political Activist

    Joined:
    Apr 25, 2009
    Messages:
    1,444
    Location:
    Earth
    I did say possible. Apparently, I was wrong.
     

Share This Page