It is currently 30 Aug 2025, 22:58
   
Text Size

Magic Duels tests and results

Moderator: CCGHQ Admins

Re: Magic Duels tests and results

Postby thanic » 17 Apr 2016, 01:07

spirolone wrote:I updated CardPool.xml to latest expansion and I'm working on a little new code for my Java class to simplify things as one you wrote about, but there are some problems, I think: in Magic Assistant cards names are sometimes a bit different! As example, "HELIODS_PILGRIM_390434" is, in Magic Assistant, "Heliod's Pilgrim"; then I need to check a file with Magic Assitant cards names for every card...
Moreover, there are more versions of any card in Magic Assistant database!
I manually created a collection of Magic Duels cards for Magic Assistant but I should update it for Shadows Over Innistrad expansion, and it's a tedious work... :oops:
Perhaps this will help. I wrote a python script to extract the multiverseid from mtgjson(dot)com (forum software won't let me add the url) and added it to the CardPool.xml. I also included the list of multiverseids in a CSV and the Python3 script to generate the files. The script favors the newest multiverseid of the card.

I successfully imported the csv into Magic Assistant, however, I don't have any information about the number of each card in Magic Duels, so it lists every card as having one copy.

To run the python script, you'll need CardPool.xml and AllSets.json from mtgjson(dot)com in the same directory as the script.
Attachments
CardPool.zip
(16.38 KiB) Downloaded 264 times
thanic
 
Posts: 4
Joined: 20 Aug 2015, 01:22
Has thanked: 1 time
Been thanked: 1 time

Re: Magic Duels tests and results

Postby Tejahn » 18 Apr 2016, 10:10

Tejahn wrote:I haven't been here in a while and decided to start back testing Magic Duels today to do some modding. It seems that the OGW and SOI update has rendered TFM's test ZED contents v2.2.zip obsolete. The DATA_001.zip spirolone previously provided worked perfectly with TFM's D15Tool (with DuelsLib) but now nothing that was added is displayed and the cards that are locked by default remain locked. Is there an update coming anytime soon?

I didn't alter any of the content that I previously used. I just packed it up and thought it would work as usual.
Since my last post I tried a few things to make the cards appear but still I've not been successful. So I have a question for anyone who visits this topic, especially spirolone and thefiremind. Days ago I stated that I am no longer able to see added cards after the OGW and SOI update. I wanted to test thefiremind's Howlpack of Estwald to see if the visual bug is still present before making the necessary changes make the care appear as all other SOI werewolf cards. Is there an updated tool or utility that can help me overcome this dilemma?
Tejahn
 
Posts: 430
Joined: 14 May 2013, 01:35
Has thanked: 25 times
Been thanked: 25 times

Re: Magic Duels tests and results

Postby thanic » 18 Apr 2016, 16:13

thanic wrote:Perhaps this will help. I wrote a python script to extract the multiverseid from mtgjson(dot)com (forum software won't let me add the url) and added it to the CardPool.xml. I also included the list of multiverseids in a CSV and the Python3 script to generate the files. The script favors the newest multiverseid of the card.

I successfully imported the csv into Magic Assistant, however, I don't have any information about the number of each card in Magic Duels, so it lists every card as having one copy.

To run the python script, you'll need CardPool.xml and AllSets.json from mtgjson(dot)com in the same directory as the script.
There's a bug in the original script. Turns out XML doesn't like it when you don't properly close a section :oops:. I've fixed the python script and attached a copy of CardPool.xml that is properly closed at the end.

I attempted to add a card count field to the csv to import into Magic Assistant, but don't quite understand how the Cards.bin is keeping track of the number of cards in hex format, so my initial results were incorrect.
Attachments
PythonScript&CardPool.zip
(14.82 KiB) Downloaded 253 times
thanic
 
Posts: 4
Joined: 20 Aug 2015, 01:22
Has thanked: 1 time
Been thanked: 1 time

Re: Magic Duels tests and results

Postby spirolone » 19 Apr 2016, 10:44

Tejahn wrote:Since my last post I tried a few things to make the cards appear but still I've not been successful. So I have a question for anyone who visits this topic, especially spirolone and thefiremind. Days ago I stated that I am no longer able to see added cards after the OGW and SOI update. I wanted to test thefiremind's Howlpack of Estwald to see if the visual bug is still present before making the necessary changes make the care appear as all other SOI werewolf cards. Is there an updated tool or utility that can help me overcome this dilemma?
May you upload a little zed you tried to load unsuccessfully?
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

Re: Magic Duels tests and results

Postby spirolone » 19 Apr 2016, 12:01

thanic wrote:I attempted to add a card count field to the csv to import into Magic Assistant, but don't quite understand how the Cards.bin is keeping track of the number of cards in hex format, so my initial results were incorrect.
In Cards.bin you can see in first byte number of cards with id=0 (ACCURSED_SPIRIT_390708) unlocked (0, 1, 2 3 or 4), in second byte number of cards with id=1 (AERONAUT_TINKERER_390427) and so on...
Ah, numbers over 7 mean card is "foiled" and you have to substract 8!
Let me know if you need another format for numbers of unlocked cards, or if you encounter problems in creating a script to do what you need...
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

Re: Magic Duels tests and results

Postby Tejahn » 19 Apr 2016, 13:28

spirolone, it's TFM's test ZED contents v2.2.zip found on the first page of this thread. I did some more testing by deleting DATA_002 (Oath of the Gatewatch) and DATA_003 (Shadows over Innistrad) and everything started working again. However, after adding them again the new cards no longer appeared. This proves that the official ZEDs (DATA_002 and DATA_003) are causing the conflict. You previously provided an updated DATA_001.bin file on page 6 of this thread that made the cards appear after the BFZ update. It worked for TFM D15Tool (with DuelsLib) and your CreateZed Jar. Perhaps a newer .bin file is needed.
Attachments
DATA_011.zip
This is the ZED I tried to use.
(3.55 MiB) Downloaded 253 times
Tejahn
 
Posts: 430
Joined: 14 May 2013, 01:35
Has thanked: 25 times
Been thanked: 25 times

Re: Magic Duels tests and results

Postby spirolone » 22 Apr 2016, 01:30

Tejahn wrote:spirolone, it's TFM's test ZED contents v2.2.zip found on the first page of this thread. I did some more testing by deleting DATA_002 (Oath of the Gatewatch) and DATA_003 (Shadows over Innistrad) and everything started working again. However, after adding them again the new cards no longer appeared. This proves that the official ZEDs (DATA_002 and DATA_003) are causing the conflict. You previously provided an updated DATA_001.bin file on page 6 of this thread that made the cards appear after the BFZ update. Perhaps a newer .bin file is needed.
I looked at file and problem is name of cardpool file: if you use default names as "MO_SHOEBOX_CARD_POOL.xml", those files will be overwritten by newer versions present in Data_002 and Data_003. I could update bin file for zed creator but it should be sufficient to use new names as "MY_CARD_POOL-xml"...
However, you can play with parameters (id=, plane_id=, content_id=) to merge cards in same collection...
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

Re: Magic Duels tests and results

Postby Tejahn » 22 Apr 2016, 09:53

Thanks again spirolone! That worked. The ironic part is that I didn't realize I was using old extracted files from the pre-OGW/SOI update until after your reply.

Unlocked but showing duplicates..jpg
Unlocked but showing duplicates.


However, the dreaded duplicate card visual glitch I spoke about on page 6 of this thread has re-surfaced. Again, the duplicates are only a cosmetic glitch. In the screenshot above, although Rattlechains is showing itself available to be placed in my deck up to 4 times, if I put 2 in my deck the other 2 disappear. I followed the steps TFM used in his XMLs but the duplicates still appear. If I remember correctly, the duplicates disappeared after you provided the update DATA_001.bin file. (But I'm really not sure)

Locked without showing duplicates..jpg
Locked without showing duplicates.


When I remove all the cards from my custom XML file the duplicates disappear but all cards locked by default become locked again. I'll have a lot of free time in the next two weeks so there are three specific things I want to learn before my time become limited again.

1) How to remove the 'duplicate card' glitch.
2) How to use your tools to edit my profile to unlock all cards.
3) How to add up to 4 cards regardless of rarity.

I'll start back mod testing soon and post my results. Once more, thanks for all the help.
Tejahn
 
Posts: 430
Joined: 14 May 2013, 01:35
Has thanked: 25 times
Been thanked: 25 times

Re: Magic Duels tests and results

Postby spirolone » 22 Apr 2016, 22:38

Tejahn wrote:When I remove all the cards from my custom XML file the duplicates disappear but all cards locked by default become locked again. I'll have a lot of free time in the next two weeks so there are three specific things I want to learn before my time become limited again.

1) How to remove the 'duplicate card' glitch.
2) How to use you tools to edit my profile to unlock all cards.
3) How to add up to 4 cards regardless of rarity.

I'll start back mod testing soon and post my results. Once more, thanks for all the help.
You are welcome and thank you for your work!
Regarding duplicate cards, I think it's normal cause you put a second instance of any card in another xml file, so that game shows twice any card. As example, let's consider card with id=0 ("ACCURSED_SPIRIT_390708"): game finds it in "MO_SHOEBOX_CARD_POOL.xml", then it finds it again in another xml and puts it again in card collection; but both have id=0 so game considers them as a single card.

Your 2) and 3) points are the same, cause when you "unlock" cards in profile you actually set how many cards with a specific id are available; then you could set "4" unlocked cards for any card, also non-common ones...
To edit profile use jars uploaded here:
viewtopic.php?f=99&t=17931
At the bottom of first page, you can find a post of Marcel Costa that explain how to unlock 4 cards of any! :wink:
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

