map indicator in battlelobby file
Opened this issue · 4 comments
Hi, I think that I found how to determine the map from the battlelobby file.
The first line containes several file address "C:\ProgramData\Blizzard Entertainment\Battle.net\Cache\xx\xx*.s2ma". The first four are the same whatever the map is. But the fith is different for each map. I checked with the files you provided with the application and it seems that it is not computer related. I therefore think that you can get the battleground from this feature.
I join a file with the different first line on my computer (map.txt). You can check it and decide to use the feature or not.
Regards.
Nice find. Are you sure those indicators stay the same for same maps? Although "cache" part suggest that those things may change often. Maybe some other paths point to selected heroes?
I am not 100% sure but in the file I attached, it was the same 3 times for the Curse Hollow, thus I assume it stay the same for a particular map. Plus, I checked on 2 files you put in the release (v0.2 would be sky temple and v0.3 would be tower of doom which correspond to the screenshots). I think it is worth an investigation.
I will look at some more file from my futur games. I cannot be 100% sure it is not computer dependent and I don't have an other computer to test it right now.
I am pretty sure that a map modification in a patch would change this information in the battlelobby file, which would explain the "cache" part: you download something the first time you play on a map. If it is just on patch, it would not be too much work.
I tried on an other windows user account and on both EU and NA. It confirmed what I thought. I cannot confirm the computer dependent thing myself. I am confident that this feature is fine nonetheless.
Great! I will configure my debug version to save all battlelobby files with match data from my games so I will be able to test such info on large amount of files in the future (probably we can even find selected heroes in this file).
To avoid doing additional work I will first just display map name in short stats table. If users will not report incorrect detection and this will survive at least 1 new patch then I will use this info to display map specific stats.