Defensive Pact Code

Discussion in 'Civ4 - Creation & Customization' started by Gooblah, May 3, 2008.

  1. Gooblah

    Gooblah Heh...

    Joined:
    Jun 5, 2007
    Messages:
    4,282
    Is the code for Defensive Pacts and Permanent Alliances in the Python files or XML? I've scoured the XML and don't know where to begin in the Python.

    Thanks for any help!
     
  2. Refar

    Refar Deity

    Joined:
    Apr 10, 2005
    Messages:
    4,608
    The code for what exactly ?
     
  3. Gooblah

    Gooblah Heh...

    Joined:
    Jun 5, 2007
    Messages:
    4,282
    Sprry, I'll clarify:

    How does the game govern how a Defensive Pact work? Where does it define that IF Civ A is attacked by Civ C, AND Civ A and Civ B have a D. Pact, THEN Civ B will declare war on Civ C? (which file)
     
  4. Refar

    Refar Deity

    Joined:
    Apr 10, 2005
    Messages:
    4,608
    I am quite sure this is in is in the SDK
     
  5. Gaius Octavius

    Gaius Octavius Deity

    Joined:
    Jul 28, 2006
    Messages:
    4,016
    So am I. Anything that fundamental to the game is likely coded in C++.
     
  6. Gooblah

    Gooblah Heh...

    Joined:
    Jun 5, 2007
    Messages:
    4,282
    C++, huh? Hmmm. My mother majored in computer sciences and physics in India- apparently was a C++ wiz.

    Also, what is the SDK? is it the .dll file?
     
  7. Refar

    Refar Deity

    Joined:
    Apr 10, 2005
    Messages:
    4,608
    It's the dll. The SDK is the sourcecode - firaxis released it, so people can mod. It's in C++. You can find the sourcefiles in the CvGameCoreDLL folder. But if you change something there, you will need to recompile it, for you chnges to actually be in the game. If you dont know what't this, ask your mom ;)
     
  8. PeteT

    PeteT Warlord

    Joined:
    Jan 2, 2002
    Messages:
    273
    Location:
    Winterpeg
    I don't think I would have ever imagined that I would hear "ask your mom" in that context :) .
     
  9. Gooblah

    Gooblah Heh...

    Joined:
    Jun 5, 2007
    Messages:
    4,282
    sweet; thanks guys!
     

Share This Page