It is currently 20 Apr 2024, 01:42
   
Text Size

It seems I can't override CARD_LAYOUT.XML

Moderator: CCGHQ Admins

It seems I can't override CARD_LAYOUT.XML

Postby thefiremind » 18 Jul 2013, 14:10

I inserted a modified version of CARD_LAYOUT.XML in my mod, with all the counter definitions that I had in DotP2013, and I was confident that it would have worked, but then I realized that the defined counters are still red, so something must be wrong.
Did someone else try to override this file or another file belonging to the CONFIGS folder? Am I missing something?
< 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: It seems I can't override CARD_LAYOUT.XML

Postby RiiakShiNal » 18 Jul 2013, 14:21

Have you tried using the PLAYFIELD_CONTENT or RELOAD_ALL_CONTENT flags?
RiiakShiNal
Programmer
 
Posts: 2185
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: It seems I can't override CARD_LAYOUT.XML

Postby thefiremind » 18 Jul 2013, 15:06

RiiakShiNal wrote:Have you tried using the PLAYFIELD_CONTENT or RELOAD_ALL_CONTENT flags?
I have tried all the flags now, except those that are clearly made for something else (i.e. CAMPAIGN_CONTENT). No changes on the counters.
< 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: It seems I can't override CARD_LAYOUT.XML

Postby RiiakShiNal » 18 Jul 2013, 15:57

I can confirm that I can't get it to override the one in the core. I've also tried changing the mod order to no effect.
RiiakShiNal
Programmer
 
Posts: 2185
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: It seems I can't override CARD_LAYOUT.XML

Postby thefiremind » 21 Jul 2013, 09:33

I just had a thought about this: could it be that we were actually overriding CARD_LAYOUT.XML, but that section of the file does nothing on DotP2014? Since we have COUNTER_REGISTRATIONs now, it's possible that the game has predefined colors for the most common counters (P/T modifiers and charge) and it decides the other counters' colors automatically, starting from red for the first counter type that enters the battlefield and giving other colors to the next ones. But this is just a guess, I haven't tried to see what happens with 2 different custom counter types on the battlefield.
< 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


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 52 guests


Who is online

In total there are 52 users online :: 0 registered, 0 hidden and 52 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 52 guests

Login Form