Page 1 of 3

Cardset Editor

PostPosted: 15 Jan 2009, 04:42
by Rob Cashwalker
First beta release of my much anticipated MTGForge Cardset Editor.

DO NOT Download here
http://minstrelplayers.org/ForgeCSE/Set ... Editor.zip

Features include:
- Primary function is to modify card rarity and frequency for sealed and draft mode.
- Attempts to display the card picture, if already downloaded by MTGForge.
- Allows user to modify the card-pictures.txt URL for any card.
- A search button will launch a search in the default browser, based on a configured search URL (gatherer is default)
- The card text can be modified.. just in case you notice a typo... it was a "why-not?" feature....
- All cardset data can be saved as individual profiles... want to play Time Spiral limited? No problem, just load up a profile with Time Spiral cards being the only ones with rarities defined.... This will become more useful when we can actually add the majority of cards in a given block... without having to exclude many of them because the AI can't deal with them... but whatever.

Bugs:
!! Clicking on the grid inadvertently causes the checkbox click event to fire, which changed the card rarities behind the scenes. What's worse, is the wrong card gets changed.


Planned features:
- Track cards from previous session, to detect card additions between versions.
- Add and Delete cards entirely.
- Integrate with my other project, the mini text card picture generator. (I'm doing this first, because it forces me to revise the cards.txt interpreter to pull the additional properties for other features)
- Card picture downloader.
+ Resizable window.
+ Keyboard navigation in grid.
+ Additional card property columns / filtering
+ card list filtering

How to use:
- Browse to your MTG Folder (Location will be remembered between sessions)
- Change some data
- - Double-click the Card-Picture URL label to pop up an input box for the search URL (URL will be remembered between sessions)
- - Double-click the Card text textbox to edit it
- Type a profile name
- Save the profile
- Save the data

All prior files are renamed, so all changes can be reverted easily.

Visual Basic 6.0 source code here:
http://minstrelplayers.org/ForgeCSE/Sou ... Editor.zip

Re: Cardset Editor

PostPosted: 15 Jan 2009, 04:47
by DennisBergkamp
Rob,

Hey this looks awesome! I'm gonna try this out right away.

Re: Cardset Editor

PostPosted: 15 Jan 2009, 04:54
by GandoTheBard
Ah the much anticipated program arrives! *downloads with glee* Ill post comments tommorow.

Re: Cardset Editor

PostPosted: 15 Jan 2009, 16:59
by DennisBergkamp
Rob,

This program is awesome. Cards that appear in red don't have pictures associated with them in card-pictures.txt I take it?
Anyway, great job =D>

Re: Cardset Editor

PostPosted: 15 Jan 2009, 19:30
by Rob Cashwalker
Oh.. yeah, forgot about mentioning that feature....

Yes, cards marked in red are missing a URL. Klaas, Elf Friend, for example.

Re: Cardset Editor

PostPosted: 15 Jan 2009, 19:44
by mtgrares
Sounds great, thanks.

Re: Cardset Editor

PostPosted: 15 Jan 2009, 20:21
by Rob Cashwalker
Ohh.. I like being stuck at the top!

Re: Cardset Editor

PostPosted: 15 Jan 2009, 22:08
by GandoTheBard
Ok first comment is...I want to be able to clear large swaths of card rarities at once...is this possible in anyway? Also Is it possible to give it about say 3x the real estate it occupies now. I am not fond of having to super scroll through tiny clients. Even 2x would be ok. particularly also it needs to be wider by a bit so that names do not get squished.

Sol'kanar Swamp King was also marked in red...? Seems like it should have a pic :P
Another thing is ...would it be possible to specify where on the user's machine to find the card art?


Again Rob, thank you for the effort. :D Even as is it should make sorting the rarities much easier...and the cards.txt editing capability is a big ++.

Re: Cardset Editor

PostPosted: 16 Jan 2009, 17:43
by Rob Cashwalker
I loaded up the latest release, and figured out why the top 20 cards weren't recognized as having URLs - (including Sol'Kanar) the lines weren't terminated by Carriage Return/Line Feed. They must have been edited on a Mac or other Linux-based system with Line Feeds only. MTGForge doesn't seem to have a problem with it, it downloaded everything anyway.

VB's Line Input statement uses either just the CR or the CR/LF sequence. I wish it would also accept just line feeds.

The original files are all CR/LF line-terminated, and I think future updates need to stick to this standard.

Re: Cardset Editor

PostPosted: 16 Jan 2009, 17:50
by DennisBergkamp
Yeah Chris H. edits them on a mac. Whenever I release a new beta, I do a find/replace and change all of them to CR/LF.

Re: Cardset Editor

PostPosted: 16 Jan 2009, 19:00
by GandoTheBard
Browse to your MTG Folder (Location will be remembered between sessions) this does not seem to be the case...I will post again if I am in error.

Ok it turns out I am wrong however I noticed something odd. The load profile function turns off the redness. Not sure if this is intended. Also the redness stays normally if there is no url listed in the url box...but the image is there. It seems to me to be desirable for it to not be red if you already have the image.

I wish there was a way to indicate newer cards without the redness because that doesn't really help when the card does have a url. Me being silly I guess.

Re: Cardset Editor

PostPosted: 20 Jan 2009, 21:15
by mtgrares
Creating a new set takes alot of work, MTG Forge has too many cards lol. It would be cool if your program broke down the card rarity by color. How many green, white, red, blue, black cards are common, uncommon, and rare? I know the output would just be a table of numbers, but it would be useful. That way I could make a balanced, small 150 card set. (The idea is to make a balanced small set and then add more cards to it.)

And feel free to post your new set of cards, post the common.txt, uncommon.txt, and rare.txt files so people can easily try it out.

Re: Cardset Editor

PostPosted: 20 Jan 2009, 21:50
by Rob Cashwalker
Yes, it would be cool to break it down better. As it is now, the cards are only represented as the plain text in cards.txt, which I'm finding as I try to integrate the card picture generator isn't good enough. The card picture generator actually interpreted the cards.txt enough to extract the name, mana cost, type and p/t. I hadn't included that in the editor, but I will.

Re: Cardset Editor

PostPosted: 21 Jan 2009, 02:50
by GandoTheBard
One thing that really needs to be done is to add a column of checkboxes to include or disinclude a card. As it is you have to type in "1" or "0" for each card you want to change. A simple toggle is better and less work intensive. The key functionality of this program should be to make it easier to create rarity files. :)

Another thing is that the Rarity columns need to have radio buttons not check boxes since the Rarity is supposed to be boolean. (Rare is not common or uncommon etc...)

Re: Cardset Editor

PostPosted: 21 Jan 2009, 03:00
by Rob Cashwalker
I originally had something to that effect. However it didn't make a lot of sense to me, because it's really just a matter of unchecking the rarity - the count only has meaning if a rarity is selected. And there's nothing stopping you from checking off more than one rarity.