HearthSim / HSTracker

A deck tracker and deck manager for Hearthstone on macOS
https://hsreplay.net/downloads/
MIT License
1.19k stars 177 forks source link

Tracker registering win multiple times on HeartStats #252

Closed oysteinolsen closed 8 years ago

oysteinolsen commented 8 years ago

OSX v 013 (448) Debug log:

[2015-12-03 20:21:38.689][engine][log]: "----- Game End -----" [2015-12-03 20:21:38.691][analyzer][log]: "waiting for mode" [2015-12-03 20:21:47.269][analyzer][log]: "3 / 3 -> 10 gold" [2015-12-03 20:21:51.077][engine][log]: "You are rank 19" [2015-12-03 20:21:51.078][engine][log]: "You are rank 20" [2015-12-03 20:21:51.556][engine][log]: "Player in game mode casual" [2015-12-03 20:21:52.166][engine][log]: "Player in game mode ranked" [2015-12-03 20:21:52.167][engine][log]: "Player in game mode ranked" [2015-12-03 20:21:52.185][engine][log]: "Game mode detected as ranked" [2015-12-03 20:21:52.186][engine][log]: {:stats=>:win, :against=>"Paladin", :with_deck=>"Midrange Hunter", :rank=>20} [2015-12-03 20:21:52.202][network][log]: {:verb=>:post, :to=>"http://api.hearthstats.net/api/v3/matches?auth_token=¯\\_(ツ)_/¯", :data=>{:class=>"Hunter", :mode=>"Ranked", :result=>"Win", :coin=>"true", :numturns=>20, :duration=>641, :deck_id=>4433845, :deck_version_id=>4907169, :oppclass=>"Paladin", :oppname=>"veiLL", :notes=>nil, :ranklvl=>20, :oppcards=>[{:id=>"EX1_379", :count=>1}, {:id=>"CS2_188", :count=>1}, {:id=>"EX1_029", :count=>2}, {:id=>"EX1_080", :count=>2}, {:id=>"EX1_362", :count=>1}, {:id=>"GVG_058", :count=>1}, {:id=>"NEW1_019", :count=>1}, {:id=>"GVG_061", :count=>1}, {:id=>"CS2_092", :count=>1}, {:id=>"CS2_093", :count=>2}, {:id=>"AT_076", :count=>1}], :created_at=>"2015-12-03T19:10"}} [2015-12-03 20:21:52.208][engine][log]: "Game mode detected as ranked" [2015-12-03 20:21:52.210][engine][log]: {:stats=>:win, :against=>"Paladin", :with_deck=>"Midrange Hunter", :rank=>20} [2015-12-03 20:21:52.215][network][log]: {:verb=>:post, :to=>"http://api.hearthstats.net/api/v3/matches?auth_token=¯\\_(ツ)_/¯", :data=>{:class=>"Hunter", :mode=>"Ranked", :result=>"Win", :coin=>"true", :numturns=>20, :duration=>641, :deck_id=>4433845, :deck_version_id=>4907169, :oppclass=>"Paladin", :oppname=>"veiLL", :notes=>nil, :ranklvl=>20, :oppcards=>[{:id=>"EX1_379", :count=>1}, {:id=>"CS2_188", :count=>1}, {:id=>"EX1_029", :count=>2}, {:id=>"EX1_080", :count=>2}, {:id=>"EX1_362", :count=>1}, {:id=>"GVG_058", :count=>1}, {:id=>"NEW1_019", :count=>1}, {:id=>"GVG_061", :count=>1}, {:id=>"CS2_092", :count=>1}, {:id=>"CS2_093", :count=>2}, {:id=>"AT_076", :count=>1}], :created_at=>"2015-12-03T19:10"}} [2015-12-03 20:21:52.216][engine][log]: "Game mode detected as ranked" [2015-12-03 20:21:52.217][engine][log]: {:stats=>:win, :against=>"Paladin", :with_deck=>"Midrange Hunter", :rank=>20} [2015-12-03 20:21:52.223][network][log]: {:verb=>:post, :to=>"http://api.hearthstats.net/api/v3/matches?auth_token=¯\\_(ツ)_/¯", :data=>{:class=>"Hunter", :mode=>"Ranked", :result=>"Win", :coin=>"true", :numturns=>20, :duration=>641, :deck_id=>4433845, :deck_version_id=>4907169, :oppclass=>"Paladin", :oppname=>"veiLL", :notes=>nil, :ranklvl=>20, :oppcards=>[{:id=>"EX1_379", :count=>1}, {:id=>"CS2_188", :count=>1}, {:id=>"EX1_029", :count=>2}, {:id=>"EX1_080", :count=>2}, {:id=>"EX1_362", :count=>1}, {:id=>"GVG_058", :count=>1}, {:id=>"NEW1_019", :count=>1}, {:id=>"GVG_061", :count=>1}, {:id=>"CS2_092", :count=>1}, {:id=>"CS2_093", :count=>2}, {:id=>"AT_076", :count=>1}], :created_at=>"2015-12-03T19:10"}} [2015-12-03 20:21:52.258][engine][log]: "Game mode detected as ranked" [2015-12-03 20:21:52.260][engine][log]: {:stats=>:win, :against=>"Paladin", :with_deck=>"Midrange Hunter", :rank=>20} [2015-12-03 20:21:52.265][network][log]: {:verb=>:post, :to=>"http://api.hearthstats.net/api/v3/matches?auth_token=¯\\_(ツ)_/¯", :data=>{:class=>"Hunter", :mode=>"Ranked", :result=>"Win", :coin=>"true", :numturns=>20, :duration=>641, :deck_id=>4433845, :deck_version_id=>4907169, :oppclass=>"Paladin", :oppname=>"veiLL", :notes=>nil, :ranklvl=>20, :oppcards=>[{:id=>"EX1_379", :count=>1}, {:id=>"CS2_188", :count=>1}, {:id=>"EX1_029", :count=>2}, {:id=>"EX1_080", :count=>2}, {:id=>"EX1_362", :count=>1}, {:id=>"GVG_058", :count=>1}, {:id=>"NEW1_019", :count=>1}, {:id=>"GVG_061", :count=>1}, {:id=>"CS2_092", :count=>1}, {:id=>"CS2_093", :count=>2}, {:id=>"AT_076", :count=>1}], :created_at=>"2015-12-03T19:10"}} [2015-12-03 20:21:52.267][engine][log]: "Game mode detected as ranked" [2015-12-03 20:21:52.268][engine][log]: {:stats=>:win, :against=>"Paladin", :with_deck=>"Midrange Hunter", :rank=>20} [2015-12-03 20:21:52.274][network][log]: {:verb=>:post, :to=>"http://api.hearthstats.net/api/v3/matches?auth_token=¯\\_(ツ)_/¯", :data=>{:class=>"Hunter", :mode=>"Ranked", :result=>"Win", :coin=>"true", :numturns=>20, :duration=>641, :deck_id=>4433845, :deck_version_id=>4907169, :oppclass=>"Paladin", :oppname=>"veiLL", :notes=>nil, :ranklvl=>20, :oppcards=>[{:id=>"EX1_379", :count=>1}, {:id=>"CS2_188", :count=>1}, {:id=>"EX1_029", :count=>2}, {:id=>"EX1_080", :count=>2}, {:id=>"EX1_362", :count=>1}, {:id=>"GVG_058", :count=>1}, {:id=>"NEW1_019", :count=>1}, {:id=>"GVG_061", :count=>1}, {:id=>"CS2_092", :count=>1}, {:id=>"CS2_093", :count=>2}, {:id=>"AT_076", :count=>1}], :created_at=>"2015-12-03T19:10"}} [2015-12-03 20:21:52.275][engine][log]: "Game mode detected as ranked" [2015-12-03 20:21:52.277][engine][log]: {:stats=>:win, :against=>"Paladin", :with_deck=>"Midrange Hunter", :rank=>20} [2015-12-03 20:21:52.283][network][log]: {:verb=>:post, :to=>"http://api.hearthstats.net/api/v3/matches?auth_token=¯\\_(ツ)_/¯", :data=>{:class=>"Hunter", :mode=>"Ranked", :result=>"Win", :coin=>"true", :numturns=>20, :duration=>641, :deck_id=>4433845, :deck_version_id=>4907169, :oppclass=>"Paladin", :oppname=>"veiLL", :notes=>nil, :ranklvl=>20, :oppcards=>[{:id=>"EX1_379", :count=>1}, {:id=>"CS2_188", :count=>1}, {:id=>"EX1_029", :count=>2}, {:id=>"EX1_080", :count=>2}, {:id=>"EX1_362", :count=>1}, {:id=>"GVG_058", :count=>1}, {:id=>"NEW1_019", :count=>1}, {:id=>"GVG_061", :count=>1}, {:id=>"CS2_092", :count=>1}, {:id=>"CS2_093", :count=>2}, {:id=>"AT_076", :count=>1}], :created_at=>"2015-12-03T19:10"}} [2015-12-03 20:21:57.603][engine][log]: "You are rank 19" [2015-12-03 20:22:01.699][events][log]: {:message=>"Hearthstone is active?", :is_active=>false}

[2015-12-03 20:22:01.851][events][log]: {:message=>"Hearthstone is running?", :is_running=>false}

bmichotte commented 8 years ago

You should share some with #251 :D

All joke aside, this is a strange issue, I'll try to check this tomorrow

oysteinolsen commented 8 years ago

It have happened on two occations. Let me know if you need more debug logs or something :-) On Dec 3, 2015 22:17, "Benjamin Michotte" notifications@github.com wrote:

You should share some with #251 https://github.com/bmichotte/HSTracker/issues/251 :D

All joke aside, this is a strange issue, I'll try to check this tomorrow

— Reply to this email directly or view it on GitHub https://github.com/bmichotte/HSTracker/issues/252#issuecomment-161787290 .

yndara commented 8 years ago

I have actually seen both behaviors, double match entry and the missing match entry, although the missing match entry is much more common for me. Let me know if you're looking for more data or anything.