Grid-Iron american football game language selector
Language
ČeštinaDanskDeutsch
EnglishEspañolEspañol (Latinoamérica)
FrançaisItalianoMagyar
NederlandsPolskiPortuguês (Brasil)
RomânăSlovenčinaSlovenščina
SrpskiSuomiБългарски
РусскийУкраїнська 
Register
Login
Some greasemonkey scripts
 
Mikkel_Chargers
Posts: 1
Posted on 2009-04-06 0:35:37
CoachB05 wrote:

Hey, could anyone create one that shows a number on how close each skill is to being trained one more? I would, but I don't have any programming skills whatsoever.


If I understand your question right, then I just a couple of days ago made the following script
http://userscripts.org/scripts/show/45958
which adds decimals to the skills (the decimals are the current training of the skill)
For instance it says "Vision 5,75" if the player has "5" in vision and has trained 75 out of 100 points)
(I also adds the points to the training pane, so one does not have to guess the value from the bars)

I have also made
http://userscripts.org/scripts/show/45957
which adds a short description of what the player is currently training.
For instance on the player page it says
16 years old Quarterback (Tr: Tactical, All skills)
instead of just
16 years old Quarterback

Ps. I will travel a lot the next week, so I will probably not have time to answer questions, comments etc. before the next weekend
  
croverja
Posts: 0
Posted on 2009-04-06 0:47:03
Mikkel_Chargers wrote:

CoachB05 wrote:

Hey, could anyone create one that shows a number on how close each skill is to being trained one more? I would, but I don't have any programming skills whatsoever.


If I understand your question right, then I just a couple of days ago made the following script
http://userscripts.org/scripts/show/45958
which adds decimals to the skills (the decimals are the current training of the skill)
For instance it says "Vision 5,75" if the player has "5" in vision and has trained 75 out of 100 points)
(I also adds the points to the training pane, so one does not have to guess the value from the bars)

I have also made
http://userscripts.org/scripts/show/45957
which adds a short description of what the player is currently training.
For instance on the player page it says
16 years old Quarterback (Tr: Tactical, All skills)
instead of just
16 years old Quarterback

Ps. I will travel a lot the next week, so I will probably not have time to answer questions, comments etc. before the next weekend


Thanks a lot!
  
croverja
Posts: 0
Posted on 2009-04-06 0:49:12
It doesn't seem to be working...
  
Mikkel_Chargers
Posts: 1
Posted on 2009-04-06 1:20:06
croverja wrote:

It doesn't seem to be working...


Are there any errors in the "Error Console" ?
In Firefox under Tools => Error Console
(To only see the relevant Errors, first clear the console and then reload the player page).

Ps. I have only tested my script using English as language perhaps that is the problem ?
  
croverja
Posts: 0
Posted on 2009-04-06 1:28:29
Mikkel_Chargers wrote:

croverja wrote:

It doesn't seem to be working...


Are there any errors in the "Error Console" ?
In Firefox under Tools => Error Console
(To only see the relevant Errors, first clear the console and then reload the player page).

Ps. I have only tested my script using English as language perhaps that is the problem ?


I'm using English, and currently using other grease monkey scripts, so I don't think either of those could be the problem.
  
MeanMachine
Posts: 3757
Posted on 2009-04-06 1:30:40
croverja wrote:


I'm using English, and currently using other grease monkey scripts, so I don't think either of those could be the problem.



Same problem here with the same settings!
  
croverja
Posts: 0
Posted on 2009-04-06 1:30:53
I checked, no errors, some warnings and messages, but error free.
  
Mikkel_Chargers
Posts: 1
Posted on 2009-04-06 1:43:28
croverja wrote:

I checked, no errors, some warnings and messages, but error free.


Very strange. I just tried to reboot to Windows to see whether I had problems there, but the script is still working on my machine. I will try to look at the script next weekend. Right now I need to get some sleep
  
pstimpel
Posts: 10622
Posted on 2009-04-06 8:51:05
Mikkel_Chargers wrote:


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

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



First of all, great to see more and more guys developing these scripts

The first is working like expected, the second one seems to need a little bit too long for collecting the information. However, it is working too. You should check if you could make this part faster


var selected = document.evaluate( ".//option[@selected]", playerData.snapshotItem(playerData.snapshotLength-1),
null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);

addTraining(selected.snapshotItem(0).innerHTML + ", " +
selected.snapshotItem(1).innerHTML);



It is not really fast to work on the browsers objects for html itself. Much faster it is when you make your string mangling in an variable and replace the browser content in one larger step at the end of the script.

Regards

Peter

Edit: PLease switch based on address line:


url: 'http://www.grid-iron.org/index.php?page=club&subpage=training',



if the user opened GI by http://grid-iron.org... you should query http://grid-iron.org, if he opened by using http://www.grid-iron.org then you have to use http://www.grid-iron.org for your query from inside the script. If not you will run into trouble when collecting data that need session data based on users login. training settings and skills are such data.
  
Mikkel_Chargers
Posts: 1
Posted on 2009-04-06 9:16:25
Thanks for the comments . I will update the script next week when I get time.
  
 
Last posts
2024-10-10 21:54
Survivor game
Author:RobTger
2024-10-10 19:22
2024 predictions
Author:philiom
2024-10-10 19:22
Survivor game
Author:philiom
2024-10-10 18:22
Messages I can't delete
Author:philiom
2024-10-10 15:53
2024 predictions
Author:martinroldan
2024-10-10 15:49
Survivor game
Author:martinroldan
2024-10-10 12:18
2024 predictions
Author:Radu27
2024-10-10 11:54
2024 predictions
Author:jaythegrim