It is currently 17 Aug 2025, 20:54
   
Text Size

Information pending...

Moderator: CCGHQ Admins

Re: Information pending...

Postby GrovyleXShinyCelebi » 01 Jun 2015, 20:07

thefiremind wrote:
merdok wrote:Just edit a file in the CardPools directory like D15_INNISTRAD_PLAYER_POOL.xml. Add your card in that file with an unique ID, then pack as WAD and remember that the file name should be like DATA_0xx.WAD. That's all.
The fact is, if I try to repack DATA_022 (the last official deck pack) as a WAD, then put it in place of the original DATA_022.ZED, I can't see its cards in game anymore. So what am I doing wrong?

Are the .METADATA folder contents important? WADs have their own header, so I guess not...
Huh, this is the WAD I used, it has all (well, most) of the cards the AI uses, bringing the total to about 863:

http://www2.zippyshare.com/v/xLk8vqga/file.html

By the way, something I've noticed with the deck editor is that if you add lands that have subtypes like "Swamp", "Mountain", etc., such as Tropical Island or Blood Crypt, that when you add actual basic lands (Mountains, Swamps, etc.) the deck editor bugs out, and "adds" some quantity of the non-basic lands with no way to remove them... The guildgates aren't actually Swamp Forest, Island Mountain, etc., but Gates, so they worked.
User avatar
GrovyleXShinyCelebi
 
Posts: 294
Joined: 12 Jun 2013, 18:23
Has thanked: 14 times
Been thanked: 37 times

Re: Information pending...

Postby thefiremind » 01 Jun 2015, 20:22

Thanks, your WAD works for me, too. I see that you are overriding an existing card pool... maybe I'm not allowed to create a new one, because that's what I was doing. I'll do some more tests.

EDIT: I managed to make my WAD work. I noticed that the new headers have an additional <header>...</header> XML node around <WAD_HEADER>...</WAD_HEADER>, that probably was what I was missing. I have another problem, though: my own TDX files don't work! Maybe some of you remember that we couldn't make our TDX files work when we were using the Content folder with the 3DM modification (only sumomole managed to do it), I think it's the same problem. But I can't understand what's causing it.

EDIT 2: It's not a problem of the TDX file itself: if I copy a TDX from DATA_022 to my WAD and rename it so that it's considered a different image for my own card, it doesn't get read either. It seems as if my Art_Assets\Illustrations folder is being ignored.
< 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: 722 times

Re: Information pending...

Postby Tejahn » 01 Jun 2015, 21:11

I managed to change .TDX and text a very long time ago. It worked for me back then. Perhaps something was changed. I'll be home shortly so I can run some test.

The link for the changes I made are here: viewtopic.php?f=62&t=14214&start=150#p156618

Edit: I just re-read your post. I used the replacement method. Adding your own is different.

Edit: Can you post your .WAD when you have a fully working version? I'd rather add than replace.
Tejahn
 
Posts: 430
Joined: 14 May 2013, 01:35
Has thanked: 25 times
Been thanked: 25 times

Re: Information pending...

Postby thefiremind » 01 Jun 2015, 21:50

Tejahn wrote:Edit: Can you post your .WAD when you have a fully working version? I'd rather add than replace.
I can do that immediately, but the card image still doesn't work.
Attachments
DATA_030.zip
Test WAD for DotP2015 with just 1 card and broken picture
(117.36 KiB) Downloaded 419 times
< 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: 722 times

Re: Information pending...

Postby sweetLu » 01 Jun 2015, 22:13

I'm very intrigued to find out what the first card thefiremind made for 2015 but alas I'm at work and only browsing on my phone.
sweetLu
 
Posts: 181
Joined: 16 Jul 2014, 01:24
Has thanked: 21 times
Been thanked: 22 times

Re: Information pending...

Postby Tejahn » 02 Jun 2015, 01:55


D15_INNISTRAD_REWARDS - Added Wakestone Gargoyle.png
D15_INNISTRAD_REWARDS - Added Wakestone Gargoyle

@thefiremind: I didn't get a chance to test until a short while ago and I got your card to display the art in game but not in the card pool. I'm not sure how GrovyleXShinyCelebi managed to do it because I didn't even see an art folder in his WAD. The only thing I can surmise is that his WAD is named DATA_050 (which doesn't exist in the directory) and your WAD is called DATA_030 (which already exists as a ZED in the directory). I'm not sure if he used a replacement method. This was a quick test so I may be far off the mark.

EDIT: TFM, when I first tried adding your card to my library it would be static and take the art work from other cards not in my deck. But once I added it to GrovyleXShinyCelebi's cardpool it at least went into my deck as a static image yet displayed correctly in my hand and on the battlefeld. Perhaps the ID Number (361) has something to do with why it won't display properly in the cardpool. Maybe that number is already being used.
Tejahn
 
Posts: 430
Joined: 14 May 2013, 01:35
Has thanked: 25 times
Been thanked: 25 times

Re: Information pending...

Postby thefiremind » 02 Jun 2015, 08:36

Tejahn wrote:your WAD is called DATA_030 (which already exists as a ZED in the directory).
What's DATA_030.ZED? I only have 000 (main), 010 (Garruk's expansion), 020, 021, 022 (card packs).

Tejahn wrote:Perhaps the ID Number (361) has something to do with why it won't display properly in the cardpool. Maybe that number is already being used.
I chose 361 because the last ID in DATA_022 was 360. If you tell me that there's a DATA_030.ZED I guess there are more cards, but I don't have that file.

EDIT: Using higher IDs doesn't solve the problem.

Tejahn wrote:I'm not sure how GrovyleXShinyCelebi managed to do it because I didn't even see an art folder in his WAD.
He just added the cards that were available only to the AI, so his art is in the ZED files already.

EDIT 2: I just tried to repack DATA_022.ZED into a WAD and... I can see the cards, but not the pictures! It's as if the WAD files had to have the illustrations in a different folder this time, but it doesn't make any sense. And I was forgetting that they can be seen during the duel... why doesn't the card collection load them?
< 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: 722 times

Re: Information pending...

Postby RiiakShiNal » 02 Jun 2015, 10:44

In my directory (using the Steam version) I see 000, 010, 020, 021, 022, 030, 031, 032, 040, and 041. Haven't had a chance to play around with anything yet though.
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Information pending...

Postby thefiremind » 02 Jun 2015, 10:59

RiiakShiNal wrote:In my directory (using the Steam version) I see 000, 010, 020, 021, 022, 030, 031, 032, 040, and 041. Haven't had a chance to play around with anything yet though.
Now I have them, too. I got the latest update from 3DM some time ago but forgot to apply it until now. #-o

Of course the problem with my own illustrations persists.
< 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: 722 times

Re: Information pending...

Postby Tejahn » 02 Jun 2015, 11:45

My Directory.png
My Directory

Here is my directory. I have Garruk's Revenge. There are currently 14 ZED files.

AUDIO_000.ZED
AUDIO_010.ZED
DATA_000.ZED
DATA_010.ZED
DATA_020.ZED
DATA_021.ZED
DATA_022.ZED
DATA_030.ZED
DATA_031.ZED
DATA_032.ZED
DATA_040.ZED
DATA_0410.ZED
MOVIES_000.ZED
MOVIES_010.ZED

EDIT: I saw some ID's as high as 1100 and over.
Tejahn
 
Posts: 430
Joined: 14 May 2013, 01:35
Has thanked: 25 times
Been thanked: 25 times

Re: Information pending...

Postby GrovyleXShinyCelebi » 02 Jun 2015, 15:12

The highest ID (from the last card pack) is 382; I set Wakestone Gargoyle's ID to be 950, though, and the image still failed to display.

Could the .ZED format be some form of image compression, and the game won't read images that aren't in a proper .ZED file?
User avatar
GrovyleXShinyCelebi
 
Posts: 294
Joined: 12 Jun 2013, 18:23
Has thanked: 14 times
Been thanked: 37 times

Re: Information pending...

Postby thefiremind » 02 Jun 2015, 15:27

GrovyleXShinyCelebi wrote:Could the .ZED format be some form of image compression, and the game won't read images that aren't in a proper .ZED file?
Actually, it reads the image during the duel, but not anywhere else, that's the most puzzling thing.
< 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: 722 times

Re: Information pending...

Postby Tejahn » 02 Jun 2015, 16:38

GrovyleXShinyCelebi wrote:Could the .ZED format be some form of image compression, and the game won't read images that aren't in a proper .ZED file?
That was my conclusion for the cardpools. But the images do show in game as mentioned.
Tejahn
 
Posts: 430
Joined: 14 May 2013, 01:35
Has thanked: 25 times
Been thanked: 25 times

Re: Information pending...

Postby GrovyleXShinyCelebi » 02 Jun 2015, 17:54

So I did some testing and had a radical plan to put Wakestone Gargoyle in DATA_000's directory and repackage it into a WAD, replacing the original DATA_000 in order to see if the issue is a file in DATA_000 that we forgot to copy over into the other WAD or something more serious.

With DATA_000.WAD, everything worked fine in-game. The issue was the deck builder, where all the cards were messed up and invisible:

Image

Image

Everything was still in DATA_000, it's just it's in WAD and not ZED format. When I put DATA_000.ZED back the cards were back to normal.

It might be that the deck builder's engine has trouble reading card images from sources outside of ZED format. Granted, when Wakestone Gargoyle is put in its own separate WAD only the image fails to show up- the frame is still there. It could be the same issue.

Any thoughts?
User avatar
GrovyleXShinyCelebi
 
Posts: 294
Joined: 12 Jun 2013, 18:23
Has thanked: 14 times
Been thanked: 37 times

Re: Information pending...

Postby spirolone » 02 Jun 2015, 19:59

merdok wrote:As promised: http://www.slightlymagic.net/forum/viewtopic.php?f=99&t=17258

Enjoy and happy modding :)
Good job!!! =D>

Maybe, actually, Zed files managing is less important, but I found a bug in my code and I corrected it. It didn't extract correctly uncompressed files: there are few ones in Data archive, but a lot in Movies and Audio zed files. I also added possibility of specifying target file name as argoment (thanks to thefiremind!).
Attachments
ZedToZip.zip
(6.51 KiB) Downloaded 322 times
Last edited by spirolone on 03 Jun 2015, 04:53, edited 1 time in total.
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

PreviousNext

Return to 2015

Who is online

Users browsing this forum: No registered users and 1 guest

Main Menu

User Menu

Our Partners


Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 1 guest

Login Form