Forum > Suggestions > Field Graphic Upgrade
saintedix
offline
offline
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!
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
offline
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.
I like your ball better. We'll need pabst to see what it looks like in the replays.
GG
offline
offline
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.
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
offline
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
offline
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.
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
Pekitheboy
offline
offline
seintedix,GG and you all working on this, Thank you sooooooooooo much!This is soooo cool!
saintedix
offline
offline
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
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

Cronus6
offline
offline
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).
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
offline
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.
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
offline
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.
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
offline
Originally posted by Pekitheboy
but can anybody explain how to add that custom player icons into script?
anybody?
but can anybody explain how to add that custom player icons into script?
anybody?
You are not logged in. Please log in if you want to post a reply.



























