Issue with match_type in Hearthstone API

Hello,

I am doing a check-in my OW app for the match_type when a hearthstone game is started, here is how that check is carried out:

private matchInfo = {type: "", outcome: ""};
private acceptedModes = ["GT_RANKED", "GT_CASUAL", "GT_BATTLEGROUNDS", "GT_PVPDR", "GT_ARENA"];

private onInfoUpdates(info) {
if (info.match_info != undefined) {
  if (this.acceptedModes.includes(info.match_info.match_type)) {
    this.matchInfo.type = info.match_info.match_type;
  }
}

}

When I first start my computer and play a hearthstone game, the match_type is nothing, but the second game I play, the match_type gets populated, do you know why this might be?

Here is a console log from the events that take place while the app is running:

image

As you can see, after the first game, the match_type is not found, but then without restarting or changing anything, the second game yield the correct match_type.

Hi, and thanks for the feedback.

We will check the issue and we will update you here.

Thanks.

Hi @ge0r9e,

We tested, and we get the match type as intended.

It’s simply possible that when launching the HS client, all the relevant data like that is emptied as ‘null’ and gets filled when entering a match.

Nonetheless, we had the match type on my first match after launch.

Thanks.

Hello,

I am trying to find the match type in the info.match_info, is this correct?

When I look inside of the info variable passed through, the match_type dosnt seem to be present at all.

Here is a screenshot of the events after playing two games back to back:

On the first game, it doesn’t seem to look for match_type until the game is ended, but on the second game, it gives me the type before the match_start event is triggered.

I have also downloaded your hearthstone events sample app and it doesn’t work on their either.

Hey,

I’ll give you a plugin that will help us debug this in case this is 100% reproducible on your machine. Perhaps that way we can understand better how to handle this.

Thank you!

How will you be sending the plugin?

Here, you can click the zip and take it. Instructions on how to use it below:

gep_hearthstone.zip (282.6 KB)

This is what you need to do:

  1. Open Overwolf settings
  2. Go to “About” tab
  3. Click “Developer Options”
  4. Open “Overwolf Games Events Provider” via the UID under it.
  5. Go to plugins/64 folder and paste the dll there - overwriting the current one.

Once you use this one and the situation still persists - make sure you go to Overwolf log folder (AppData\Local\Overwolf\Log), there you will find a ‘gep_plugin.log’ file which you need to send over to us.

Let me know if you need anything else.

I followed your instructions, after copying the dll, there was no file to overwrite.

I could not find the gep_plugin.log file in the location specified.

But after running both my application and the sample application, I found that the match_type was still being sent as null.

You’re right it’s my bad, I accidentally told you to put it in the 64 folder when hearthstone is 32.

just do the same thing and put the plugin in the 32 folder (go 1 folder backwards).

No worries, replaced the file, found the same result on both apps again.

gep_plugin file attached.gep_plugin.log (212.5 KB)

Thanks.

We’ll take a look and update you soon

Hey again,

Could you please send your entire Overwolf log folder?

Hey,

It’s attatched.Log.zip (1012.2 KB)

@Shargaas any progress on this?

Hey @ge0r9e,
I went over the logs you sent and it looks like that the Hearthstone power.log file was missing in one of the matches (this is why we couldn’t detect the current “match_type”)

In the next match, this file was found and “match_type” was provided correctly:

Any idea why this file was missing?

I’m not too sure why this would be happening, so for the first game, the log is not created? but for the second game, it is?

I appreciate this probably isn’t your issue, but do you know what might help with this?

The best way for you to help us would be for you to find out an exact scenario that makes this happen.

Meaning if you changed anything with the Hearthstone folder / I don’t know, anything that might affect the power.log in some way.
It’s hard for us to do anything because it’s a file that’s created by HS itself.

Perhaps a good place to start would be to re-install HS and see if this continues to happen for you.

I have re-installed Hearthstone and followed these steps:

  1. Ran the Hearthstone event application

  2. Loaded Hearthstone

  3. Played a game in ranked mode - No match_type was found

  4. I then went straight into another game - match_type was found

Between the first and second game, nothing was changed, neither the game or the OW app was restarted, the conditions seem identical.

I managed to reproduce this after deleting my own power.log file.

It cannot detect the first match_type until it creates a new file.

I will open a bug on this. Hopefully we’ll fix it in the near future.

Great! Thanks for the help :slight_smile:

Is there some way I can be notified on the progress of this bug?