WIP: Quest deck cosmetic revamp of basic lands
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
25 posts
• Page 2 of 2 • 1, 2
Re: WIP: Quest deck cosmetic revamp of basic lands
by Agetian » 12 Feb 2012, 14:44
Alrighty, awesome! Thanks guys! Let me know if any problems show up, I'll keep playtesting myself as well (Forge launched up smoothly so there's nothing game-breaking
)

- Agetian
- Programmer
- Posts: 3489
- Joined: 14 Mar 2011, 05:58
- Has thanked: 684 times
- Been thanked: 572 times
Re: WIP: Quest deck cosmetic revamp of basic lands
by Doublestrike » 13 Feb 2012, 00:15
Welcome to the project Agetian, thanks for your contributions! I'm looking forward to playing with a variety of lands 

---
A joke is a very serious thing.
A joke is a very serious thing.
-
Doublestrike - UI Programmer
- Posts: 715
- Joined: 08 Aug 2011, 09:07
- Location: Bali
- Has thanked: 183 times
- Been thanked: 161 times
Re: WIP: Quest deck cosmetic revamp of basic lands
by Agetian » 13 Feb 2012, 02:52
Thanks!Doublestrike wrote:Welcome to the project Agetian, thanks for your contributions! I'm looking forward to playing with a variety of lands



- Agetian
- Programmer
- Posts: 3489
- Joined: 14 Mar 2011, 05:58
- Has thanked: 684 times
- Been thanked: 572 times
Re: WIP: Quest deck cosmetic revamp of basic lands
by Xitax » 03 Mar 2012, 02:33
Any chance that you can package the app and let us use it on our constructed decks? I have over 2000 decks from gos' sharing and would enjoy seeing some variety.
Re: WIP: Quest deck cosmetic revamp of basic lands
by Agetian » 03 Mar 2012, 08:25
I'm planning to do that, but the app needs some polish and fixing (it might crash in some cases)... I will publish it here as soon as it's in universally workable state.
- Agetian
- Programmer
- Posts: 3489
- Joined: 14 Mar 2011, 05:58
- Has thanked: 684 times
- Been thanked: 572 times
Re: WIP: Quest deck cosmetic revamp of basic lands
by Agetian » 04 Mar 2012, 14:16
OK guys, here's the tool I've used in order to add set information to the decks. Remember: it's a rough, console program - use at your own risk! I've successfully converted over 500 deck files using this program and did not experience any problems, but I can't guarantee that you won't come across any problems at all. Also, make sure you carefully read the instructions below in order to make the tool work.
In order to make the tool work, you need to do the following:
1) Unpack the tool into a separate folder, preferably a completely new folder so it won't accidentally break anything in any other folders.
There should be only one file (fixdeck.exe) and one empty folder (Updated) where you unpack it.
2) Copy the file mtg-data.txt from your Forge installation (it's in the "res" folder) into the same folder where you unpacked this tool.
3) Copy the deck file you want to convert into the folder with the tool. Then, launch the command line (anything will do - Windows cmd, Cygwin/MSYS bash, etc.), navigate to the folder with fixdeck, and type the following:
fixdeck deck_file_name
e.g.:
fixdeck MyDeck1.dck
You should get some output from the program indicating that your deck has been processed. If everything went well, you will have a copy of the file MyDeck1.dck in the "Updated" folder now (with the set information added to the lands).
Important notes about the program:
1) If the program crashes, make sure you have mtg-data.txt in the same folder as fixdeck.exe (see above). If it still crashes after that, it might just as well be a bug with fixdeck. If you're sure you're doing everything right and fixdeck still crashes, please send me the deck you would like to update with set info and when I have time, I'll see why it won't do it for you.
2) There's no way to mass-process multiple decks with fixdeck.exe, there's no way to do e.g. "fixdeck *.dck" - it's not going to work. However, you can (and probably should) write a batch script (e.g. a Cygwin bash shell script) to process multiple dck files in your directory if you plan to process hundreds/thousands of decks this way. I would have posted mine, but unfortunately I lost it somewhere...
3) This program was intended to work as a command line tool and only works as a command line tool. Dragging-and-dropping a dck file onto fixdeck.exe, for instance, unfortunately won't work.
It might look like a quick and dirty tool, and it certainly is one and was meant to be one. However, it does its job pretty well when used properly. Sorry if the potential usage difficulty might come as a disappointment to someone, especially someone who is not a command line man...
Hope it's still useful to someone!
In order to make the tool work, you need to do the following:
1) Unpack the tool into a separate folder, preferably a completely new folder so it won't accidentally break anything in any other folders.

