Please can we standardize deck filenames
by ubeefx
Moderators: ubeefx, beholder, melvin, ShawnieBoy, Lodici, CCGHQ Admins
Please can we standardize deck filenames
by Lodici » 09 Mar 2014, 16:33
Here are four examples showing different ways a deck file might be named -
Utimately (and this may be a long ways down the line) I would like to be able to present a list of decks to the player using clear and colorful names, like "Teeth of the Predator", with the ability to sort and filter the decks list based on size, card type, card name, color, keywords etc, all of which can be extracted automatically from the contents of the deck file itself, not using some dodgy data embedded in the filename.
In the meantime, can we come up with a standard way of naming the deck files that is geared towards displaying the names in a more friendly and consistent way. Thanks.
- Theme-Deck_DPA_G_60_Teeth-of-the-Predator.dec
- UBmagarena.dec
- RW_Flash_40.dec
- Reanimation.dec
Utimately (and this may be a long ways down the line) I would like to be able to present a list of decks to the player using clear and colorful names, like "Teeth of the Predator", with the ability to sort and filter the decks list based on size, card type, card name, color, keywords etc, all of which can be extracted automatically from the contents of the deck file itself, not using some dodgy data embedded in the filename.
In the meantime, can we come up with a standard way of naming the deck files that is geared towards displaying the names in a more friendly and consistent way. Thanks.
Re: Please can we standardize deck filenames
by melvin » 10 Mar 2014, 01:31
From the point of view of deck selection, what would be a good naming convention?
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Please can we standardize deck filenames
by Lodici » 10 Mar 2014, 08:16
Something like "{name}[__{other stuff}].dec" would be good, where a double underscore is the delimiter, although it could be anything that is valid across all OSes and that will consistently isolate the filename. So...melvin wrote:From the point of view of deck selection, what would be a good naming convention?
- Theme-Deck_DPA_G_60_Teeth-of-the-Predator.dec
- UBmagarena.dec
- RW_Flash_40.dec
- Reanimation.dec
- Teeth-of-the-Predator__Theme-Deck_DPA_G_60.dec
- magarena__UB.dec
- Flash__RW_40.dec
- Reanimation.dec
Re: Please can we standardize deck filenames
by hong yie » 10 Mar 2014, 08:51
number of cards in deck is important, i only play against decks with 60 cards. sometime i also notice the deck creator, as there're several similar theme decks made by several creators with minor twists.
-
hong yie - Programmer
- Posts: 216
- Joined: 10 Mar 2013, 06:44
- Location: Jakarta
- Has thanked: 75 times
- Been thanked: 9 times
Re: Please can we standardize deck filenames
by Lodici » 10 Mar 2014, 09:06
Understood, but wouldn't you rather have the decks presented to you in a multi-column format similar to the card explorer? For example...hong yie wrote:number of cards in deck is important, i only play against decks with 60 cards. sometime i also notice the deck creator, as there're several similar theme decks made by several creators with minor twists.
- Code: Select all
| {deck name} | {deck size} | {deck color} | {author/theme} | {description}
Re: Please can we standardize deck filenames
by Lodici » 10 Mar 2014, 09:15
The filename format should only contain info that cannot be determined from the contents of the file, so you might also want to add "{author}" or "{theme}" to the filename since this is not available anywhere else AFAIK. It would be even better if you could add these fields to the content of the deck file but I am not sure whether the deck file format is following some sort of standard which additional properties/fields would break.
Re: Please can we standardize deck filenames
by jerichopumpkin » 10 Mar 2014, 10:43
that sounds really good to me!
- jerichopumpkin
- Posts: 212
- Joined: 12 Sep 2013, 11:21
- Has thanked: 19 times
- Been thanked: 13 times
Re: Please can we standardize deck filenames
by ember hauler » 11 Mar 2014, 05:35
This idea is so cool! Would be very nice to have deck selector like this.Lodici wrote:wouldn't you rather have the decks presented to you in a multi-column format similar to the card explorer?
Here are more ideas:
1. To check and display if the deck is legal in vintage, legacy, modern etc. Would be helpful when choosing the deck to play against.
2. To display deck rating from Project Firemind, if the deck is presented there. This great service is constantly testing decks against each other, so the relative strength is measured. And what is more important, the decks are played by Magarena AI, so human player would know what to expect from a particular deck.
- ember hauler
- Posts: 79
- Joined: 14 Aug 2013, 08:13
- Has thanked: 27 times
- Been thanked: 14 times
Re: Please can we standardize deck filenames
by Lodici » 11 Mar 2014, 08:32
I am not sure whether we have the information to determine this. Perhaps @shawnieboy or @melvin will know.ember hauler wrote:1. To check and display if the deck is legal in vintage, legacy, modern etc. Would be helpful when choosing the deck to play against.
I think this would be awesome and a real feather in the cap for Magarena. If the Firemind service provides an API then it should be fairly straightforward.ember hauler wrote:2. To display deck rating from Project Firemind, if the deck is presented there. This great service is constantly testing decks against each other, so the relative strength is measured. And what is more important, the decks are played by Magarena AI, so human player would know what to expect from a particular deck.
It would also be great if you could categorize decks as "beginner", "advanced", "expert" etc based on how difficult they are to play in terms of strategy, mechanics, effectiveness against AI, etc. Probably not feasible though.
Re: Please can we standardize deck filenames
by ember hauler » 11 Mar 2014, 09:05
Project Firefind has this feature, perhaps we could use the same or similar code.Lodici wrote:I am not sure whether we have the information to determine this. Perhaps @shawnieboy or @melvin will know.ember hauler wrote:1. To check and display if the deck is legal in vintage, legacy, modern etc. Would be helpful when choosing the deck to play against.
We could ask Mike about this, he is the guy behind Firemind. He is helpful and responsive.Lodici wrote:I think this would be awesome and a real feather in the cap for Magarena. If the Firemind service provides an API then it should be fairly straightforward.ember hauler wrote:2. To display deck rating from Project Firemind, if the deck is presented there. This great service is constantly testing decks against each other, so the relative strength is measured. And what is more important, the decks are played by Magarena AI, so human player would know what to expect from a particular deck.
Right, based on the score the deck gets in Firemind it's fairly easy to categorize them.Lodici wrote:It would also be great if you could categorize decks as "beginner", "advanced", "expert" etc based on how difficult they are to play in terms of strategy, mechanics, effectiveness against AI, etc. Probably not feasible though.
But the potential of Magarena + Firemind is HUGE.
Based on stats of several hundred, if not thousand games, one could get not only the relative power of the paricular deck (i.e. how often the deck wins), but also the speed of the deck (i.e. how many turns it usually takes for this deck to win), or the comparison of this deck and other decks (for example, this deck usually defeats this and this, but beaten by this and this).
So based on the stats from Firemind the player of Magarena could choose the right deck to play against, to get more fun!
We could start from simple things like universal deck names between to programs, and then progress toward some interfaces, interactions and APIs. Firemind is a web app, this should be doable.
- ember hauler
- Posts: 79
- Joined: 14 Aug 2013, 08:13
- Has thanked: 27 times
- Been thanked: 14 times
Re: Please can we standardize deck filenames
by Huggybaby » 11 Mar 2014, 15:15
IIRC MWS has a way where you can write all the notes you want regarding a deck. It's a cool feature but I only ever got one or two people to use it.
And two thumbs WAY up about renaming the decks.
And two thumbs WAY up about renaming the decks.
-
Huggybaby - Administrator
- Posts: 3207
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 701 times
- Been thanked: 594 times
Re: Please can we standardize deck filenames
by ShawnieBoy » 11 Mar 2014, 17:06
Project Firemind uses an API from Tappped Out - However it's not perfect as it doesn't implement Restricted cards, only banned (So 4 x All the different Moxes is fine in a Vintage deck!!)ember hauler wrote:Project Firefind has this feature, perhaps we could use the same or similar code.Lodici wrote:I am not sure whether we have the information to determine this. Perhaps @shawnieboy or @melvin will know.ember hauler wrote:1. To check and display if the deck is legal in vintage, legacy, modern etc. Would be helpful when choosing the deck to play against.
Making our own version of the banned/restricted lists for Vintage and Legacy should be simple enough though, as they're fairly small.
We'd need something fairly major for other deck legalities though, we don't assign cards to sets, so we'd only have card names to go by. I really don't fancy assembling lists of each card in each set >.< There must be a simpler way.
-
ShawnieBoy - Programmer
- Posts: 601
- Joined: 02 Apr 2012, 22:42
- Location: UK
- Has thanked: 80 times
- Been thanked: 50 times
Re: Please can we standardize deck filenames
by Lodici » 11 Mar 2014, 19:49
Thanks for the link and explanation.ShawnieBoy wrote:Project Firemind uses an API from Tappped Out...
Could we design something along the same lines as card scripts so that we don't have to? Leave it to the excellent and ever-growing Magarena user base to create the lists as and when required?ShawnieBoy wrote:Making our own version of the banned/restricted lists for Vintage and Legacy should be simple enough though, as they're fairly small....I really don't fancy assembling lists of each card in each set >.< There must be a simpler way.
Re: Please can we standardize deck filenames
by ShawnieBoy » 11 Mar 2014, 22:56
It would depend which format would be most helpful for you.
At its simplest, you could have a set-named txt file per set, with a list of all the names of cards in that set. Each format would then be a txt file with a list of all legal sets by name.
These lists could then also be used as filters in the card explorer to filter by set.
I'd love a system that would also list cards that aren't yet implemented, and have an in-game script submission
At its simplest, you could have a set-named txt file per set, with a list of all the names of cards in that set. Each format would then be a txt file with a list of all legal sets by name.
These lists could then also be used as filters in the card explorer to filter by set.
I'd love a system that would also list cards that aren't yet implemented, and have an in-game script submission
-
ShawnieBoy - Programmer
- Posts: 601
- Joined: 02 Apr 2012, 22:42
- Location: UK
- Has thanked: 80 times
- Been thanked: 50 times
Re: Please can we standardize deck filenames
by Lodici » 12 Mar 2014, 06:04
The simpler the better! I envisage a new directory, "sets", which will contain the txt files you describe. When Magarena starts up (or maybe just on demand) it will parse these files into an internal object structure so that it can easily be used where required - for example, as a filter in the card explorer. The idea being that anyone who feels so inclined can contribute new sets without requiring a rebuild of the source code. It seems pretty straightforward - we just need to design the format for the sets file. Any ideas or examples welcome!ShawnieBoy wrote:It would depend which format would be most helpful for you.
At its simplest, you could have a set-named txt file per set, with a list of all the names of cards in that set. Each format would then be a txt file with a list of all legal sets by name.
It would be simple enough to display the "unimplementable.tsv" file in game if that would be any help.ShawnieBoy wrote:I'd love a system that would also list cards that aren't yet implemented,...
If you mean some sort of script editor then that sounds like a lot of work!ShawnieBoy wrote:...and have an in-game script submission
19 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 67 guests