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

Guide to using the Communitas Expansion Pack (CEP) with the City-State Diplomacy mod

Discussion in 'Communitas Expansion Pack' started by skodkim, Jan 28, 2014.

  1. skodkim

    skodkim Deity

    Joined:
    Jan 16, 2004
    Messages:
    2,221
    Location:
    Denmark
    This is a guide to using the Communitas Expansion Pack (CEP) with the City-State Diplomacy mod (CSD).I'll try to keep it updated for future updates, but no guarantees.

    The guide is based manual mod installation, not Steam, as I like to be in control of installed mods, i.e. update them manually.

    The guide is based on CEP v 3.14 and CSD v 15.6. It works both with CSD with and without dll. Furthermore the combined dll by Whoward has been tested and it works (link). This does however need a little bit of work, which I won't go into here.

    From version 3.14 CEP includes a reference to CSD making CEP always run after CSD (prevents missing CSD units bug). Furthermore CEP reads the gold gifting option from CSD's option file (to prevent gold gifting being disabled even though it was enabled in CSD's options file).
    1. First step is to install the two mods in your mods folder.
    2. Find Cat\Cat_Options.sql and make sure the following is set:
      Spoiler :

      /*
      CityState Diplomacy Mod Compatibility
      1 = using CSD and Cep
      0 = not using CSD and Cep
      */
      INSERT INTO Cep (Type, Value) VALUES ('USING_CSD', 1);
    3. Find CSD\Options.sql and make sure the following is set:
      Spoiler :

      /*
      Gold Gifting and Gold-Related Quests with City-States On/Off
      1 = Gold Gifts Enabled
      2 = Gold Gifts Disabled (Default)
      */

      INSERT INTO CSD (Type, Value)
      VALUES ('GIFT_OPTION', 2);
    Do not enable USING_CEP' in CSD's options file as this will cause fatal issues with the game. This setting will (according to Gazebo, author of CSD) be removed from future versions of CSD.

    Furthermore I recommend against enabling the options "CSD_POLICIES", "CSD_BONUSES" and "ANCIENT_WONDERS" in CSD's options file as this will most likely cause unintended behaviour from e.g. the affected policies. However it shouldn't cause fatal issues.

    Last advice: If it doesn't work clear your cache and try again.

    Examples of Option files have been attached. This may not be exactly how you want your's - especially for CAT.

    \Skodkim
     
  2. Tomice

    Tomice Passionate Smart-Ass

    Joined:
    Oct 5, 2009
    Messages:
    2,320
    Location:
    Austria, EU, no kangaroos ;)
    Thx a lot for your effort! :thumbsup: I've seen you working on this in Github, and it comes just at the right time. I just thought the whole diplomacy could use some work.
     
  3. jacktannery

    jacktannery Prince

    Joined:
    Apr 8, 2006
    Messages:
    446
    Location:
    Dublin
    Thank you Skodim - can't wait to use my two favourite mods together at last!
     
  4. skodkim

    skodkim Deity

    Joined:
    Jan 16, 2004
    Messages:
    2,221
    Location:
    Denmark
    :)

    Examples of option files have been attached to first post.

    \Skodkim
     
  5. EricB

    EricB Prince

    Joined:
    Feb 4, 2013
    Messages:
    404
    Location:
    Michigan
    How does this work with the Patronage policy tree? Does the city state mod change this tree. As it is, some policies in the tree would be useless without gold gifts. Definitely want to try it out!
     
  6. skodkim

    skodkim Deity

    Joined:
    Jan 16, 2004
    Messages:
    2,221
    Location:
    Denmark
    I honestly do not know. All I can say is that using CSD policies will propably mess up policies. Perhaps we can find a solution but it's going to take some time and that's not really my focus right now - sorry.

    \Skodkim
     
  7. stackpointer

    stackpointer King

    Joined:
    Mar 3, 2013
    Messages:
    809
    Deleting CEP_Patronage.xml might work.
     
  8. skodkim

    skodkim Deity

    Joined:
    Jan 16, 2004
    Messages:
    2,221
    Location:
    Denmark
    That might Work. If patronage policies are changed by sql you can also put in a check in Using_CSD is enabled.

    Looks like CSD modifies the following policies:
    POLICY_CONSULATES
    POLICY_PHILANTHROPY
    POLICY_CULTURAL_DIPLOMACY
    POLICY_SCHOLASTICISM
    POLICY_MERCHANT_CONFEDERACY
    POLICY_TREATY_ORGANIZATION
    POLICY_GUNBOAT_DIPLOMACY

    \Skodkim
     
  9. stackpointer

    stackpointer King

    Joined:
    Mar 3, 2013
    Messages:
    809
    Nope, policy trees are all xml.
     
  10. skodkim

    skodkim Deity

    Joined:
    Jan 16, 2004
    Messages:
    2,221
    Location:
    Denmark
    What about CEP_End.sql? Or do you mean that Patronage policies are only sql?

    \Skodkim
     
  11. stackpointer

    stackpointer King

    Joined:
    Mar 3, 2013
    Messages:
    809
    CEP_End.sql has only two specific policies handled in it: POLICY_HOMESTEAD_ACT and POLICY_CULTURAL_CENTERS. Everything else in it is general policy work. The rest of the data edits done for the specific policy trees are done in xml, as seen in the \CEG\Policies\Trees\ directory.
     
  12. Tomice

    Tomice Passionate Smart-Ass

    Joined:
    Oct 5, 2009
    Messages:
    2,320
    Location:
    Austria, EU, no kangaroos ;)
    What do you think about the option in CSD to allow both gold payments AND diplomatic units? This way the policies that boost gold payments wouldn't go to waste. Or is having both active too much?
     
  13. skodkim

    skodkim Deity

    Joined:
    Jan 16, 2004
    Messages:
    2,221
    Location:
    Denmark
    That's really a question for Gazebo but I don't think its a good idea to use both.

    The policy in question is one we're probably going to change if USING_CSD is enabled.

    \Skodkim
     
  14. Tomice

    Tomice Passionate Smart-Ass

    Joined:
    Oct 5, 2009
    Messages:
    2,320
    Location:
    Austria, EU, no kangaroos ;)
    Or we change it for good, csd or not... Is it important?
     
  15. skodkim

    skodkim Deity

    Joined:
    Jan 16, 2004
    Messages:
    2,221
    Location:
    Denmark
    That's not really a discussion for this thread :)

    \Skodkim
     
  16. ShmooDude

    ShmooDude Chieftain

    Joined:
    Jul 19, 2012
    Messages:
    57
  17. Tomice

    Tomice Passionate Smart-Ass

    Joined:
    Oct 5, 2009
    Messages:
    2,320
    Location:
    Austria, EU, no kangaroos ;)
    Well, if a minimum change to the main mod saves us lots of complicated coding and the bugs that come with it...
     
  18. ExpiredReign

    ExpiredReign Deity

    Joined:
    Jan 3, 2013
    Messages:
    2,450
    Gender:
    Male
    Location:
    Tasmania
    I may be wrong here but I am pretty sure the DLL version of CSD is that DLL.

    Whoward, I think, has combined a number of DLL functions of his own and others devising and that is what is being used in Gazebo's CSD.

    Like I said, I may be wrong.

    If I am correct, I would suggest we too start looking at adding some of our needed DLL fixes, but that is for another thread.
     
  19. ShmooDude

    ShmooDude Chieftain

    Joined:
    Jul 19, 2012
    Messages:
    57
    My understanding is that you can only have 1 DLL mod at a time. What Whoward did was combined the two mods DLL mods (adding the functionality of both to the singular DLL) so you can get the benefits of both at the same time.
     
  20. stackpointer

    stackpointer King

    Joined:
    Mar 3, 2013
    Messages:
    809
    I'm not sure where you're trying to suggest. Did you want CEP to turn gold gifting on despite the CSD settings? Right now CEP is set to defer to CSD's gold gifting settings because it seems like gold gifting is what's the most unbalanced about the diplomatic victory (and one of the strengths of using CSD in the first place).
     

Share This Page