It is currently 30 May 2025, 16:15
   
Text Size

Complete: Deck set assignment deck converter

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: Complete: Deck set assignment deck converter

Postby mark » 17 May 2012, 11:38

thanks for the script. The only problem I have now: nearly all decks won't load anymore, because "the set was found, but the card wasn't".
I picked one card (Gorilla Chieftain) which is set to BOK but is and should be in 7ED. Please try with my card package (http://mark.tvk.rwth-aachen.de/software/forge/decks.zip) and tell me if this works for you.
mark
 
Posts: 138
Joined: 28 Dec 2011, 11:32
Has thanked: 6 times
Been thanked: 11 times

Re: Complete: Deck set assignment deck converter

Postby Xitax » 18 May 2012, 01:52

Aside from 2 decks with cards that don't match case with mtg-data.txt (case matching required so that things like "Stone Giant" aren't misidentified as "Flowstone Giant".

I think the problem is probably mtg-data.txt. Are you using the version distributed with the latest Forge? Please replace it with the one on the previous page in this thread.
Xitax
 
Posts: 918
Joined: 16 May 2010, 17:19
Has thanked: 183 times
Been thanked: 133 times

Re: Complete: Deck set assignment deck converter

Postby mark » 18 May 2012, 06:48

yes, I use the svn version of forge and it's datafiles. If I use the mtg-data from the posting above, the script prints "Could not find all cards in (all my decks)" and does nothing.
mark
 
Posts: 138
Joined: 28 Dec 2011, 11:32
Has thanked: 6 times
Been thanked: 11 times

Re: Complete: Deck set assignment deck converter

Postby Xitax » 19 May 2012, 01:25

Do you have setdata.txt in the folder too? When you first run decksetfix.exe does it say it read in a bunch of sets?
Xitax
 
Posts: 918
Joined: 16 May 2010, 17:19
Has thanked: 183 times
Been thanked: 133 times

Re: Complete: Deck set assignment deck converter

Postby mark » 19 May 2012, 20:53

yes, I use this setdata.txt too.
85 set codes read in.
285 deck files found.
mark
 
Posts: 138
Joined: 28 Dec 2011, 11:32
Has thanked: 6 times
Been thanked: 11 times

Re: Complete: Deck set assignment deck converter

Postby Xitax » 19 May 2012, 22:29

I'm sorry, but I'm a bit at a loss to help, can you please attach a zip of your entire decksetfix folder?
Thank you.
Xitax
 
Posts: 918
Joined: 16 May 2010, 17:19
Has thanked: 183 times
Been thanked: 133 times

Re: Complete: Deck set assignment deck converter

Postby Xitax » 12 Jun 2012, 04:41

New Forge friendly mtg-data.txt Forge 1.2.8.
Last edited by Xitax on 06 May 2013, 07:19, edited 1 time in total.
Xitax
 
Posts: 918
Joined: 16 May 2010, 17:19
Has thanked: 183 times
Been thanked: 133 times

Re: Complete: Deck set assignment deck converter

Postby Diogenes » 13 Jul 2012, 10:36

Sorry for reviving this thread for technical support, but I'm unable to run decksetfix.exe in 32-bit Vista (it gives me a "the version of this file is not compatible with the version of Windows you're running" error.)

If I'm not making some stupid mistake here, would it be possible for someone to upload the processed precon set?
Diogenes
 
Posts: 201
Joined: 12 Jul 2012, 00:54
Has thanked: 39 times
Been thanked: 23 times

Re: Complete: Deck set assignment deck converter

Postby Xitax » 13 Jul 2012, 19:59

I've had the same problem on another of my PC's running 32-bit Win7. I don't know why, but it's something to do with the compiler.

EDIT: By the way, the new sets require a new Forge-friendly mtg-data.txt.

Also I've made Planechase 2012 select only if there's no other choice, along with the portal sets.
Last edited by Xitax on 06 May 2013, 07:19, edited 2 times in total.
Xitax
 
Posts: 918
Joined: 16 May 2010, 17:19
Has thanked: 183 times
Been thanked: 133 times

Re: Complete: Deck set assignment deck converter

Postby Diogenes » 14 Jul 2012, 01:10

Thanks Xitax.

I can't get the new version you posted to run under Vista 32, but I'll try it on a different computer tonight and see what happens.

Thanks again for sharing this. :)

edit: Just to make sure I'm doing this right, I have decksetfix.exe and mtg-data.txt in their own folder, along with the decks I want to batch-fix. The program doesn't need anything else, does it?
Diogenes
 
Posts: 201
Joined: 12 Jul 2012, 00:54
Has thanked: 39 times
Been thanked: 23 times

Re: Complete: Deck set assignment deck converter

Postby Xitax » 16 Jul 2012, 00:03

Yes, you need setdata.txt, from the Forge/res/blockdata folder.
Xitax
 
Posts: 918
Joined: 16 May 2010, 17:19
Has thanked: 183 times
Been thanked: 133 times

Re: Complete: Deck set assignment deck converter

Postby Xitax » 08 Oct 2012, 02:37

New Forge-friendly mtgdata.txt
Last edited by Xitax on 06 May 2013, 07:18, edited 1 time in total.
Xitax
 
Posts: 918
Joined: 16 May 2010, 17:19
Has thanked: 183 times
Been thanked: 133 times

Re: Complete: Deck set assignment deck converter

Postby Xitax » 16 Feb 2013, 23:12

Updated the script to deal with sideboards as well as made some general improvements.

Archive includes all files you need, and also an updated mtg-data.txt with Gatecrash cards and forge 3-letter set assignment.
Last edited by Xitax on 06 May 2013, 07:18, edited 1 time in total.
Xitax
 
Posts: 918
Joined: 16 May 2010, 17:19
Has thanked: 183 times
Been thanked: 133 times

Re: Complete: Deck set assignment deck converter

Postby Xitax » 19 Apr 2013, 01:13

Updated to deal with split cards and some other things.

I've decided to maintain my own datafiles, so mtg-data and setdata are now no longer the same as the files that are used elsewhere.

For anyone new: This Perl script assigns sets to Forge deck files. It finds the earliest date at which all cards could have been printed and assigns each card the nearest printing to that date. Generally, it produces a realistic set assignment for any extended or limited deck, probably less realistic for decks whose cards span the whole range.
TO use: Unzip somewhere. Put deck files into the folder with it and run decksetfix. If you can't run it, you can run the Perl script (requires Perl, obv). Converted decks will be in /output.
Gotchas - Some errors I've seen crop up:
-extra blank lines at the end of deck files mess it up
-[main] and [sideboard] must be the last two sections in the deck file. I may fix at some point, but all the decks I've converted only a few were not that way.
-Case sensitivity: [main],[sideboard], and all card names are case sensitive. I've seen misspelled cards and [Main] in the past.
Last edited by Xitax on 06 May 2013, 07:18, edited 1 time in total.
Xitax
 
Posts: 918
Joined: 16 May 2010, 17:19
Has thanked: 183 times
Been thanked: 133 times

Re: Complete: Deck set assignment deck converter

Postby Xitax » 05 May 2013, 00:07

New data files for Dragon's Maze.
Last edited by Xitax on 11 May 2013, 20:22, edited 2 times in total.
Xitax
 
Posts: 918
Joined: 16 May 2010, 17:19
Has thanked: 183 times
Been thanked: 133 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 9 guests


Who is online

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

Login Form