Archive for glbscripts.myfreeforum.org Forum dedicated to Greasemonkey Scripts made for Goal Line Blitz online game.
 


       glbscripts.myfreeforum.org Forum Index -> Original Scripts
Augie

League Rankings v1.0



http://userscripts.org/scripts/show/35127

Adds a menu to your teams homepage showing where you rank compaired to the rest of the league.
Morid

This is nice, it does however have a conflict with the pbp Scout script.  the pbp Scout script overwrites the headers.
Augie

ahh damn... didnt have that loaded, had to reinstall firefox after an unfortunate programming accident.
Augie

it now runs slower than the pbp script of awesomeness. I set the timeout longer.  So its fixed.
Morid

works great
Kirghiz

This is cool Augie. Nice work.
JOSH2OTTER

love it

Any way we can get a conference only version?
robelder

Awesome and love it.  Will there be more stats added later?  Great job and very valuable
chiefy27

It's not working for every team in my conference even after reloading the page.

http://goallineblitz.com/game/league.pl?league_id=153

i.e Bangar PEACEING PUNISHINGMENTS
Augie

are you getting anything besides the please reload page?  how fast are you reloading hte page. sometimes if you are having slow connections or bad lag the script can get confused and not get any data.


I went to the bangar peaceing team page and it works perfect.  do you have java updated? firefox?
chiefy27

Just "please reload page" on all categories. A few other teams have only 1 or 2 "Reload" messages, but the rest work fine.

I'm not running any other scripts on the page. I have turned of the "Overall Team Stat" script and am waiting about 10-15 seconds to try and reload.

Firefox 3.0.3 with Java Plug-in 1.6.0_07

I really like the script by the way. I am going to just them to do a Power Ranking of some sort once I get things up and running.
Augie

that is due to you reloading before the script can pull all the data. It has to grab a few pages and pull the data and save it. Wait till after the next game and wait a few seconds before refreshing the page.

I will work on a fix for grabbing individual stats when people refresh to quick. It will be up tonight. or after classes.

Cant really program here in the lab they dont have firefox here to test the scripts.
Augie

OK I did some editing in word. and pasted the changes into the browser and updated the script.

It should recheck the missing data when you get the reload mesasge now.
chiefy27

I install the updated version and it seems to be working just fine.

Thanks and great work.
chiefy27

Is there a way or are you working on a way to have an overall league ranking?
Augie

there is a way =)

http://userscripts.org/scripts/show/35127
chiefy27

not just by offense or defense but overall overall
Augie

well overall just goes by total points scored and total points given up.

doing formulas and rankings and other stuff will make this plugin way to big if i take all stats into account for overall.
Augie

wow 1500 or so dloads and installs of this script....

guess it was a good idea to troll the forums and find someone asking for something like this =)
mw54finest

yeah, people love this script! Smile
Augie

Has anyone seen any bugs from this since the new season started?
RockCanoe

Only had it active for one game but it seems to be working for me.



How difficult would it be to edit the script to rank your team inside your conference.  I'd guess it wouldn't be awful since the framework of the code would be more or less the same...right?  You'd just need to grab the league + Conf ID instead of the League ID at the beginning?
Augie

Ok there was a problem with it understanding that a new season started so I put in a small check whenever there is a total win-loss-tie record equaling 1 and the stored game total equals 16. Then setting the stored number to 1 and returning the grab new data value.
Augie

changing it to conference would be almost identical.  though I wouldnt want to run the scripts at the same time, that would be a lot of page loads every time it did grab new data.  

I had to put in a timer to check if you had played a new league game so it would only pull the data once per 48 hours.

I might actually add a way to swap from league to conference in version 2.0
g$dragons

after two games i noticed that it updates all the teams in my league except mine and yes i have cleaned my cashe out many times and yet no up date it still is showing last seasons ranking.
i also uninstalled it 3 times and installed and still the same rankings when i am clearly the #1 rushing  and sez i am 5th like last season
dotman15

it has never worked for me...i have had it since last season and always shows please reload in all the rankings spots for every team.  I have tried clearing the cache, cookies, and all other GS scripts but still no avail.  Any suggestions?  Using vista and latest Firefox
Augie