Re: Magic Duels tests and results

Postby Tejahn » 24 Apr 2016, 03:03

Thoughtrender Lamia.jpg
Thoughtrender Lamia is missing its subtype due to the OGW/SOI update.

Villagers of Estwald.jpg
Villagers of Estwald

Howlpack of Estwald.jpg
Howlpack of Estwald

Bloodline Keeper.jpg
Bloodline Keeper

Lord of Lineage.jpg
Lord of Lineage


spirolone wrote:You are welcome and thank you for your work!
Regarding duplicate cards, I think it's normal cause you put a second instance of any card in another xml file, so that game shows twice any card. As example, let's consider card with id=0 ("ACCURSED_SPIRIT_390708"): game finds it in "MO_SHOEBOX_CARD_POOL.xml", then it finds it again in another xml and puts it again in card collection; but both have id=0 so game considers them as a single card.

Your 2) and 3) points are the same, cause when you "unlock" cards in profile you actually set how many cards with a specific id are available; then you could set "4" unlocked cards for any card, also non-common ones...
To edit profile use jars uploaded here:
viewtopic.php?f=99&t=17931
At the bottom of first page, you can find a post of Marcel Costa that explain how to unlock 4 cards of any! :wink:
Spirolone, I knew that the duplicates were appearing because the game is reading the same cards in two different ZEDs. I was highlighting that point to stress how important it is that I learn to add up to 4 copies of a card without needing to add official cards to a different ZED.

I also knew that numbers 2 and 3 were interchangeable but I just wanted to outline what I hope to accomplish. I still didn't get around to trying to unlock 4 of any card using your tools but I did find out that I can do so through the XMLs as the screenshot above prove. I have the Thoughtrender Lamia card XML set as mythic but I can still put 3 instances of it in my deck.

Also, I tested the subtypes for the 5 cards (Crystalline Nautilus, Dripping-Tongue Zubera, Fate Unraveler, Forgeborn Oreads, and Venerable Lammasu) I posted on page 7 and they all show by default. The only card still missing it's subtype is Thoughtrender Lamia. I've been constantly trying to add the Lamia subtype by following the official method used to add Clue and Mole but I'm obviously going awry. Can someone provide the necessary files for the Lamia subtype to show?

