Page 3 of 4

Re: Duels - Profile Editing

PostPosted: 08 Jun 2016, 17:28
by break
spirolone wrote:
break wrote:Cool, I used "HxD" to edit the cards to 4 each...and then updated my profile with your tool !

However, I am unable to figure out how to "Foil" the unlocked cards.

Would I need another tool to foil the cards that have been unlocked ?

It appears that all of the cards for a Green/White Human deck are usable in-game ^_^ !!
To "Foil" a card you have to set to "1" first bit; that is, add 8 to desidered unlocked cards. For example, write "0C" instead of "04" if you want that card to be foiled. :wink:
Awesome, thanks for the foil help ^_^"

It is unfortunate that we can not edit how many coins we have earned though.

Also, a warning to anyone who goes online...rather uses the cloud storage option...the system will delete your decks and all cards you have unlocked.

Even with that said, you can still edit your offline or local save profile.

Hmm, but would there be a way to edit how many "pack coins" that we have available ?

* Edit/Update *

Looks like the "Eldritch Moon" update is about to go live :

http://steamcommunity.com/games/316010/ ... 7144518070

Re: Duels - Profile Editing

PostPosted: 25 Oct 2016, 16:40
by Nick26
spirolone wrote:ImportDeck.jar: you can specify, after profile file name, also name of saved deck file and position of deck to replace; it loads a deck saved in a xml file created with MagicAssistant and stores it in profile file; it needs a CardPool.xml file with IDs of cards.
Hi,
I managed to extract my decks creating the decks.txt file and now I can see and modify all of my decks; my question is: is there a way to encode the profile with the modified version of decks.txt? Or another way to edit decks?

p.s. What is "MaigcAssistant" exactly and where can I find it?

Re: Duels - Profile Editing

PostPosted: 25 Oct 2016, 20:35
by Xander9009
http://mtgbrowser.sourceforge.net/wiki/ ... /Main_Page

It's a generic program for building decks.

Re: Duels - Profile Editing

PostPosted: 26 Oct 2016, 11:06
by Nick26
Thanks for the link. This program has a milion things to configure! Can anyone share a sample magic duels deck that we can use to mod?

Re: Duels - Profile Editing

PostPosted: 27 Oct 2016, 04:14
by spirolone
Nick26 wrote:Thanks for the link. This program has a milion things to configure! Can anyone share a sample magic duels deck that we can use to mod?
I'm uploading a xml file with a deck saved by Magic Assistant, but there is a problem: my code needs a xml file with ids and names of cards; actually game uses lol format for card pool and you should convert it! Maybe, I'll do it, but actually I didn't...
However, I could write a code to import decks stored in other ways and, if you use id number instead of name of any card, there is no need to use a xml file to convert names to ids...

Re: Duels - Profile Editing

PostPosted: 27 Oct 2016, 05:34
by Nick26
spirolone wrote:
Nick26 wrote:Thanks for the link. This program has a milion things to configure! Can anyone share a sample magic duels deck that we can use to mod?
I'm uploading a xml file with a deck saved by Magic Assistant, but there is a problem: my code needs a xml file with ids and names of cards; actually game uses lol format for card pool and you should convert it! Maybe, I'll do it, but actually I didn't...
However, I could write a code to import decks stored in other ways and, if you use id number instead of name of any card, there is no need to use a xml file to convert names to ids...
That's perfectly fine, thanks! :D After all we can always put the "custom" cards (with id > 1023) using ids, add a bounch of random ones and then add the other cards in game, right?
So, for example, if I want to add your Emrakul, the Promised End ( EMRAKUL_THE_PROMISED_END_199414295 ) with like id = 2000 to this deck, let say removing this card

<mcp>
<card>
<id>383175</id>
<name>Accursed Spirit</name>
<edition>Magic 2015 Core Set</edition>
</card>
<count>4</count>
<location>Decks/Test</location>
<date>Mon Oct 19 18:53:05 CEST 2015</date>
</mcp>


is the following correct?

