PDA

View Full Version : Recorded drafts



bogycoins
07-17-2015, 08:27 AM
Some of you might know that I've created a page (http://hex.tcgbrowser.com:8080/livedraft?CODE) to monitor your draft in real time. While that page is mostly useful for rare drafters or for those who wants to complete their collection, it lacked the possibility of exporting the draft for reviewing purposes (other then printing the page ofc). So Entropy came with the idea of saving the drafts and linking them to third parties, which seemed like a really nice idea. I'm now happy to present you this tool which does exactly that. Saves your drafts, lets you review them and share with other people.

The tool can be found here: http://hex.tcgbrowser.com/tools/drafts

So how does it work?
First of all, you need to enable the API as described here (http://hex.tcgbrowser.com/tools/sync/).
Once this is done, everytime you play a draft, the the packs and picks saved in the database and a new entry will appear under your drafts history. It will look something like this:
3636

Click on an entry to start reviewing the selected draft. While in review mode, you can see the packs you got and also the drafted card. There are also two buttons which are used to select next/previous pack.

This pretty much sums it all. I hope you'll enjoy this tool and let me know if you have any suggestions or encounter any problems.

P.S. The saving component was finished and put on live a bit earlier, so there are already some drafts saved. Here's one http://hex.tcgbrowser.com/tools/drafts/#fgobqdpp

Edswor
07-17-2015, 08:46 AM
Great, thx.

Malicus
07-17-2015, 08:50 AM
This is sweet - it had even recorded my draft earlier so I was able to check it out :)

The only thing which would be cool but not necessary is if there was also say a X mark on the card you had taken the first time for picks 9-15.

Yoss
07-17-2015, 09:54 AM
If I've already set up to use your site, does this tool enable itself by default already or is there something else I need to do?

bogycoins
07-17-2015, 10:04 AM
If you have the API already set up, you don't need to do anything else. The server will pick up the events and save the data. Just make sure that TypesForwarded=All not only SaveDeck or Collection.

Chark
07-17-2015, 11:17 AM
Is there a way to browse drafts others did or do we have to know the specific unique URL for a user in order to view their drafts?

Edit: in case the above came across negative: Bogy's work with the API and the Browser freaking rocks and we are super happy to have such a passionate community member.

ziggarius
07-17-2015, 11:29 AM
I'm guessing the latter if it's designed similar to rest of the site. Hopefully that's the case or I may consider disable the draft portion of the API code.

bogycoins
07-17-2015, 12:12 PM
You need to know the unique URL. I may add something like a draft browser to display other people drafts if there is interest though. Of course it would be up for each one to allow their drafts to be visible or not.

ziggarius
07-17-2015, 12:14 PM
You need to know the unique URL. I may add something like a draft browser to display other people drafts if there is interest though. Of course it would be up for each one to allow their drafts to be visible or not.

I can get behind something like that. Especially if users could put name and a comment to the draft, sharing a crazy deck or multi-legendary on shard type thing.

EntropyBall
07-17-2015, 12:19 PM
Some of you might know that I've created a page (http://hex.tcgbrowser.com:8080/livedraft?CODE) to monitor your draft in real time. While that page is mostly useful for rare drafters or for those who wants to complete their collection, it lacked the possibility of exporting the draft for reviewing purposes (other then printing the page ofc). So Entropy came with the idea of saving the drafts and linking them to third parties, which seemed like a really nice idea. I'm now happy to present you this tool which does exactly that. Saves your drafts, lets you review them and share with other people.

The tool can be found here: http://hex.tcgbrowser.com/tools/drafts

So how does it work?
First of all, you need to enable the API as described here (http://hex.tcgbrowser.com/tools/sync/).
Once this is done, everytime you play a draft, the the packs and picks saved in the database and a new entry will appear under your drafts history. It will look something like this:
3636

Click on an entry to start reviewing the selected draft. While in review mode, you can see the packs you got and also the drafted card. There are also two buttons which are used to select next/previous pack.

This pretty much sums it all. I hope you'll enjoy this tool and let me know if you have any suggestions or encounter any problems.

P.S. The saving component was finished and put on live a bit earlier, so there are already some drafts saved. Here's one http://hex.tcgbrowser.com/tools/drafts/#fgobqdpp

So awesome. Now I can stop failing to FRAPS my drafts and just do this instead. You're the best, bogycoins.

Since I can't ever just be happy with what I have, I think it would be easier to use if it displayed the cards as images (like the draft window does), or at least had the option to do so.

Timlagor
07-17-2015, 05:27 PM
I love your monitoring page but it doesn't seem to be working at all at the moment and often hangs mid-draft for long periods (I gather it likes to sync the whole collection or something)

LNQ
07-18-2015, 01:55 AM
Awesome!

With regards to what Timlagor above is saying, I too encounter occasional hang ups on the live draft page. I've been wondering if it's a problem on my end, on the site's end or the API? Most of the time it works fine but usually at some point during the draft it doesn't update the picks for a couple of picks.

Ariathor
07-18-2015, 02:56 AM
This is pretty awesome and it opens up so many interesting possibilities. We could have draft statistics from anyone using the Hex API, like what cards are most likely to be first picked, what colors are the most popular, what cards are most likely to be picked up in picks 1-8 of each pack, what cards will most likely wheel etc. I'm glad to see the API get used more and more.

Thanks again bogycoins.

bogycoins
07-18-2015, 03:56 AM
Regarding the hanging problem. I know about it. It is caused by both the API and my server. When a draft finishes the game triggers the Collection event 45 times. On the other side, the sync tool only allows a single db connection at a time. So when that happens, there is a certain delay on processing all future requests until all these 45 requests are processed. This can take up to a couple of minutes or so in case of big collections. Hopefully this will be fixed in the next patch, as we really need only one Collection trigger.

deejay
07-18-2015, 01:10 PM
thanks for creating this - really very handy.

pjvedder
07-19-2015, 06:20 AM
I saw my first draft show up on the site today. The draft analyzer is awesome. Would you be able to add some kind of simple user input so that we could record what our finish was in the draft we're looking at (with also an option of a Split in the finals)? I'm assuming this could be useful for other people as well, but if not, feel free to ignore my request :)

Keep up the great work, bogycoins.. everything on your site is amazing, and I'm using it constantly.

Timlagor
07-25-2015, 09:06 AM
has the api enabling changed for this (there was a separate file mentioned)? Does it work at the moment?

bogycoins
07-25-2015, 10:39 AM
To enable draft saving you need to set the API to All or DraftPack|DraftCardPicked. However, as mentioned in other threads, there is a problem with API causing the game to stuck at the end of a match, so I suggest wait until the next patch before you enable it.