It is currently 16 Apr 2024, 19:18
   
Text Size

how to get a .mwsdeck to userData.csv?

by Nate

Moderators: Snacko, CCGHQ Admins

how to get a .mwsdeck to userData.csv?

Postby Luka » 04 Oct 2008, 20:32

Hello,

Around 10 friends and I have a league where we manage our own virtual collection of cards. We generate those with MWS, and as we get more it gets pretty painful to build a deck ... All the collection starts in the sideboard and it's quite ugly ... The library being used only for lands. Nate's Deck Builder allows to manage a collection of cards, wich is exactly what would make our lives easier. However, it can be pretty painful to set the quantity one by one ...

I looked into the format used in userData.csv and .mwdeck, it sounds quite easy to write a script that translates it. To make sure I tried to add some cards manualy and it seems the order matters, or you get strange bugs. Did someone wrote a script that does the job correctly already? Or is there a way to move a (big group of) card(s) from a deck to the owned cards?

Thanks for the answer ;)

Unlife

ps: It is still possible that there is a way to add a qty column the libray part of MWS, but if so I didn't find it.
Luka
 
Posts: 2
Joined: 04 Oct 2008, 20:20
Has thanked: 0 time
Been thanked: 0 time

Re: how to get a .mwsdeck to userData.csv?

Postby Snacko » 04 Oct 2008, 21:02

The order doesn't matter however you need to make sure that each entry is unique, because otherwise it will overwrite itself with the last value.
ex
Code: Select all
Abbey Gargoyles,hml,,20
Abbey Gargoyles,hml,,50
Will set the owned qty to 50.

The only currently possible way of importing a large collection is via MTGO csv file but if you're not using it to begin with, it's still easier to convert to userData.csv format.

I don't know about MWS but I suppose the only way it tracks cards is via decks as it's mostly a deck builder and not a inventory type of application.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: how to get a .mwsdeck to userData.csv?

Postby Luka » 05 Oct 2008, 07:11

Found a way. In MWS you can export a deck as a Comma Separated Value file. Won't work in deck edit mode tho, have to switch to the library one.

1) All the cards have to be in the sideboard
2) Set up the columns that way: Name, set, something preferably empty, sideboard
3) Export to a .csv file (Files >> Export)

It's not quite enough yet, as the result will look like this:

Code: Select all
"Dark Ritual";"A";"";"1"
So open a notepad or your favourite text editor, open the file you just exported and replace:
1) " by nothing
2) ; by ,
There's also some (1), (2), etc. added next to some names to take care of
3) (1) by nothing

Now open userData.csv in Nate's deck builder root directory. Make sure the later isn't running. And copy past the cards ... Careful the last line you generated with MWS don't have to be pasted.

It's done.

However there is a strange bug, no cards will show until you check the "Show only unique cards" option ... Wich is kind of weird, can someone tell me why?
Luka
 
Posts: 2
Joined: 04 Oct 2008, 20:20
Has thanked: 0 time
Been thanked: 0 time

Re: how to get a .mwsdeck to userData.csv?

Postby Snacko » 05 Oct 2008, 10:57

those with (1), (2) etc should be translated to
Forest,lea,1,10
Forest,lea,2,10
Plus you need to use the official 3 letter codes ex. A->LEA
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times


Return to Deck Builder and Excellent Rules Viewer

Who is online

Users browsing this forum: No registered users and 12 guests


Who is online

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

Login Form