s2protocol
s2protocol copied to clipboard
Question: Does the s2protocol output if the replay is ranked vs unranked for each player ?
I'm not having any luck tracking down the flag that would tell if a player was playing a ranked game or an unranked game.
Any help would be appreciated.
if you run s2protocol on a replay with --initdata you will see a field called 'm_highestLeague'
... 'm_userInitialData': [{'m_clanTag': '', 'm_combinedRaceLevels': 1, 'm_customInterface': False, 'm_examine': False, 'm_highestLeague': 8,
I believe 8 is for Unranked.
@koalaling is that right?
I don't think that is right. Looking at both one ranked and one unranked replay for the same player, the m_highestLeague is the same for that player. I had assumed it probably had something to do with the highest rank(bronze,silver,gold etc.) that someone had reached.
Edit: Are you saying 8 for someone individually that is currently unranked? I could see that. I believe Breath above is asking how to tell if one(or both) of the players in a match is currently playing it as an unranked game, not if the player themselves is unranked.
@gkingston thank you, I stand corrected. I just played an unranked vs unranked match and confirmed that you are right. uuggggh.
Arggh I went through all the fields exposed by s2protocol and I can't find anything that appears to be related to whether it was an unranked game for either player.
Can you upload your unranked vs unranked, the game i played ended up being unranked vs ranked.
My thought was it was in their the object that had "scopes"
[4000] => Array ( [0] => stdClass Object ( [attrid] => 4000 [namespace] => 999 [value] => Norm )
)
[3009] => Array ( [0] => stdClass Object ( [attrid] => 3009 [namespace] => 999 [value] => Amm )
) .....
I just have not found anything between the couple replays i have compared that have nailed it down.
But ya @koalaling any information on this would be greatly appreciated.
@breath20 here's the unranked vs unranked: http://ggtracker.com/matches/3219142/replay
@breath20 where are you getting that output from / what command are you running?
@dsjoerg its coming from setting the --attributeevents flag, i'm also taking the output and converting it to json and then feeding it into php (i'm not a python fan) so the dump is a php json decoded array/object
Here is a pastebin of all the output that flag gives you after i have combined them.
http://pastebin.com/tHiHAu0C
So looking at your unranked vs unranked to my unranked vs ranked, the only difference is the races in that section :(