s2protocol icon indicating copy to clipboard operation
s2protocol copied to clipboard

Question: Does the s2protocol output if the replay is ranked vs unranked for each player ?

Open breath20 opened this issue 11 years ago • 9 comments

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.

breath20 avatar May 15 '13 04:05 breath20

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?

dsjoerg avatar May 15 '13 11:05 dsjoerg

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 avatar May 15 '13 13:05 gkingston

@gkingston thank you, I stand corrected. I just played an unranked vs unranked match and confirmed that you are right. uuggggh.

dsjoerg avatar May 15 '13 14:05 dsjoerg

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.

dsjoerg avatar May 15 '13 14:05 dsjoerg

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 avatar May 15 '13 16:05 breath20

@breath20 here's the unranked vs unranked: http://ggtracker.com/matches/3219142/replay

dsjoerg avatar May 15 '13 16:05 dsjoerg

@breath20 where are you getting that output from / what command are you running?

dsjoerg avatar May 15 '13 16:05 dsjoerg

@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

breath20 avatar May 15 '13 16:05 breath20

So looking at your unranked vs unranked to my unranked vs ranked, the only difference is the races in that section :(

breath20 avatar May 15 '13 16:05 breath20