Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matching BNet account #42

Open
bazar-nazar opened this issue Jun 30, 2017 · 4 comments
Open

Matching BNet account #42

bazar-nazar opened this issue Jun 30, 2017 · 4 comments

Comments

@bazar-nazar
Copy link

bazar-nazar commented Jun 30, 2017

Hi @jnovack, @Farof
From first view I cant find the way to match players from replay to battlenet account. m_toon.m_id is not a bnet account id, but something else. And the only data I can really use is m_name, but it is not unique.
here is sample of user data i can see

     "m_name": "Bazar",
     "m_toon": {
       "m_region": 1,
       "m_programId": "Hero",
       "m_realm": 1,
       "m_id": 4287138
     },
     "m_race": " ",
     "m_color": {
       "m_a": 255,
       "m_r": 255,
       "m_g": 0,
       "m_b": 0
     },
     "m_control": 2,
     "m_teamId": 1,
     "m_handicap": 0,
     "m_observe": 0,
     "m_result": 2,
     "m_workingSetSlotId": 7,
     "m_hero": "Abathur"
   }

Can you advise, where can I find bnet account Id or full battletag, to match replay players with bnet accounts?

Thank you!

@jnovack
Copy link
Contributor

jnovack commented Jun 30, 2017

It is intentionally NOT provided by Blizzard to prevent stalking people. You are to use m_id to match accounts.

m_realm + '.' + m_region + '.' + m_id is unique.

@bazar-nazar
Copy link
Author

using m_id i can match accounts between different replays, but not to data which i got from using bNet Oauth API. Also C# version of parser(used by hotslogs) picks id and BattleTag somewhere. Any way thx for response.

@jnovack
Copy link
Contributor

jnovack commented Jun 30, 2017

This is a port of the python library from Blizzard. This is just Blizzard's official code, in a different language.

The C# version of parser (used by shitlogs) is unofficial AND prohibited by the Blizzard Terms of Service.

The Blizzard API even states the official method of tying accounts together is the AccountID. https://dev.battle.net/docs/read/concepts/AccountIds

@crorella
Copy link
Contributor

You can get it from the battlelobby file, you need to reverse eng. it, but it's easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants