r/TagPro • u/-OmicroN- OmicroN • Apr 14 '14
[Userscript] Inject tagpro-stats ranks in-game for players
See this link for the latest version http://redd.it/2vqfx2
Hello everyone, as noted before I plan to be active in the community as both an avid player (on PI) and scripter/programmer. So without further ado... here is my first creation, injecting tagpro-stats.com ranks in-game next to players degrees.
Have a look, as pictures speak louder then words:
http://imgur.com/a/jB9S5
You're probably wondering what rank is being shown? That would be the persons win percentage rank. I feel a persons win percentage rank is a better indicator of someones skills then there degree. Degrees simply show how many games a player has played basically; someones win percentage rank on the other hand shows that of everyone ranked that person has won X amount of Y played games.
Thus would conclude that someone with a degree of 70 with a win rank percentage of say 3000th isn't as skilled as someone with say a degree of 50 and a win percentage rank of 592nd, but that's not for me to decide and say lol you can analyze the data how you see fit. :o)
You'll also notice some ranks are shown in gold and others white, gold simply means the person is authenticated (has checkmark next to there name) and white means they aren't authenticated/logged in so it could be either the real person or someone using that name.
The script detects when new people join the matches and pulls/injects there rank.
So if you like what you see then download from either of the 2 links below: https://www.dropbox.com/s/cj9l5h3zvcmlrtk/tagpro-ranks.user.js
https://gist.github.com/omicr0n/10612247/8ae2a8f282d7845ce93875a214e88832ed71b780
Install as you would any other userscript. I personally don't use greasemonkey or tampermonkey but I dont see why they shouldn't work with them. I use Chrome when playing so I simply go to the menu > tools > extensions and drag the script into the list and "add" it.
Of course credits to tagpro-stats.com for the rank data.
Coming in future updates
- Ability to change which rank stat to pull from and use (# of wins, win %, number of losses, hours played, etc...)
- Ability to change the colors used for auth/non auth ranks
- I'm sure more...
Edit: For those curious people who look at the script you'll notice referenced to reanimated.net, fear not as that's just my site that I've had forever and never real do anything with besides use it as my playground for scripts and storage. It is needed however to pull/query the stats on users as I'm hosting a copy of the publicly available DB of tagpro-stats on there for this script.
OmicroNOmicroNOmicroNOmicroN OmicroNOmicroNOmicroNOmicroN OmicroNOmicroNOmicroNOmicroN OmicroNOmicroNOmicroNOmicroN
20
u/TagProNitro ℕ ɪ ᴛ ᴙ o Apr 14 '14
Very cool! I think it'd be less intrusive if the stat was above the name. And maybe instead of the place they are in as far as Win% goes, maybe just show their actual Win%? As it is hard to figure out where, say, the 1560th Win% falls -- a 55% would fit much better and be easier to get an idea of how good the player is. Nice job regardless - I am completely ignorant to all that stuff & I've also slept about 2 hours out of the past 40+ so I may not be making sense.
Also, pls consider the Pi Roller invite? :]
2
u/[deleted] Apr 14 '14
Cool! Just a suggestion, you don't need to append a script node to the DOM in order to access the tagpro object; you can just declare window.tagpro = unsafeWindow.tagpro; at the beginning of the script instead.
7
u/marmaris74 WowSuchPro // Original Sine Apr 14 '14
Maybe instead of displaying a number, it could display just a 1-digit ranking. That is, someone in the top 100 win percents would get a 1, in the top 500 would get a 2, the top 1000 a 3, etc. These digits could be color coded to make reading easier.
1
u/quassus crosky Apr 14 '14
Personally I think it might get a little cluttered with flair+degree+rank all shown on every ball, but otherwise I think it's a neat idea. Great work Omicron!
1
u/[deleted] Apr 14 '14 edited Apr 14 '14
Yeah, I have to agree with crosky, but a solution could be making the font a bit smaller.
1
u/Swalker326 Noobkin Apr 14 '14
I am not one to encourage this, but if you can write something to try and break the game, they might offer you a job =P This is cool as fuck tho, keep it coming.
1
u/Lej Lej Apr 14 '14
I made a similar script where it puts it down by their degree :D. Very nice
1
u/Stasica Apr 14 '14
This is a very cool idea and I agree with Nitro about having just the Win% above the users name.
1
u/[deleted] Apr 14 '14
This is pretty cool! But you should take win % with a pinch of salt in pubs. I said this about a week ago to a similar comment:
1
u/[deleted] Apr 14 '14
HOW about a Star ranking systems like this: http://puu.sh/88DG9.png
0
u/[deleted] Apr 15 '14
[deleted] — view deleted comment
1
u/[deleted] Apr 14 '14
[removed] — view removed comment