It is currently 26 Apr 2024, 17:20
   
Text Size

[2013]Quick Question - Replacing Art Files

Moderator: CCGHQ Admins

[2013]Quick Question - Replacing Art Files

Postby Blue Ghost » 05 Sep 2013, 03:53

It's been a while since I've posted here. Yes, I'm still doing 2013 while y'all have moved on to 2014.
Just a quick newb question. How does one replace the arts of cards, while retaining the original art files? I gather you'd have to create new TDX files with the appropriate names, but where should I put them? In a separate WAD? A folder in an existing WAD? How do I make sure that the game reads the new arts and not the original ones?
Blue Ghost
 
Posts: 52
Joined: 07 Apr 2013, 20:41
Has thanked: 6 times
Been thanked: 0 time

Re: [2013]Quick Question - Replacing Art Files

Postby thefiremind » 05 Sep 2013, 08:49

Blue Ghost wrote:I gather you'd have to create new TDX files with the appropriate names, but where should I put them? In a separate WAD? A folder in an existing WAD?
Making a new WAD for overriding content is always better.

Blue Ghost wrote:How do I make sure that the game reads the new arts and not the original ones?
Nobody ever proved it, but there's a high chance that the game loads the WAD files in alphabetical order, and the last to be loaded "wins", so just give the WAD a name that goes for last in alphabetical order.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: [2013]Quick Question - Replacing Art Files

Postby Blue Ghost » 05 Sep 2013, 16:24

What needs to go in the WAD file? I tried just putting the TDX files in a folder, but that didn't seem to work.
Blue Ghost
 
Posts: 52
Joined: 07 Apr 2013, 20:41
Has thanked: 6 times
Been thanked: 0 time

Re: [2013]Quick Question - Replacing Art Files

Postby RiiakShiNal » 05 Sep 2013, 17:38

WADs need to have an XML header and be in a specific structure for DotP 2013:
  • Top Level Directory - typically with the same name as the final WAD will have starting with either "DATA_DLC_" or "DECK_"
    • Directory - DATA_ALL_PLATFORMS
      • Directory - ART_ASSETS
        • Directory - ILLUSTRATIONS
          • TDX Files - Card images go here with names that match those defined in the Card XMLs (ARTID tag) and saved in TDX format.
    • XML Header - HEADER.XML

The XML Header has a very simple structure, but is unique for each WAD:
Code: Select all
<?xml version="1.0"?>
<WAD_HEADER>
   <ENTRY platform="ALL" source="<Name of Top Level Directory from above goes here.>/DATA_ALL_PLATFORMS/" alias="Content" order="3"/>
</WAD_HEADER>
So if your top level directory is "DATA_DLC_5678" your Header would look like this:
Code: Select all
<?xml version="1.0"?>
<WAD_HEADER>
   <ENTRY platform="ALL" source="DATA_DLC_5678/DATA_ALL_PLATFORMS/" alias="Content" order="3"/>
</WAD_HEADER>
RiiakShiNal
Programmer
 
Posts: 2185
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 31 guests


Who is online

In total there are 31 users online :: 0 registered, 0 hidden and 31 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 31 guests

Login Form