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

addLeaderheadGFC->accessing art files

Discussion in 'Civ4 - Creation & Customization' started by vicawoo, Feb 6, 2010.

  1. vicawoo

    vicawoo Chieftain

    Joined:
    Feb 12, 2007
    Messages:
    3,226
    I can't find the code for the addLeaderheadGFC function, which is called to create leaderheads in the Dawn of Man and civilopedia.

    I've gone through all of the DawnofMan python code, checked the includes, and the function I'm looking for is definitely addLeaderheadGFC. However, I've done a text search of all the Assets/python and BTS/assets/python files, along with bts/cvgamecoredll, and it is not present. I've checked http://civilization4.net/files/moddi...nAPI/list.html, and it's in the http://civilization4.net/files/moddi...nterfaceScreen class, but the class says it's not in SDK.

    So should I still bother trying to find it, or does someone know how to access the artwork directly? The art files are not in a recognizable format.
     
  2. The_J

    The_J Say No 2 Net Validations Retired Moderator Supporter

    Joined:
    Oct 22, 2008
    Messages:
    32,442
    Location:
    DE/NL/FR
    Windows search every time fails, don't trust in it ;).
    What is your problem with that the class is not in the SDK? This just means, that it's completly handled by python and the .exe, and can't be altered in the sdk.
     
  3. Jeckel

    Jeckel Great Reverend

    Joined:
    Nov 16, 2005
    Messages:
    1,637
    Location:
    Peoria, IL
    Most of the actual drawing of the graphics is done by a commercial game engine, gamebyro I believe, and Civ4 had to pay money to get a license to use it, so they can redistribute that part of the code.
     
  4. Afforess

    Afforess The White Wizard

    Joined:
    Jul 31, 2007
    Messages:
    12,239
    Location:
    Austin, Texas
    I had this issue with some other functions, getXResolution and getYResolution, which oddly enough, wasn't exposed in the SDK either. I got around this by adding some fuctions in CvGame that were set the correct X and Y resolution values from python when the game starts up.

    I'm not sure, but perhaps you could work out a hack to call the python functions with the SDK when you need this done, like the way python callbacks work.
     
  5. vicawoo

    vicawoo Chieftain

    Joined:
    Feb 12, 2007
    Messages:
    3,226
    Since when does windows search do text searches?

    I learned about the dds, km and the other formats, and found a program with a python/c++ library that can access it. So the artwork is displayable through gimp or other means. However, without the code for addLeaderHeadGFC, instead of the Dawn of Man graphic I'm going to be getting this

     

Share This Page