<mcp>
<card>
<id>2000</id>
<name>Emrakul, the Promised End</name>
<edition>Magic 2015 Core Set</edition>
</card>
<count>4</count>
<location>Decks/Test</location>
<date>Mon Oct 19 18:53:05 CEST 2015</date>
</mcp>

or should I write something like

<mcp>
<card>
<id>2000</id>
<name>EMRAKUL_THE_PROMISED_END_199414295</name>
<edition>Magic 2015 Core Set</edition>
</card>
<count>4</count>
<location>Decks/Test</location>
<date>Mon Oct 19 18:53:05 CEST 2015</date>
</mcp>

Re: Duels - Profile Editing

PostPosted: 27 Oct 2016, 23:28
by spirolone
Note that "id" tag in xml files created by Magic Assistant is not related to id of card in game! My code doesn't read it at all and you'll obtain same result with this:
Code: Select all
<card>
<name>Accursed Spirit</name>
</card>
<count>4</count>
However I just wrote a new code to import a deck from a text file like this:
Code: Select all
Card: 68 x2
Card: 411 x3
Card: 124 x1
...
Card: 106 x1
Card: 319 x1
Card: 62 x1
Card: 85 x3
Card: 368 x1
Plains: 23
Islands: 0
Swamps: 0
Mountains: 0
Forests: 0
Wastes: 0
Default name for profile is "1.profile", for text file "Deck.txt" and default position is 0, but you can change them; eg: ImportDeck.jar 567890.profile MyTestDeck.txt 8

EDIT: I reuploaded file cause it was bugged...

Re: Duels - Profile Editing

PostPosted: 01 Nov 2016, 16:52
by Nick26
That's amazing, thank you! I tried to import a deck but I can't manage to make it work, the deck only has the basic lands. I tried with both original cards and modded cards but nothing happened :(

Re: Duels - Profile Editing

PostPosted: 02 Nov 2016, 01:07
by spirolone
Nick26 wrote:That's amazing, thank you! I tried to import a deck but I can't manage to make it work, the deck only has the basic lands. I tried with both original cards and modded cards but nothing happened :(
Likely it's a bug in my code: may you upload your txt file?

Re: Duels - Profile Editing

PostPosted: 02 Nov 2016, 06:30
by Nick26
Sure, here is it!

Re: Duels - Profile Editing

PostPosted: 02 Nov 2016, 11:58
by spirolone
Nick26 wrote:Sure, here is it!
It seems to work to me... May you upload your CardPool lol file and modded zed, please? Did you say you wasn't able to import your deck neither using standard cards ids? May you upload that txt file too?

Re: Duels - Profile Editing

PostPosted: 03 Nov 2016, 14:26
by logoliv
Why does the game reset your profile when you change the profile number in the save folder ? Does the profile file itself contain this number or else how does the game know that you haven't pass the tutorial for example ?

Re: Duels - Profile Editing

PostPosted: 03 Nov 2016, 16:12
by spirolone
logoliv wrote:Why does the game reset your profile when you change the profile number in the save folder ? Does the profile file itself contain this number or else how does the game know that you haven't pass the tutorial for example ?
Yes, in first two bytes of profile file there are (encrypted) last four hex numbers of your ID. And there are stored info about missions passed, obviously...

Re: Duels - Profile Editing

PostPosted: 03 Nov 2016, 20:14
by logoliv
exactly the info I needed, thanks

Re: Duels - Profile Editing

PostPosted: 03 Nov 2016, 21:09
by Nick26
spirolone wrote:It seems to work to me... May you upload your CardPool lol file and modded zed, please? Did you say you wasn't able to import your deck neither using standard cards ids? May you upload that txt file too?
Really? I did so many tries but nothing, I only have basic lands in my imported deck :(
Another weird thing is that whenever I try to use the command java -jar importdeck.jar <profile name>.profile <deck name>.txt <position of the deck> I always get an error. Am I doing something wrong?
Here is a file with: original profile, modded profile, the (last version of the) deck I was trying to import, cardpool and data_005_bis.zed.