User Pass
Home Sign Up Contact Log In
Forum > Suggestions > Field Graphic Upgrade
Page:
 
GG
offline
Link
 
Also, rather than deleting the other fields, it's probably better to put the one you want to use above the others, because it just uses the first one listed. This way, you can change the field anytime you like. Just have to refresh the browser.
 
GG
offline
Link
 
Originally posted by Pekitheboy
Originally posted by Pekitheboy

but can anybody explain how to add that custom player icons into script?


anybody?


Im not sure what you mean. You mean from previous scripts, like the animated players? One of the other guys will know the answer to that.
 
Pekitheboy
offline
Link
 
no i mean like the red or black ones
 
fool
offline
Link
 
Originally posted by saintedix
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!


This worked like a charm, thank you so much.. I LOVE the improvement, makes the game MUCH more enjoyable, Kudos to everyone involved.
 
GG
offline
Link
 
Originally posted by Pekitheboy
no i mean like the red or black ones


Have to wait for PABST to change the script, to have the right pathing.
 
pabst
offline
Link
 
Originally posted by saintedix
I'm curious pabst, but do you think that if I created a separate image for the shadows (on the roof field) at like 40% opacity, that it could be placed over the whole replay so that the shadows are cast on the player dots as well?
I'm not sure if this is feasible as it would probably cause CPU usage issues, but I'm willing to try it.

Originally posted by saintedix
Another upgrade I'd like to see, but I wouldn't have the slightest knowledge of implementing, is a football graphic that rotates when the QB throws it until it gets to the receiver. I can make the graphic, but I don't know how to implement it into the replay.
It looks like I can add it to the script without too much trouble. An animated gif of the ball spinning would probably be the easiest since you could just replace Bort's image with yours whenever no one is holding the ball (fumbles might require work). A series of images of the ball in flight would probably work as well though the timing could be problematic.

Originally posted by saintedix
P.S. A suggestion for your replay script - maybe a blue line to indicate the original line of scrimmage with a true/false tag if someone wants to turn it off.
This has been requested before; I just never got around to it.
Last edited Sep 27, 2008 08:51:26
 
pabst
offline
Link
 
Originally posted by GG
Also, rather than deleting the other fields, it's probably better to put the one you want to use above the others, because it just uses the first one listed. This way, you can change the field anytime you like. Just have to refresh the browser.

It doesn't just choose the first field listed (at least it's not supposed to). If you only want a single field, you'll have to delete or comment out (add // at the front of the line) the fields you don't want.
 
pabst
offline
Link
 
Nevermind, I answered the wrong question.
Last edited Sep 27, 2008 09:09:48
 
GG
offline
Link
 
bump
 
ShamsTron
offline
Link
 
This thread has too much good stuff to fall off the 1st page.
 
Timbo Slice
offline
Link
 
did anybody look at that web site. here it is again. http://www.fieldturf.com/index.cfm do you think you can make a turf field.
 
Curtis06DJM
offline
Link
 
i added the script, but on mine doesnt look like i think it is suppose to, it looks like this

http://s197.photobucket.com/albums/aa257/Curtis06DJM/?action=view¤t=RR.jpg

i am under the impression that it should have a grassy type field and the players were to look a little upgraded, just wondering if this is right or not
 
GG
offline
Link
 
Originally posted by Curtis06DJM
i added the script, but on mine doesnt look like i think it is suppose to, it looks like this

http://s197.photobucket.com/albums/aa257/Curtis06DJM/?action=view&current=RR.jpg

i am under the impression that it should have a grassy type field and the players were to look a little upgraded, just wondering if this is right or not


Go back to the post that Saintedix made and follow the instructions there. You have to actually EDIT the script a little to change FALSE to TRUE to enable it to use the new fields and players.
 
GG
offline
Link
 
Originally posted by fool
Originally posted by saintedix

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!


This worked like a charm, thank you so much.. I LOVE the improvement, makes the game MUCH more enjoyable, Kudos to everyone involved.


this post
 
GG
offline
Link
 
bump
 
Page:
 


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