|
On May 28 2011 16:30 kagamin wrote:Show nested quote +On May 28 2011 15:51 Mendelfist wrote: Great initiative.
I have a request: On the ladder page players are ranked by points. The bonus points make the rank somewhat useless, because it only tells you who has played most and spent all their bonus pool. Removing bonus points from the points and re-sorting the ladder page would make your rank depend on your skill instead. You could tell who is best and who is worst in your division. I think it would be very useful, because it would tell you where you stand within your own division and help you track your progress.
It would require getting remaining bonus pool from every player on the ladder page (100 players) and adding it to their points, so it would probably take a while. Hmmm... that's an interesting idea. Is it safe to assume that everyone has access to the same bonus pool? I remember reading somewhere that bonus pool maxes out at some point. So if player 1 is constantly spending bonus pool while player 2 has maxed out and is just sitting there, then overall player 1 will have more bonus pool points factored into his ladder points compared to player 2, even if they both end up spending all their bonus pool points. Also, I'm not sure how I would figure out the number of bonus pool spent, because I don't know the value for MaxBonusPool (the theoretical bonus pool for a player who doesn't play any games and never caps out at a max). I could pick an arbitrary number (like 1000) and recalculate the "ladder" points for each player as: RealLadderPoints = DisplayedLadderPoints - (1000 - BonusPool) But picking the arbitrary number might make some people's RealLadderPoints become negative if the arbitrary number is too high. A simple solution might just be to add DisplayedLadderPoints and BonusPool together, and sort by the combined value. That would be like assuming every player suddenly used up all their bonus pool, so even though the ladder points are still inflated, they're all inflated by the same amount. Again, this is assuming every player has the same MaxBonusPool. Yes, within a region everyone has access to the same bonus pool. It can differ between regions though.
No, there is no max to the bonus pool. It's completely fair in that regard. The sum of remaining bonus and spent bonus is always the exact same number for every player in a region.
As you say, just adding displayed points and remaining bonus will work. You will get a number that inflates with time, but that inflation is the same for every player.
However, sc2ranks actually has a page that displays total bonus pool: http://sc2ranks.com/api/bonus/pool?appKey=localhost Using that would work too. It would make you dependent of sc2ranks, but the calculated points would then be a number that directly reflects progress. If the number increases you are getting better. It would be very neat.
|
On May 28 2011 15:26 kagamin wrote:Hmm... that is weird... if you don't mind could you post the url of the profile you are trying to view? I can't figure out why it would do that. Even if it's on a server that the script doesn't recognize (like, japanese server or something), there should still be default values for those headers.
The problem profile is my own:
http://us.battle.net/sc2/en/profile/463388/1/Retep/matches
Perhaps it's my computer? Don't know.
|
On May 29 2011 02:36 imareaver3 wrote:Show nested quote +On May 28 2011 15:26 kagamin wrote:On May 28 2011 10:42 imareaver3 wrote:Looks awesome! But it isn't working exactly as it should... + Show Spoiler + Hmm... that is weird... if you don't mind could you post the url of the profile you are trying to view? I can't figure out why it would do that. Even if it's on a server that the script doesn't recognize (like, japanese server or something), there should still be default values for those headers. The problem profile is my own: http://us.battle.net/sc2/en/profile/463388/1/Retep/matchesPerhaps it's my computer? Don't know.
Your profile looks fine to me when I view it on my computer. I don't know what to say other than maybe try to uninstall and reinstall it.
Edit: Also just to be sure, you're using either Google Chrome or Firefox 3.6 or later?
|
On May 28 2011 16:58 Mendelfist wrote:However, sc2ranks actually has a page that displays total bonus pool: http://sc2ranks.com/api/bonus/pool?appKey=localhostUsing that would work too. It would make you dependent of sc2ranks, but the calculated points would then be a number that directly reflects progress. If the number increases you are getting better. It would be very neat.
That's a great idea. I'm quite happy to see that sc2ranks provides bonus pool values. However, the problem with the userscript is that cross domain ajax request are not allowed due to "same origin policy," so I can't load the bonus pool values from sc2ranks.com. There is a workaround by using greasemonkey's GM_xmlhttpRequest(), but that is only supported in Firefox, so it won't work for Chrome or Opera users.
If I could find a formula for calculating the bonus pool myself that would be the best solution. I'll try digging around. If I can't find it, I guess I could rely on GM_xmlhttpRequest(), but I'd rather avoid it if possible.
|
On May 30 2011 14:17 kagamin wrote:Show nested quote +On May 28 2011 16:58 Mendelfist wrote:However, sc2ranks actually has a page that displays total bonus pool: http://sc2ranks.com/api/bonus/pool?appKey=localhostUsing that would work too. It would make you dependent of sc2ranks, but the calculated points would then be a number that directly reflects progress. If the number increases you are getting better. It would be very neat. That's a great idea. I'm quite happy to see that sc2ranks provides bonus pool values. However, the problem with the userscript is that cross domain ajax request are not allowed due to "same origin policy," so I can't load the bonus pool values from sc2ranks.com. There is a workaround by using greasemonkey's GM_xmlhttpRequest(), but that is only supported in Firefox, so it won't work for Chrome or Opera users. If I could find a formula for calculating the bonus pool myself that would be the best solution. I'll try digging around. If I can't find it, I guess I could rely on GM_xmlhttpRequest(), but I'd rather avoid it if possible. I think the exact formula is 90 points per week. You could take the starting values from sc2ranks. Also, as someone said earlier, the bonus pools for arranged teams grow slower.
|
On May 28 2011 11:47 UisTehSux wrote: Facebook integration > Stats imo.
Infected rat excrement > you imo. But that's just my opinion.
|
On May 30 2011 16:24 Mendelfist wrote:Show nested quote +On May 30 2011 14:17 kagamin wrote:On May 28 2011 16:58 Mendelfist wrote:However, sc2ranks actually has a page that displays total bonus pool: http://sc2ranks.com/api/bonus/pool?appKey=localhostUsing that would work too. It would make you dependent of sc2ranks, but the calculated points would then be a number that directly reflects progress. If the number increases you are getting better. It would be very neat. That's a great idea. I'm quite happy to see that sc2ranks provides bonus pool values. However, the problem with the userscript is that cross domain ajax request are not allowed due to "same origin policy," so I can't load the bonus pool values from sc2ranks.com. There is a workaround by using greasemonkey's GM_xmlhttpRequest(), but that is only supported in Firefox, so it won't work for Chrome or Opera users. If I could find a formula for calculating the bonus pool myself that would be the best solution. I'll try digging around. If I can't find it, I guess I could rely on GM_xmlhttpRequest(), but I'd rather avoid it if possible. I think the exact formula is 90 points per week. You could take the starting values from sc2ranks. Also, as someone said earlier, the bonus pools for arranged teams grow slower.
Thanks for the info. I've updated the script with your suggestions. I also used bonus pool information from here:
http://www.teamliquid.net/forum/viewmessage.php?topic_id=195273
I didn't nail down the exact start time of the ladder seasons for each server, so the adjusted ladder points may be off by 1 at any given time, but it should never be off by more than 1. If I wanted to have the exact start time, I'd have to keep refreshing a division page until I saw the bonus pool increase by 1, and then use that time to calculate the start time of the ladder season. Since I didn't do that, and since the bonus pool increases by 1 every 112 minutes, my estimated start time of the ladder season could be off by 111 minutes, which means you could see your adjusted points jump between, for example, 255 and 256 during those minutes.
BTW, I even noticed that sc2rank's bonus pool numbers were slightly off-- they'd show 789 for US bonus pool, while I'd see 790 as the bonus pool for a US division.
If anyone could help me arrive at the exact start time for the ladder seasons on each server, it'd help make the script more accurate. Still, I think it's not too bad, and anyway it's interesting to see everyone's ladder points with the bonus points removed...
|
I have this profile that I don't use so I can always know the exact amount of bonus points:
http://us.battle.net/sc2/en/profile/54441/2/SDream/ladder/36236
Does it help you? I mean, could you use this number in the script somehow? it will always be right, I promise to not play any games in this "team" anymore, I as I really hate 4x4 you can easily trust 
Thanks for the script! I'll be using it 
Edit: Tip: NA and LA regions share servers, so we have the same bonus pool. (I am from LA)
Other regions will require other profiles to be exact, but RU also is the same server as EU as far as I know.
|
On May 30 2011 23:16 SDream wrote:I have this profile that I don't use so I can always know the exact amount of bonus points: http://us.battle.net/sc2/en/profile/54441/2/SDream/ladder/36236Does it help you? I mean, could you use this number in the script somehow? it will always be right, I promise to not play any games in this "team" anymore, I as I really hate 4x4 you can easily trust  Thanks for the script! I'll be using it 
Thanks for the link, and for using the script. But the thing I need is the exact time of day that blizzard increases the bonus pool. I already know within 112 minutes what the total bonus pool should be. But since I don't know the exact time the bonus pool changes, the script may show "100" points at 3:30 PM, then "101" points at 3:40 PM, then back to "100" points at 3:50 PM. Because sometime between 3:30 and 3:40 my calculation for total bonus pool increased by 1, but the actual total bonus pool didn't increase by 1 until sometime between 3:40 and 3:50.
I'm too lazy to sit by my computer and keep refreshing the divsion page until I see the bonus pool go up, which is what I think needs to be done. Maybe I'll do it one day when I'm really bored, but for now I have to get back to work on stuff that actually pays the bills :p
|
On May 30 2011 22:55 kagamin wrote:Show nested quote +On May 30 2011 16:24 Mendelfist wrote: I think the exact formula is 90 points per week. You could take the starting values from sc2ranks. Also, as someone said earlier, the bonus pools for arranged teams grow slower. Thanks for the info. I've updated the script with your suggestions. I also used bonus pool information from here: http://www.teamliquid.net/forum/viewmessage.php?topic_id=195273I didn't nail down the exact start time of the ladder seasons for each server, so the adjusted ladder points may be off by 1 at any given time, but it should never be off by more than 1. If I wanted to have the exact start time, I'd have to keep refreshing a division page until I saw the bonus pool increase by 1, and then use that time to calculate the start time of the ladder season. Since I didn't do that, and since the bonus pool increases by 1 every 112 minutes, my estimated start time of the ladder season could be off by 111 minutes, which means you could see your adjusted points jump between, for example, 255 and 256 during those minutes. BTW, I even noticed that sc2rank's bonus pool numbers were slightly off-- they'd show 789 for US bonus pool, while I'd see 790 as the bonus pool for a US division. If anyone could help me arrive at the exact start time for the ladder seasons on each server, it'd help make the script more accurate.  Still, I think it's not too bad, and anyway it's interesting to see everyone's ladder points with the bonus points removed... 
Yes! Finally we are getting ways to see the information Blizzard dont want us to have. This is really useful. Thanks.
I don't know if it is feasible to implement a new division page with adjusted points and re-sort it: http://eu.battle.net/sc2/en/profile/293343/1/Mendelfist/ladder/36732 By this I mean recalculate everyones points. It would take a lot of time because it would require at least 100 extra http requests, one for each player.
|
Hey so I am using google chrome, I installed it and I don't see any differences, any suggestions?
|
On May 31 2011 02:20 GGzerG wrote: Hey so I am using google chrome, I installed it and I don't see any differences, any suggestions?
I just installed it on Google Chrome v11.0.696.71. Versions before 4.0 don't support userscripts, but those are really old versions. The only thing I can suggest is uninstalling and reinstalling. I just updated the script with chrome-style matches (determines which sites the script runs on), so maybe that'll make a difference. I've included some screenshots below to make it clear what's involved when installing on chrome.
1) After you click the green install button, you should see this on the bottom left. Click Continue.
![[image loading]](http://img18.imageshack.us/img18/7223/chrome1.png)
2) A popup should open up asking if you want to install. Click Install.
![[image loading]](http://img228.imageshack.us/img228/7383/chrome2.png)
3) After you've installed it, you can verify its status by clicking on the tool icon on the top right and clicking on Tools > Extensions.
![[image loading]](http://img713.imageshack.us/img713/415/chrome3b.png)
4) You should then see the script listed.
![[image loading]](http://img135.imageshack.us/img135/9620/chrome4.png)
If you've done everything as described above, then it should be installed correctly, and as long as you're using the latest version of Chrome, it should work. Other than that, I'm not sure what else to suggest.
|
On May 31 2011 02:08 Mendelfist wrote:I don't know if it is feasible to implement a new division page with adjusted points and re-sort it: http://eu.battle.net/sc2/en/profile/293343/1/Mendelfist/ladder/36732By this I mean recalculate everyones points. It would take a lot of time because it would require at least 100 extra http requests, one for each player.
It would actually require 200 extra requests, because I'd need one for each profile, and then one to get the division link from their profile. I don't think there's any direct link from the division page to another player's "version" of the division page (and you can't infer the link either); you have to go through their main profile first to get the link.
Also it would only work for 1v1, because for team divisions it might not be linked on their main profile if it's not their top ranked division; you'd have to go through their "Leagues and Ladders" page and then through all their team divisions to find the correct one, and that'd be way too many requests.
Ya, it would be neat to see for 1v1, but I don't think I'll get around to it for a while. Maybe later when I get the time.
|
On May 31 2011 11:16 kagamin wrote:It would actually require 200 extra requests, because I'd need one for each profile, and then one to get the division link from their profile. I don't think there's any direct link from the division page to another player's "version" of the division page (and you can't infer the link either); you have to go through their main profile first to get the link. Also it would only work for 1v1, because for team divisions it might not be linked on their main profile if it's not their top ranked division; you'd have to go through their "Leagues and Ladders" page and then through all their team divisions to find the correct one, and that'd be way too many requests. Ya, it would be neat to see for 1v1, but I don't think I'll get around to it for a while. Maybe later when I get the time. I think you can infer it actually. 36732 in the above case is the division number, so you just have to slap "/ladder/divisionnumber" to the end of each profile link. It works for team divisions too. I don't want you to feel any pressure though. :-)
|
On May 31 2011 14:03 Mendelfist wrote: I think you can infer it actually. 36732 in the above case is the division number, so you just have to slap "/ladder/divisionnumber" to the end of each profile link. It works for team divisions too. I don't want you to feel any pressure though. :-) Oh, that's pretty nice! I'll try to add it in the next major update. 
|
On May 31 2011 14:16 kagamin wrote:Show nested quote +On May 31 2011 14:03 Mendelfist wrote: I think you can infer it actually. 36732 in the above case is the division number, so you just have to slap "/ladder/divisionnumber" to the end of each profile link. It works for team divisions too. I don't want you to feel any pressure though. :-) Oh, that's pretty nice! I'll try to add it in the next major update.  I hope Blizzard doesn't get pissed. Maybe they wouldn't like the increased load on their servers if a lot of people start to use the script. Maybe there should be a recalculate button or something so it doesn't happen every time you visit a division page.
|
Ya, that's my main concern about the script, is that it increases the load on blizzard's web servers (which, I feel I should point out, is separate from their battle.net game servers) If I ever do add the adjusted ladder points to a division page, it wouldn't activate on page load, but only if a user clicks a button.
For existing functionality, I already try to cache as much of the data as I can, so hopefully that helps. Also, I don't think that many people are using the script, and the ones that do probably don't view sc2 profiles every day. So the script probably contributes at most a hundred or two extra hits per day, which shouldn't be much for a site that gets tens of thousands of hits per day. At least that's my guess.
|
Very cool but I'm going to wait for the r1ch version that auto-commentates and uploads vods of every game to the site.
|
So this just gathers from the website, and doesn't communicate with the actual game at all?
Then it's not against the EULA.
|
Is your script taking time zones into account? This guy should have 0 adjusted points, but shows as -3 for me: http://eu.battle.net/sc2/en/profile/338539/1/TDGxDARK/
Replacing one line in the script with this one works better: {region:'eu', date:new Date(2011,2,30,4,48,7)},
but I havent pinpointed exactly what it should be.
There is also a bug when the bonus pool is 0. The string "Bonus Pool" is completely missing on the web page in that case, so your script fails to find it. You should assume 0 in that case I think. Great script otherwise. I use it all the time. :-)
|
|
|
|