User Pass
Home Sign Up Contact Log In
Forum > Suggestions > Field Graphic Upgrade
Page:
 
GG
offline
Link
 
Here's the new ball...


http://i10.photobucket.com/albums/a136/ggakma/GLB/BALL/ball.gif
 
GG
offline
Link
 
...
Last edited Sep 27, 2008 02:34:37
 
saintedix
offline
Link
 
Originally posted by fool
Okay, I got the script and it's a GREAT improvement! I still haven't figured out how to change the field and the dots from their normal look. Can someone point me in the right direction? Thx.


-Right click on your greasemonkey icon in the bottom right of you page and select "manage user scripts".
-Select the "Replay Rewrite" and click the "Edit" button in the bottom left.
-It may ask you to choose an editing program - if so, choose Notepad or Wordpad.
-Scroll down about 20 lines under the "----main----" you should see:

Originally posted by

// ---------- main ----------------

// you can modify the following variables
var highlightPlayers = true;
var autoplay = false;
var preDelay = 2500;
var postDelay = 4500;
var alternateField = false;
var alternatePlayers = false;
var alwaysPause = false;
var alwaysShowPlayText = false;
// you can modify the previous variables


-Modify what I have in bold so that it reads "true" instead of "false"
-Scroll down a little farther until you find this:
Originally posted by

if (alternateField == true) {
var fields = [];
fields[fields.length] =


-Just under that there will be multiple links to imageshack web pages. Just choose the field you want to use, and delete the rest of the links. It should look something like this (I used the retractable roof field):

Originally posted by

if (alternateField == true) {
var fields = [];
fields[fields.length] = 'url(http://img232.imageshack.us/img232/5444/pabstglbretractablebr6.jpg)';
var hometeam = document.getElementsByClassName("team_name")[2].innerHTML;
hometeam = hometeam.slice(hometeam.indexOf("team_id=")+"team_id=".length);
hometeam = hometeam.slice(0,hometeam.indexOf('"'));
var field = document.getElementById("replay_area");
//field.style.backgroundImage = "url(http://img362.imageshack.us/img362/9571/fieldnewindexednq2.png)";
field.style.backgroundImage = fields[parseInt(hometeam)%fields.length];
}


Hope that helps!
Last edited Sep 27, 2008 02:33:40
 
saintedix
offline
Link
 
LOL, you didn't have to delete your directions GG!

I like your ball better. We'll need pabst to see what it looks like in the replays.
 
GG
offline
Link
 
Your instructions > my instructions. So 'nuff said.
And yeah, cant wait to see what PABST can do with not just the ball, but all the new players as well. And new colors.

And those fears that it would take forever for the replays to work is nonsense. It's running like the default replays are, no lag at all.
 
GG
offline
Link
 
The only thing i want to know about the script is how to remove the colors that surround your player. My team is full of my own players, so i see a lot of pink, green, yellow, black, etc squares around the players. I'd rather just have the raw look. But I cant find where in the script to remove that.
 
saintedix
offline
Link
 
Originally posted by GG
Your instructions > my instructions. So 'nuff said.
And yeah, cant wait to see what PABST can do with not just the ball, but all the new players as well. And new colors.

And those fears that it would take forever for the replays to work is nonsense. It's running like the default replays are, no lag at all.


Yeah, the only thing I notice is that it takes about a second or two to load all the images immediately, then once they are loaded it runs like a...egh, too tired to make a simile right now.

It works fine.
Last edited Sep 27, 2008 02:46:10
 
GG
offline
Link
 
Yeah, so if they were coming from bort's server it would be even quicker.
 
Pekitheboy
offline
Link
 
seintedix,GG and you all working on this, Thank you sooooooooooo much!This is soooo cool!
 
saintedix
offline
Link
 
Originally posted by GG
Yeah, so if they were coming from bort's server it would be even quicker.


LOL. That just made me think about thousands of GLBers watching replays at once and spontaneously combusting the imageshack servers
 
Pekitheboy
offline
Link
 
but can anybody explain how to add that custom player icons into script?
 
Cronus6
offline
Link
 
Originally posted by GG
The only thing i want to know about the script is how to remove the colors that surround your player. My team is full of my own players, so i see a lot of pink, green, yellow, black, etc squares around the players. I'd rather just have the raw look. But I cant find where in the script to remove that.


Change : var highlightPlayers = true;

to false (it's in the same section as alternateField etc).
 
GG
offline
Link
 
Originally posted by saintedix
Originally posted by GG

Yeah, so if they were coming from bort's server it would be even quicker.


LOL. That just made me think about thousands of GLBers watching replays at once and spontaneously combusting the imageshack servers


Good point. Well, hopefully Bort jumps on this because it's really good to go right now. Meanwhile, I just sit there now watching replays far more than i ever used to. Everything works really well together, the grass, textures, shadows and players.
 
GG
offline
Link
 
Originally posted by Cronus6
Originally posted by GG

The only thing i want to know about the script is how to remove the colors that surround your player. My team is full of my own players, so i see a lot of pink, green, yellow, black, etc squares around the players. I'd rather just have the raw look. But I cant find where in the script to remove that.


Change : var highlightPlayers = true;

to false (it's in the same section as alternateField etc).


Thanks.
 
Pekitheboy
offline
Link
 
Originally posted by Pekitheboy
but can anybody explain how to add that custom player icons into script?


anybody?
 
Page:
 


You are not logged in. Please log in if you want to post a reply.