ko-vasilev / Hearthstone-Collection-Tracker

A plugin for Hearthstone Deck Tracker that allows to keep track on pack sets
75 stars 48 forks source link

Auto-Import from collection or hearthhead.com #3

Open eltismerino opened 9 years ago

eltismerino commented 9 years ago

Instead of having to manually add all collected cards to your collection tracker, wouldn't it be far more convenient to being able to import them from the game itself?

Also I keep track of my collection using hearthhead.com - how about an import feature for that?

Thank you!

ko-vasilev commented 9 years ago

Since it is the first release, it lacks a lot of features :) I'll try implement importing from the Hearthstone itself. Also thanks for the propose of importing from hearthhead. I'll look what can I do with it.

NLZ commented 9 years ago

How about when you export a deck to hearthstone, it updates your collection based on the missing cards list?

edusperoni commented 9 years ago

I've written a code in C++ that scans the whole collection any interest in integrating it with the current code? I can export a json or something and you import it.

wilerson commented 9 years ago

Another option would for importing would be to import from http://www.carddust.com/ . As the collection is stored at the URL at that website, it'd be easier to import

Kiougar commented 9 years ago

@edusperoni How did you scan for the whole collection? Can I do it? Can you send me the code to scan it my self?

edit: Too bored to click on every card that I don't have ^_^

FenrisWolffe commented 9 years ago

How is the user script utilized?

edusperoni commented 9 years ago

@Kiougar I'm getting it ready for general use. If you want, send me a video of your collection (1s on each page at most) and I'll send you your statistics as json and a bunch of CSV files you can import on that famous spreadsheet that will do all the calculations for you. You can record it with something like open broadcaster, just make sure it's recording with a maximum bitrate above 3-4 (to avoid artifacts).

I've got hold of the hs json, downloaded all the cards and cropped some assets to scan each frame optimally. Took some work, but I'm pretty happy with the results.

SuperGouge commented 9 years ago

For those interested in the Hearthhead functionalities like @FenrisWolffe, I uploaded a release of my fork here since my pull request isn't getting accepted.

ko-vasilev commented 9 years ago

@SuperGouge unfortunately currently I have no time working on this plugin due to my graduation work. I'll continue in the end of June.

Kiougar commented 9 years ago

@edusperoni Does it have to be a recording? Can't I run it when you have finished it for general use? (I don't have a recording software installed)

edusperoni commented 9 years ago

@Kiougar You can wait if you want :) it's just that there isn't any ETA as I'm busy with some stuff this week.

Kiougar commented 9 years ago

@edusperoni hahah I'm busy studying, else I would've recorded it by now :tongue: Send me an empty email so that I have a way to contact you other than this issue. See you

msogrin commented 9 years ago

Any chance of combining automatic import from the game with export to Hearthhead done by @SuperGouge two months ago?

ko-vasilev commented 9 years ago

I just feel like there's too much requirements to import from hearthhead (you need to install something like tampermonkey and external user script)...

msogrin commented 9 years ago

Import from Hearthhead might require more work - but that's not needed anymore with the import from the game working now.

But export from HDT to Hearthhead looks like a single HTTP POST request with the specially constructed payload. Please look at https://www.reddit.com/r/hearthstone/comments/3516kp/i_have_created_a_tool_to_automatically_import/ for a code which creates a POST request and an example of payload (below in comments).

If that worked, using Hearthhead for searching online decks using only cards from your collection would be much easier. That synergized well with HDT as you would then import found decks into HDT and then into the game. And all of that without manual and error-prone procedure of adding every and single card from your collection.

ko-vasilev commented 9 years ago

Yeah, exporting to Hearthhead might be doable.