Okay, on to my other testing results. Villagers of Estwald coded by TFM displays in the correct frame now since the SOI update. I also coded and tested Bloodline Keeper and it works and displays in the correct frame as well. Additionally, I added flavor text to both cards. See the screenshots above.

As far as the transformation tag, if you add multiple tags to one card XML it will only show the card associated with last transformation tag.

I'll continue testing tomorrow and I look forward to receiving the files necessary for the Lamia subtype to show.
Tejahn
 
Posts: 430
Joined: 14 May 2013, 01:35
Has thanked: 25 times
Been thanked: 25 times

Re: Magic Duels tests and results

Postby spirolone » 29 Apr 2016, 10:36

Tejahn wrote:Spirolone, I knew that the duplicates were appearing because the game is reading the same cards in two different ZEDs. I was highlighting that point to stress how important it is that I learn to add up to 4 copies of a card without needing to add official cards to a different ZED.

I also knew that numbers 2 and 3 were interchangeable but I just wanted to outline what I hope to accomplish. I still didn't get around to trying to unlock 4 of any card using your tools but I did find out that I can do so through the XMLs as the screenshot above prove. I have the Thoughtrender Lamia card XML set as mythic but I can still put 3 instances of it in my deck.

Also, I tested the subtypes for the 5 cards (Crystalline Nautilus, Dripping-Tongue Zubera, Fate Unraveler, Forgeborn Oreads, and Venerable Lammasu) I posted on page 7 and they all show by default. The only card still missing it's subtype is Thoughtrender Lamia. I've been constantly trying to add the Lamia subtype by following the official method used to add Clue and Mole but I'm obviously going awry. Can someone provide the necessary files for the Lamia subtype to show?

Okay, on to my other testing results. Villagers of Estwald coded by TFM displays in the correct frame now since the SOI update. I also coded and tested Bloodline Keeper and it works and displays in the correct frame as well. Additionally, I added flavor text to both cards. See the screenshots above.

As far as the transformation tag, if you add multiple tags to one card XML it will only show the card associated with last transformation tag.

I'll continue testing tomorrow and I look forward to receiving the files necessary for the Lamia subtype to show.
I'm sorry if I wrote something obvious, but I prefer to be as clear as I can.
May you tell me how you could unlock 3 cards of a Mythic one modifying xmls? Did you use different ids for one card? I'm curious...
Regarding Lamia subtype, I think you need an updated Data.bin file for creating Zeds, cause you need to overwrite Creature_Types file, so I created it: tell me if you solve with it! :)
Attachments
Data.zip
(66.74 KiB) Downloaded 227 times
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

Re: Magic Duels tests and results

Postby Tejahn » 29 Apr 2016, 21:53

Deathpact Angel - Able to add up to '4' copies despite the card being Mythic Rare..jpg
Deathpact Angel - Able to add up to '4' copies despite the card being Mythic Rare.

Deathpact Angel - Added as a 'Common' through XML..png
Deathpact Angel - Added as a 'Common' through XML.

Deathpact Angel - Adding up to '4' copies is not just visual. It's fully functional..jpg
Deathpact Angel - Adding up to '4' copies is not just visual. It's fully functional.

Deathpact Angel - XML showing that I never changed the rarity of the card..png
Deathpact Angel - XML showing that I never changed the rarity of the card.


I'm sorry if I wrote something obvious, but I prefer to be as clear as I can.
May you tell me how you could unlock 3 cards of a Mythic one modifying xmls? Did you use different ids for one card? I'm curious...
Regarding Lamia subtype, I think you need an updated Data.bin file for creating Zeds, cause you need to overwrite Creature_Types file, so I created it: tell me if you solve with it! :)
It's never a problem that you're being very clear spirolone. That's what helps me understand things a lot better.

As for how I'm able to add '4' copies of a Mythic Rare through XML, I added the name of the XMLs to the 'MO_SHOEBOX_CARD_POOL' in the CardPools folder. I kept with the official logic and added their 'ID' as ascending numbers. You can see this by looking at Thoughtrender Lamia which is '93' and Deathpact Angel is '94'. However, the 'Rarity' tag seems to be what the game reads despite what the actual card rarity is in the card XML. Screenshot four shows that I didn't change the rarity of the card. But by putting 'C' in the 'Rarity' slot of the 'MO_SHOEBOX_CARD_POOL' XML the game reads the card as a common. You'll notice in the second screenshot I used highlight to help visually explain what I mean.