2) Copy the file mtg-data.txt from your Forge installation (it's in the "res" folder) into the same folder where you unpacked this tool.
3) Copy the deck file you want to convert into the folder with the tool. Then, launch the command line (anything will do - Windows cmd, Cygwin/MSYS bash, etc.), navigate to the folder with fixdeck, and type the following:
fixdeck deck_file_name
e.g.:
fixdeck MyDeck1.dck
You should get some output from the program indicating that your deck has been processed. If everything went well, you will have a copy of the file MyDeck1.dck in the "Updated" folder now (with the set information added to the lands).
Important notes about the program:
1) If the program crashes, make sure you have mtg-data.txt in the same folder as fixdeck.exe (see above). If it still crashes after that, it might just as well be a bug with fixdeck. If you're sure you're doing everything right and fixdeck still crashes, please send me the deck you would like to update with set info and when I have time, I'll see why it won't do it for you.
2) There's no way to mass-process multiple decks with fixdeck.exe, there's no way to do e.g. "fixdeck *.dck" - it's not going to work. However, you can (and probably should) write a batch script (e.g. a Cygwin bash shell script) to process multiple dck files in your directory if you plan to process hundreds/thousands of decks this way. I would have posted mine, but unfortunately I lost it somewhere...
3) This program was intended to work as a command line tool and only works as a command line tool. Dragging-and-dropping a dck file onto fixdeck.exe, for instance, unfortunately won't work.
It might look like a quick and dirty tool, and it certainly is one and was meant to be one. However, it does its job pretty well when used properly. Sorry if the potential usage difficulty might come as a disappointment to someone, especially someone who is not a command line man...
Hope it's still useful to someone!

- Attachments
-
fixdeck_by_Agetian.zip
- (6.15 KiB) Downloaded 219 times
- Agetian
- Programmer
- Posts: 3489
- Joined: 14 Mar 2011, 05:58
- Has thanked: 684 times
- Been thanked: 572 times
Re: WIP: Quest deck cosmetic revamp of basic lands
by Xitax » 11 Mar 2012, 04:56
I can see the potential here - suppose you were able to also set the set of all the cards in a deck by determining which era all the cards belonged to. I can even imagine exactly how the logic to determine which standard, extended, or vintage encompassed all the cards in a deck would work. That would be awesome, but my programming skills are no good at parsing text files.
Would you be willing to share the source of the fixdeck and let me fool around with it? I have a feeling you're already doing most of the things that you'd need to do in order to accomplish what I'm thinking about.
Would you be willing to share the source of the fixdeck and let me fool around with it? I have a feeling you're already doing most of the things that you'd need to do in order to accomplish what I'm thinking about.
Re: WIP: Quest deck cosmetic revamp of basic lands
by Agetian » 14 Mar 2012, 09:47
Sure thing, sounds good! Please PM me your e-mail where I can send the files. Keep in mind though that the source is quite a bit of a mess and it's in C.Xitax wrote:I can see the potential here - suppose you were able to also set the set of all the cards in a deck by determining which era all the cards belonged to. I can even imagine exactly how the logic to determine which standard, extended, or vintage encompassed all the cards in a deck would work. That would be awesome, but my programming skills are no good at parsing text files.
Would you be willing to share the source of the fixdeck and let me fool around with it? I have a feeling you're already doing most of the things that you'd need to do in order to accomplish what I'm thinking about.

- Agetian
- Programmer
- Posts: 3489
- Joined: 14 Mar 2011, 05:58
- Has thanked: 684 times
- Been thanked: 572 times
Re: WIP: Quest deck cosmetic revamp of basic lands
by Xitax » 15 Mar 2012, 05:14
Thanks! However as I was inspired by your efforts, I went the whole ten yards and made my own converter.
Re: WIP: Quest deck cosmetic revamp of basic lands
by Agetian » 15 Mar 2012, 06:55
That's awesome! Glad to hear it worked out well for you! Let me know if you need any advice about algorithms and stuff.Xitax wrote:Thanks! However as I was inspired by your efforts, I went the whole ten yards and made my own converter.

- Agetian
- Programmer
- Posts: 3489
- Joined: 14 Mar 2011, 05:58
- Has thanked: 684 times
- Been thanked: 572 times
25 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 35 guests