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

DDS unpacker for interface textures

Discussion in 'Civ5 - Utility Programs' started by Sterkhov, Oct 7, 2010.

  1. Deep_Blue

    Deep_Blue Knight

    Joined:
    Aug 2, 2005
    Messages:
    750
    I used DTX3 format, but I didnt modify any xml or lua assuming that the new DDS will replace the old one. so you cant edit old icons and you can only add new ones?
     
  2. lemmy101

    lemmy101 Emperor

    Joined:
    Apr 10, 2006
    Messages:
    1,064
    Well you can edit old ones technically, by duplicating them to another file, with this tool, saving as DXT (5 is better if you have an alpha channel btw) and redirecting the atlas or UI to the new one, then making the changes to the new file. So if you wanted to edit all the techs you could do it like this, while technically new ones you would have for all intents and purposes edited them.

    The fonticons are an exception to this rule though.
     
  3. SamBC

    SamBC Emperor

    Joined:
    Feb 2, 2010
    Messages:
    1,052
    Location:
    Lancaster
    The one thing it seems impossible to add is IconFonts/FontIcons... devs appear to have admitted this and hope to fix it. I'm not sure if there might be a non-modular way around it using the above technique (modify a relevant atlas to point to a new file that's the same as the old one with new things added)...
     
  4. HotRoDDT

    HotRoDDT Chieftain

    Joined:
    May 25, 2011
    Messages:
    12
    Hi,
    My first time trying to MOD in CIV 4, I downloaded the unpacker, opened and tried it without success. When browsing the input directory, it will only let me select the assets folder and no specific files in the folder itself. Can someone please help me out?
    Thanks
     
  5. MouseyPounds

    MouseyPounds Prince

    Joined:
    Nov 8, 2010
    Messages:
    417
    Location:
    Maryland, USA
    I hope you mean Civ5. ;) Anyhow, this tool doesn't do single files. You have to give it a directory and it'll unpack everything it finds in that directory. So assuming you're already run the Nexus extract script, you just need to set the input directory to <Install Directory>\resource\DX9 and the output directory to wherever you prefer, and then it'll work its magic.
     
  6. Alikalix

    Alikalix Chieftain

    Joined:
    Feb 15, 2011
    Messages:
    37
    Location:
    Białystok, Poland
    For fonts it says FAIL :(
     
  7. Pazyryk

    Pazyryk Deity

    Joined:
    Jun 13, 2008
    Messages:
    3,584
    Yes, I had the same problem. Fonts have the two files (filename-index.dds and filename.dds) but throw an error using the unpacker. Has anyone succeeded in opening these?
     
  8. carloscodex

    carloscodex Chieftain

    Joined:
    Sep 14, 2012
    Messages:
    66
    Location:
    Pleasanton (San Francisco), Ca
    For the life of me, I can't get this to work anymore. The first time I did it (about 9 months ago) it unpacked everything but kept many of the "icon" (buildings, tech, units) files scrambled (not the mini-icons).

    Now, all I see is:
    Start....
    Complete!

    And nothing happens.

    I even thought it could have something to do with my soft- and hard-linking on my folder structures, so I copied everything to very simple folders:

    E:\in
    E:\out

    With the files BuildingTextures.fpk and UITextures.fpk in the "in" folder.

    I of course set the Input and Output directories appropriately.

    Any ideas?
     
  9. isnorden

    isnorden Amnesiac Modder

    Joined:
    Jul 6, 2012
    Messages:
    608
    Location:
    Madison, Wisconsin, USA
    Hmmm...I copied the DX9 directory contents to my art-modding directory, set the input and output locations, and clicked Unpack without getting any result. What could I have done wrong?
     
  10. Nutty

    Nutty Deity

    Joined:
    Mar 9, 2011
    Messages:
    3,181
    Gender:
    Male
    Location:
    Orange County, California, U.S.A.
    This tool doesn't actually unpack the fpk's. You have to use the Nexus script or Dragon Unpacker first. That was certainly carloscodex's problem in the post above. Is it yours as well?
     
  11. isnorden

    isnorden Amnesiac Modder

    Joined:
    Jul 6, 2012
    Messages:
    608
    Location:
    Madison, Wisconsin, USA
    @Nutty: Very much my problem! Dragon Unpacker shows the .dds files as colorful-but-compressed blobs; and Nexus refuses to link to Civ5 on my slow, aging PC.
     
  12. Lord Tirian

    Lord Tirian Erratic Poster

    Joined:
    Nov 30, 2007
    Messages:
    2,724
    Location:
    Liverpool, UK
    Hmmm, I'm wondering: has anybody every attempted to reverse-engineer the process, producing run-length encoded DDS files? I noticed that DXT5 compression sometimes absolutely mangles smaller icons and UI textures (compared to Firaxis' method) and uncompressed DDS files end up being huge...
     
  13. Rayki

    Rayki Chieftain

    Joined:
    Nov 19, 2014
    Messages:
    78
    Location:
    Australia
    Is there an alternative download location for this?

    I am unable to download it from this link.
     
  14. roadmaster

    roadmaster Chieftain

    Joined:
    Apr 28, 2015
    Messages:
    20
    Great tool, willing to hand out your source code, and works with BE also. Your the Man!!! :goodjob:

    I had been wondering how to look at all the art, thanks for the nice tool.
     
  15. Ekmek

    Ekmek on steam: ekmek_e

    Joined:
    Aug 7, 2002
    Messages:
    6,060
    Location:
    San Diego, California
  16. Nutty

    Nutty Deity

    Joined:
    Mar 9, 2011
    Messages:
    3,181
    Gender:
    Male
    Location:
    Orange County, California, U.S.A.
    No. This converts the indexed DDS files (mostly the user interface stuff; they each have an accompanying -index file) into PNG files, since the indexed files can't be opened using the traditional photo editor DDS plugins. The PNG's can then be converted to regular DDS's as needed for use in mods.

    This would be performed only after the files had been extracted from the FPKs by Dragon UnPACKer or the Nexus script.
     
  17. poundjd

    poundjd Warlord Supporter

    Joined:
    Dec 4, 2013
    Messages:
    108
    Gender:
    Male
    Location:
    USA PA 17222
    A year later, is there a good way of dealing with Civ V graphics yet?
     
  18. Nutty

    Nutty Deity

    Joined:
    Mar 9, 2011
    Messages:
    3,181
    Gender:
    Male
    Location:
    Orange County, California, U.S.A.
    It's unclear which graphics you're referring to [there are lots of various interface graphics, 3D models and textures], and what you mean by "dealing with."
     

Share This Page