Concering the the file you provided, it didn't work at all. It actually cause the added cards not to show. I noticed that the name of the .bin was different that the one you previously posted but even after renaming the file to DATA_001 it still didn't work. Thank you for your time and effort. I'm confident you'll figure it out. And I hope my explanation was clear.

EDIT: I forgot to mention that Thoughtrender Lamia is set as an uncommon in the 'MO_SHOEBOX_CARD_POOL' XML by using 'U' in the rarity slot so that's why I'm able to put up to three copies of it in a deck. Also, Woodland Cementary is duplicated because I was testing it earlier. It has nothing to do with the rarity results.
Tejahn
 
Posts: 430
Joined: 14 May 2013, 01:35
Has thanked: 25 times
Been thanked: 25 times

Re: Magic Duels tests and results

Postby spirolone » 29 Apr 2016, 23:14

Tejahn wrote:As for how I'm able to add '4' copies of a Mythic Rare through XML, I added the name of the XMLs to the 'MO_SHOEBOX_CARD_POOL' in the CardPools folder. I kept with the official logic and added their 'ID' as ascending numbers. You can see this by looking at Thoughtrender Lamia which is '93' and Deathpact Angel is '94'. However, the 'Rarity' tag seems to be what the game reads despite what the actual card rarity is in the card XML. Screenshot four shows that I didn't change the rarity of the card. But by putting 'C' in the 'Rarity' slot of the 'MO_SHOEBOX_CARD_POOL' XML the game reads the card as a common. You'll notice in the second screenshot I used highlight to help visually explain what I mean.

Concering the the file you provided, it didn't work at all. It actually cause the added cards not to show. I noticed that the name of the .bin was different that the one you previously posted but even after renaming the file to DATA_001 it still didn't work. Thank you for your time and effort. I'm confident you'll figure it out. And I hope my explanation was clear.
Ah ok, then you changed rarity only in CardPool xml so that game unlocks 4 cards with that id when you gain starter box...

What are you using to create zed file? My little jar program or TFM tool? My program uses Data.bin, instead TFM tool let you choose what bin to use, then you could rename it as Data_003.bin; but it's important that source folder you use is named DATA_003! Sorry, maybe I should have write that this new bin is made from DATA_003.ZED file, and in its header it contains "DATA_003/DATA_ALL_PLATFORMS/" as source folder for content! :oops:
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

Re: Magic Duels tests and results

Postby Tejahn » 29 Apr 2016, 23:39

Thoughtrender Lamia - Subtype now working..jpg
Thoughtrender Lamia - Subtype now working.


Success! Thanks again spirolone. Renaming it to DATA_003 made it work with TFM tool. I just tested and it worked with your tool by default.

Ah ok, then you changed rarity only in CardPool xml so that game unlocks 4 cards with that id when you gain starter box...
Yes. Whereas I would previously change the rarity in each card XML I now only change the rarity in the cardpool XML which is a lot faster since I don't have to open each card XML. I actually discovered this during my modding test of DOTP 2015. I went through my DOTP 2015 test folder earlier today and fortunately I came across that method again.
Tejahn
 
Posts: 430
Joined: 14 May 2013, 01:35
Has thanked: 25 times
Been thanked: 25 times

Re: Magic Duels tests and results

Postby Tejahn » 02 May 2016, 22:09










Although I took screenshots of only four, I tested all the Miracle cards and they work properly. The miracle frames are also present as you can see and I added the Miracle flavor text to each card as well.
Last edited by Tejahn on 03 May 2016, 07:19, edited 1 time in total.
Tejahn
 
Posts: 430
Joined: 14 May 2013, 01:35
Has thanked: 25 times
Been thanked: 25 times

PreviousNext

Return to Magic Duels

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