AdnanC / HDT.Plugins.MetaDetector

Based on cards played, detect what deck opponent is playing
http://metastats.net
44 stars 13 forks source link

Not working with HDT v1.0+ #5

Closed neonerz closed 7 years ago

neonerz commented 7 years ago

It seems like with the new version of HDT, MetaDetector doesn't work anymore. Is there any plans to update it?

AdnanC commented 7 years ago

I am working on it. It should be up soon.

AdnanC commented 7 years ago

I have published the new version. Let me know if you have any issues.

neonerz commented 7 years ago

I'm still getting the following error when trying to load it: https://gyazo.com/86bbb98b5f59189b52a68aacdf8a359b

You could see the error, and confirmation that it's running v0.0.7. I'm running HDT version 1.0.3

Just to go over my steps to install.

I disabled MetaDetector in HDT and closed it. Deleted it out of AppData/Roaming/HearthstoneDeckTracker/Plugins. Unblocked the DLL, copied over the MetaDetector folder out of the zip to the plugins folder. Loaded back up HDT, enabled the plugin, and got the error in the screen shot.

If I then manually acknowledge the error, go back into settings and enable the plugin, I don't get the error and can open the MetaDetector screen, but it never shows the meta decks while playing.

AdnanC commented 7 years ago

That is really weird. I tried the same steps and don't get any errors. I have updated the latest release and it shouldn't cause the big HDT error anymore, everything should go into the log file.

If the window opens and no decks are showing you can try deleting the metaDecks.xml in "%AppData%\HearthstoneDeckTracker\MetaDetector\"

sdbds commented 7 years ago

i use it with HDT 1.04 works well。nothing wrong。

neonerz commented 7 years ago

Maybe it was just an issue with HDT 1.0.3? Now that I updated to HDT 1.0.4 it seems to be working again.

neonerz commented 7 years ago

Actually, I spoke too soon. I'm not getting the error anymore, but the tracker screen is still staying blank. I tried deleting metaDecks.xml from "%AppData%\HearthstoneDeckTracker\MetaDetector\" and it had no effect (it's also worth noting it didn't seem to generate a new one. I played a couple matches to be safe).

Here's a pastebin of the log file from after I upgraded to HDT 1.0.4 and reinstalled MetaDetector: http://pastebin.com/WJZK4rmC - It shows tons of errors.

AdnanC commented 7 years ago

can you try deleting metaConfig.xml in the same folder

neonerz commented 7 years ago

That did the trick! Tailing the meta_log everything looks great. Thanks for the help.

AdnanC commented 7 years ago

good to hear. I have added a check in the code as well now. If any of the config files are missing / corrupt it will try to create a new one.