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

Civilization V DLL Source Code coming with Fall Patch

Discussion in 'Civ5 - Creation & Customization' started by 2K Greg, Sep 27, 2012.

  1. 2K Greg

    2K Greg <span style="font-weight:bold; text-decoration: un

    Joined:
    May 24, 2010
    Messages:
    370
    Hey guys,

    I announced this over in the General Discussion forum, but I figured I would toss a thread up here for modders and mod users specifically:

    The "Fall Patch" of Civilization V will also mark the release of the DLL source code, allowing modders to compile their own DLLs for use in their mods.
     
  2. 3335d

    3335d CCtP Player

    Joined:
    Jun 15, 2012
    Messages:
    642
    This is excellent news for modders! Can't wait until the Fall Patch.
     
  3. S3rgeus

    S3rgeus Chieftain

    Joined:
    Apr 10, 2011
    Messages:
    1,269
    Location:
    London, United Kingdom
    YEEEEES!!! Ahem, I mean, thank you very much!
     
  4. FiresForever

    FiresForever Chieftain

    Joined:
    Sep 30, 2010
    Messages:
    584
    Great news!!!
     
  5. Gedemon

    Gedemon Modder Moderator

    Joined:
    Oct 4, 2004
    Messages:
    7,807
    Location:
    France
    Ok, time to read some C++ tutorial :D
     
  6. Craig_Sutter

    Craig_Sutter Chieftain

    Joined:
    Aug 13, 2002
    Messages:
    2,677
    Gender:
    Male
    Location:
    Seoul, South Korea
    I hope the results will be mod friendly (ie. I won't have to replace core files to play mods, but may use modules of some sort.)

    I'm supremely ignorant about this type of thing, btw. :)
     
  7. trystero49

    trystero49 Chieftain

    Joined:
    Apr 30, 2012
    Messages:
    515
    This is awesome. Thanks to 2K/Firaxis.
     
  8. Androrc the Orc

    Androrc the Orc Chieftain

    Joined:
    Apr 19, 2004
    Messages:
    1,620
    Location:
    Vienna, Austria
    Awesome :)

    They made it possible for mods to have their own DLLs in the last patch. What we lacked so far was access to the DLL source code in order to actually modify it.
     
  9. Pazyryk

    Pazyryk Chieftain

    Joined:
    Jun 13, 2008
    Messages:
    3,584
    Thank you!
     
  10. Dunkah

    Dunkah Chieftain

    Joined:
    Feb 7, 2007
    Messages:
    1,188
    Location:
    Just north of Boston
    Trying to figure out exactly what this means for modders. I do a bit of programming but have never done any modding. But follow the modding community regularly.

    Does this allow the actual changing of the underlying rules?
    Will this allow the upgrading of the AI's behavior?
     
  11. PawelS

    PawelS Ancient Druid

    Joined:
    Dec 11, 2003
    Messages:
    2,803
    Location:
    Poland
    Yes, it will allow any changes to the gameplay rules. It's not the source code of the entire game, but it should contain all the code that affects gameplay.
     
  12. Midnight-Blue766

    Midnight-Blue766 The filidh that cam frae Skye

    Joined:
    Sep 24, 2007
    Messages:
    3,443
    Location:
    Bonnie Scoltland
    Are we finally going to be able to add diplomacy music with this?
     
  13. deanej

    deanej Chieftain

    Joined:
    Apr 8, 2006
    Messages:
    4,859
    Location:
    New York State
    Maybe. Depends on how much of the audio system is included in the DLL.
     
  14. DonQuiche

    DonQuiche Chieftain

    Joined:
    May 23, 2011
    Messages:
    1,122
    @2k Greg
    Thank you for coming by and spreading the news. :)
    No need to say it is a very exciting announcement.

    In essence, yes, it will allow mods to perform deeper modifications, such as the one related to gameplay and AI. Actually it gives mods the ability to rewrite a part of the civ5 engine (half of it roughly, and the most interesting half from a modder's pov, the other one being the rendering engine and such).

    Now there is a big catch: this is not modular, so if two mods each bundle their modified version of the dll, you can only use one of them (although you can have both installed). Also, those mods will likely not be available from the Steam workshop since they escape the little sandbox we used to be confined in.

    For those reasons and for the example, while IGE could benefit of it to fix a couple of bugs and allow more features, I may not use this freedom so that you can still use it with other mods that really need that power. Or maybe I will submit a patch that dll creators may or may not apply to their own versions and let IGE detect whether the dll includes my patch or not, so that IGE can take advantage of my modifications when available.
     
  15. DonQuiche

    DonQuiche Chieftain

    Joined:
    May 23, 2011
    Messages:
    1,122
    The audio system is typically not something implemented in the game core dll. However it is very likely that the audio system exposes an API to the game core dll. So, yes, I guess we will now be able to play whatever sound we want and whenever we want.
     
  16. DonQuiche

    DonQuiche Chieftain

    Joined:
    May 23, 2011
    Messages:
    1,122
  17. Putmalk

    Putmalk Chieftain

    Joined:
    Sep 26, 2010
    Messages:
    2,623
    Location:
    New York
    With the release of the DLL, what are some things we'll be able to do that we won't be able to do before?

    Besides modify the AI behavior, of course.
     
  18. DonQuiche

    DonQuiche Chieftain

    Joined:
    May 23, 2011
    Messages:
    1,122
    We do not know exactly what the dll contains and even if we did no one could provide a good list: what can you do with screws, wires and steel plates?
    And we are not even sure that the AI is defined in the dll.
     
  19. Putmalk

    Putmalk Chieftain

    Joined:
    Sep 26, 2010
    Messages:
    2,623
    Location:
    New York
    Mhmm. Okay.

    What did the Civ 4 DLL source contain?
     
  20. Androrc the Orc

    Androrc the Orc Chieftain

    Joined:
    Apr 19, 2004
    Messages:
    1,620
    Location:
    Vienna, Austria
    If the Civ4 DLL is to go by, then there is little that can't be done, as long as you want the game to remain a TBS game. The issue, of course, is that more complicated DLL modifications take a large degree of work.
     

Share This Page