the please reload message means that it hasnt pulled data for that team yet. Basically it has a null value for the data.  do you have the newest version of greasemonkey?


g$dragons, get the newest version. it will fix the last season bug of not recognising a new season. http://userscripts.org/scripts/show/35127

just replace the old script with that one by installing over or unistalling it and reinstallign the new version.  Yes it is called v1.0 but it is a diffrent version number. I messed up the naming and dont want to cause huge problems with people having two of the same scripts installed. bad things tend to happen.
g$dragons

ok i updated gm and your script and cleaned cashe and shut down and rebooted machine and firefox and still hasnt changed

look at my team see if these match to what you see.

team:http://goallineblitz.com/game/team.pl?team_id=706

rankings as i see it

League Ranking
Offense Defense Special Teams
Overall: 14th Overall: 20th Kick Ret: 11th
Passing: 26th Passing: 24th Punt Ret: 1st
Rushing: 5th Rushing: 15th Punting: 15th
Field Goal: 8th
Augie

ok i found out why it wont update. i had it only check for the 1st game. let me swap some code and it will be fixed.
g$dragons

lol glad to help you find the bug
Augie

Offense Defense Special Teams
Overall: 6th Overall: 2nd Kick Ret: 13th
Passing: 30th Passing: 8th Punt Ret: 16th
Rushing: 1st Rushing: 1st Punting: 9th
Field Goal: 25th
g$dragons

yep thanks for finding the bug in the script
Augie

I knew it was gonna break. I just had to wait till season 6 to see how it broke. then for game 2 to happen.
Shkwaell

Augie wrote:
I knew it was gonna break. I just had to wait till season 6 to see how it broke. then for game 2 to happen.


Is it fixed now or is it being worked on? Or has it not broke yet?
Augie

it is fixed now.
Augie

ugh.... FIXED again..... needed someone with a broke stat to tell me whats wrong.
dotman15

I am still getting the Please Reload...i am not getting any errors in Firebug and I have tried uninstalling all of the other scripts and just running the league rankings and it still doesnt work...
Augie

around line 157 can you edit this

//alert('total= ' + total + ' | GM_get=' + GM_getValue(check_team))

to


alert('total= ' + total + ' | GM_get=' + GM_getValue(check_team))


and tell me what alert message comes up
dotman15

sorry it took so long to respond been on vacation.  But this is the message that came up

total= 12 | GM_get=12

and that message gets displayed on every team i look at
Augie

well now it is week 12 and that makes sense.

Get the newest update to the script. that will fix all the problems from this season.
Augie

Added some new updates.  Memory optimizations and some other stuff.
Augie

Just had a great idea from someone. Will be adding team takeaway numbers. Unfortunatly I cant rank this since it would involve too many page hits. But I can pull a team number and give a +- takeaway value in the menu.


Once that is done I think I will attempt to import this script into my addon. It will be on a sidebar menu (I hope)
Augie

Ok got the turnover ratio working. Really took more time than I thought.  Had some variables not want to work.   Im adding some more admin/update stuff.  

I am trying to add something to check for updates to the script. it will check for version number from my database and if the version is new, it will put a link to go get the new version on the menu.
Augie

New update!

http://userscripts.org/scripts/show/35127

Turnover ratio now added, not to mention auto version checker to see if there is a new version of the script.
Iaznab

Mine constantly tells me to update.
Augie

yes. See the red Update link? click that and it will install the new version.
Augie

And uninstall version 1.0
Iaznab

I shoulda been more detailed - I Did see the red link, I DID click it, I DID go through the greasemonkey install - it DID tell me that 2.0 was installed - I DID flush my cache - and STILL it says I'm running 1.0 and I need to Update.

Edit: I am dumb for not checking, but Ver. 1.0 was still installed, after manually uninstalling all is fine in the world.
Augie

Yeah it is actually my fault. I never should have put the version in the title.

Then i had people with issues with the v1.0 name so i renamed it and well.... Lets just say I learned what not to do in naming something.
rcillig

thanks for the update.

       glbscripts.myfreeforum.org Forum Index -> Original Scripts
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum