|
What fun...
This is tedious work here. No rushing this job!
I am using an example PBP to set up the logic, I first check the result. So far I have it checking for a walk, single and double. If it is a single or walk, it puts the proper runner on 1B, a double, it puts him on 2B. Then the next line is read in. This is the movement, if any. So, I check for ' moves to second' and grab his ID and replace it with his name and put him on 2nd. Easy for a single or walk. It gets complicated when this happens:
Runner from 2nd tries for 3rd, SAFE, throw made to third
Since that line has no player ID, I have to see who was on 2nd and move him to 3rd. Or, if the runner was out, I have to remove him.
I have to find all instances of every situation, walk, hbp, K and then he makes it to first, catchers interference, sac, failed sac, sac fly, runner pick off, etc...
Then once I add the code, I have to have it run through pitch by pitch to make sure it is displaying properly. Very time consuming and it gets boring watching the same game 20 times!!
Then, once I get all of the running situation working, then I have to do some scoring stuff. I have to design a linescore type thing, where I can show inning by inning scoring and totals.
OK, I used this generic field, and I do not plan on changing it to show the actual ballpark, maybe in future versions, but not this version. I do not think we need to have the players pictures on the field. I would have to resize the pics, and not sure how hard that will be.
Do you think I should put the defense in there? That may be a pain in the ass, as I would have to load in another file to get that information. I do not think defense replacements are mentioned in the pbp log.
If someone has a snazzier ballfield, send it to me.
One thing that may be possible, is to show on the ballfield where the ball was hit, using the 4M, 78M, etc. Maybe put a big dot there.
There is currently a hard coded 3 second delay. This would be a variable that can be changed. 6, or 3.3 , etc. I am not sure at this point if it can be changed during the game viewing. I do bypass the delay on some things, like the movement of the players. I will also make the delay a little longer between innings
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it!  New show every Monday!! New Blues HOF![/COLOR][/FONT]
|