Project Firemind is back
by ubeefx
Moderators: ubeefx, beholder, melvin, ShawnieBoy, Lodici, CCGHQ Admins
Re: Project Firemind is back
by Lodici » 08 Oct 2014, 06:36
I have updated the decks selection screen to include the decks contained in the json file from http://www.firemind.ch/decks/top.json (see screen shot). However there are a couple of issues which is preventing me from releasing -mike wrote:The JSON export is live now and can be accessed at: http://www.firemind.ch/decks/top.json
I grouped the ratings by format (standard, modern, etc.) so the context of the rating is correct and it actually means something.
- I cannot parse the url directly or download "top.json" to a local file from java. I have tried numerous ways to read/download but all I ever get is
- Code: Select all
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.2.1</center>
</body>
</html>
- I used the Jackson JSON Processor to do the parsing but I would prefer to use the "json-20140107.jar" you introduced so that we do not have to distribute another library. Could you provide a link to documentation on using the jar. Thanks.
Re: Project Firemind is back
by mike » 08 Oct 2014, 07:13
You get the 301 Moved Permanently because you're using http instead of https. All http requests are redirected to https.
If you use https://www.firemind.ch/decks/top.json instead it should work fine.
If you use https://www.firemind.ch/decks/top.json instead it should work fine.
Re: Project Firemind is back
by Lodici » 08 Oct 2014, 08:33
Thanks - that worked.mike wrote:You get the 301 Moved Permanently because you're using http instead of https. All http requests are redirected to https.
If you use https://www.firemind.ch/decks/top.json instead it should work fine.
Re: Project Firemind is back
by Lodici » 08 Oct 2014, 08:43
One other thing, in Magarena the deck file name is the deck name therefore the "Exalt\Infect\Lifelink" deck in the json feed is a very invalid filename. Magarena will just ignore these for now.
Re: Project Firemind is back
by mike » 08 Oct 2014, 08:50
While I could escape the name on the server side I don't think that is something an API should be doing. I strongly believe that this kind of functionality is the client's responsibility and should be implemented there.One other thing, in Magarena the deck file name is the deck name therefore the "Exalt\Infect\Lifelink" deck in the json feed is a very invalid filename. Magarena will just ignore these for now.
It will be solved on its own though once the new firemind version is online which separates decks and deck lists and will no longer return the user given name and instead the archetype of the deck for this type of view. Might take a while though since migration is rather difficult.
Re: Project Firemind is back
by Lodici » 08 Oct 2014, 09:31
Yes, I agree - my point being that until we get around to overhauling deck management in Magarena it is preferable to ignore invalid deck names so that the Firemind top decks functionality can still be released.mike wrote:While I could escape the name on the server side I don't think that is something an API should be doing. I strongly believe that this kind of functionality is the client's responsibility and should be implemented there
Re: Project Firemind is back
by Lodici » 10 Oct 2014, 07:38
Since yesterday, "https://www.firemind.ch/decks/top.json" is returning
- Code: Select all
{
"status": "500",
"error": "Internal Server Error"
}
Re: Project Firemind is back
by mike » 10 Oct 2014, 08:37
Thanks for reporting it. I deployed a pretty major update yesterday and am still working out some kinks. top.json is working again but the names might still be a little strange because I've not yet been able to add all the proper archetypes.
Re: Project Firemind is back
by Lodici » 10 Oct 2014, 10:58
I have just committed the Firemind top decks code so it should appear in the next build. You can also now select firemind decks from the duel setup screen as well.
It is designed to only download the json feed once for any given day and occurs when the Firemind Top Decks group is selected in the deck selection screen - there will be a short delay why it downloads the file. It stores the json file ("topdecks.json") in a new "firemind" data folder (which I recommend is used for all firemind related data). It creates the decks in a new "firemind" sub-directory in "decks" and this is cleared each time the json feed is updated so it will only ever show the latest top decks. It should be fairly forgiving - if the download fails then it will create an empty json file (so no further download attempts will be made for the current day) and will simply use the existing decks. You can always manually force a download by removing the "topdecks.json" file. Decks with names that would be invalid filenames are ignored.
It is designed to only download the json feed once for any given day and occurs when the Firemind Top Decks group is selected in the deck selection screen - there will be a short delay why it downloads the file. It stores the json file ("topdecks.json") in a new "firemind" data folder (which I recommend is used for all firemind related data). It creates the decks in a new "firemind" sub-directory in "decks" and this is cleared each time the json feed is updated so it will only ever show the latest top decks. It should be fairly forgiving - if the download fails then it will create an empty json file (so no further download attempts will be made for the current day) and will simply use the existing decks. You can always manually force a download by removing the "topdecks.json" file. Decks with names that would be invalid filenames are ignored.
Re: Project Firemind is back
by PalladiaMors » 26 Oct 2014, 19:01
This month's cards with a 4+ rating:
White: Opalescence, Soulcatchers' Aerie, Sacred Mesa
Blue: March of the Machines, Cephalid Illusionist
Black: Abyssal Persecutor, Endless Scream, Necroskitter, Rancid Earth, Dawn of the Dead, Soulshriek
Green: Wellwisher, Bearscape
Red: Spikeshot Goblin, Raid Bombardment
Multicolored: Augury Adept
Artifact: Chalice of the Void, Time Sieve, Molten-Tail Masticore
By type: 2 noncreature artifacts, 7 creatures, 8 enchantments, 1 instant, 1 sorcery
Not quite as good as last month but there's some fun new cards and this time the pack was less creature intensive. I did notice that sometimes the gatherer rating doesn't seem to update successfully, though.
White: Opalescence, Soulcatchers' Aerie, Sacred Mesa
Blue: March of the Machines, Cephalid Illusionist
Black: Abyssal Persecutor, Endless Scream, Necroskitter, Rancid Earth, Dawn of the Dead, Soulshriek
Green: Wellwisher, Bearscape
Red: Spikeshot Goblin, Raid Bombardment
Multicolored: Augury Adept
Artifact: Chalice of the Void, Time Sieve, Molten-Tail Masticore
By type: 2 noncreature artifacts, 7 creatures, 8 enchantments, 1 instant, 1 sorcery
Not quite as good as last month but there's some fun new cards and this time the pack was less creature intensive. I did notice that sometimes the gatherer rating doesn't seem to update successfully, though.
- PalladiaMors
- Posts: 343
- Joined: 12 Jul 2014, 17:40
- Has thanked: 36 times
- Been thanked: 22 times
Re: Project Firemind is back
by jerichopumpkin » 24 Nov 2014, 19:43
I just noticed that my decks got all renamed, and I don't understand how. Let me be clear, I don't care about the rename, what I want to know is only how the name was chosen, since they seem, well, weird. My mono white knight deck is now a soul sisters, that is quite misleading.
- jerichopumpkin
- Posts: 212
- Joined: 12 Sep 2013, 11:21
- Has thanked: 19 times
- Been thanked: 13 times
Re: Project Firemind is back
by mike » 24 Nov 2014, 20:08
I while back I split decks into decks and deck lists. This basically means that if two users enter the same deck it gets linked to the same deck list (and thus profits from the duels run by those decks). In a second step I had to find identifier for those decks which is why I introduced archetypes (e.g. https://www.firemind.ch/archetypes/13).
A deck gets placed into the archetype with which it shares to most cards (taking into account importance of cards for the archetype). So you see, your decks didn't get renamed, its just the deck list that is named after its archetype to make it easier for people to recognize what kind of deck it is.
Obviously the current state is far from perfect since so many archetypes are missing or decks that do not fit a specific archetype get placed in something misleading. Not sure how to address this problem yet (user submitted archetypes? General archetypes by color like "mono black"?). Let me know if anyone has have a good solution for this.
Hope this clears things up. Btw, your decks should still be accessible by the name that you gave them through the "My Decks" view and on the right-hand side of the deck list view like this https://www.firemind.ch/deck_lists/537
A deck gets placed into the archetype with which it shares to most cards (taking into account importance of cards for the archetype). So you see, your decks didn't get renamed, its just the deck list that is named after its archetype to make it easier for people to recognize what kind of deck it is.
Obviously the current state is far from perfect since so many archetypes are missing or decks that do not fit a specific archetype get placed in something misleading. Not sure how to address this problem yet (user submitted archetypes? General archetypes by color like "mono black"?). Let me know if anyone has have a good solution for this.
Hope this clears things up. Btw, your decks should still be accessible by the name that you gave them through the "My Decks" view and on the right-hand side of the deck list view like this https://www.firemind.ch/deck_lists/537
Re: Project Firemind is back
by ShawnieBoy » 25 Nov 2014, 11:49
At a quick glance, it looks like Soul Sisters has too much relevance put on Plains - What does Mono-White look like? Can't find any decks...mike wrote:I while back I split decks into decks and deck lists. This basically means that if two users enter the same deck it gets linked to the same deck list (and thus profits from the duels run by those decks). In a second step I had to find identifier for those decks which is why I introduced archetypes (e.g. https://www.firemind.ch/archetypes/13).
A deck gets placed into the archetype with which it shares to most cards (taking into account importance of cards for the archetype). So you see, your decks didn't get renamed, its just the deck list that is named after its archetype to make it easier for people to recognize what kind of deck it is.
Obviously the current state is far from perfect since so many archetypes are missing or decks that do not fit a specific archetype get placed in something misleading. Not sure how to address this problem yet (user submitted archetypes? General archetypes by color like "mono black"?). Let me know if anyone has have a good solution for this.
Hope this clears things up. Btw, your decks should still be accessible by the name that you gave them through the "My Decks" view and on the right-hand side of the deck list view like this https://www.firemind.ch/deck_lists/537
-
ShawnieBoy - Programmer
- Posts: 601
- Joined: 02 Apr 2012, 22:42
- Location: UK
- Has thanked: 80 times
- Been thanked: 50 times
Re: Project Firemind is back
by mike » 25 Nov 2014, 12:13
There is no mono white (yet). Here is a page showing all archetypes in modern https://www.firemind.ch/formats/modern/archetypes
Thanks for pointing out the Plains thing. I fixed that.
Thanks for pointing out the Plains thing. I fixed that.
Re: Project Firemind is back
by PalladiaMors » 25 Nov 2014, 14:21
Personally I'd have to say that I'm not a fan of the "archetypes update" in Firemind. I can see why Mike did it - for example, I remember someone, either trolling or by accident, copy-pasted a second version of the highest rated Modern deck before the change, which was going to mess up the metagame. In theory, the archetypes were a very nice feature. However, in my opinion it ended up making the site a bit confusing, partly because decks are getting identified as archetypes they don't have anything to do with. Also, it seems to have changed the deck ratings a lot, which I have a hard time understanding since the deck pool basically remained the same, although that's actually pretty irrelevant. In the end, what Firemind really needs is more players. Perhaps when the card percentage increases a bit further in the future we could try advertising it a bit, I'd be willing to write a review on mtgsalvation, or perhaps Mike could do that if he prefers. Dunno, just throwing out ideas.
- PalladiaMors
- Posts: 343
- Joined: 12 Jul 2014, 17:40
- Has thanked: 36 times
- Been thanked: 22 times
Who is online
Users browsing this forum: No registered users and 20 guests