tysonlowery
New Error Logic
April 07, 2002 at 10:36PM View BBCode
I've made some significant changes to how error logic is handled in the game. The pinning of errors on a specific player has been fine-tuned and is very specific to the play. I'll be moving this code onto the beta site after the 7PM games tonight.
Also, you'll see who fielded each play, and whether it was a fielding or throwing error. Throwing errors are two base errors. Outfield errors will also be two base errors.
Hopefully this doesn't inflate offense too much. I'll be curious to see how it effects total errors over the course of a season.
Please take specific notice to the play-by-play over the next week and make your comments. Thanks!
tysonlowery
April 07, 2002 at 10:45PM View BBCode
I decided to put it in before the 7PM games, just to get another test in. So check out the latest box scores in a few.
Bob
April 08, 2002 at 12:23AM View BBCode
At first glance, I love it. Although my first play in the field was a throwing error by my 3B. :mad:
Some comments/observations/questions:
1. On the throwing error (see above), it didn't indicate if the batter advance to 2nd or stayed at first.
2. I don't think every throwing error should be for 2 bases. Sometimes the throw just pulls the 1B off the bag.
3. Were you able to incorporate throwing errors on SB attempts?
4. On force plays and double plays, it doesn't mention who fielded the ball.
5. During the following play-by-play, a groundout by Curry was not attributed to a fielder.
Inning: 5 Milwaukee
Bobby Peters singles. Bill Bushelman strikes out. Ward Curry grounds out. Runners advance on the play. Wild pitch, all runners advance a base. Monte Smith pops out to the shortstop.
6. It would be really cool if you could describe where the hits went as well as the outs. For example, "Eddie Lazorko singles to left field" really adds to the flavor.
7. Although the sample size is ridiculously small, in my first three games under the new logic there were a total of 4 errors between the two teams. That certainly seems normal.
8. I know it's asking a lot, but it would be great to keep statistics on number of putouts, assists, etc. It would also allow us to analyze fielding percentages and verify ratings like range and arm are working realistically.
Really cool addition, Tyson. Keep up the good work.
tysonlowery
April 08, 2002 at 01:25AM View BBCode
Hey Bob, thanks for the comments. Let me try to respond to some of them.
1 & 2) For now, it simply gives a 2 base error. But I'll work on it so that sometimes its 2 bases, sometimes its 1, and put it in the box score.
3) I haven't gotten to that yet. Although I think its coming next. I fixed a couple other things while I was mucking around in the code. Such as runners advancing to third after the inning is over, etc.
4) Double plays and force plays are still very generic. I'll work on those this week. I ddn't touch the code for those yet.
5) This falls into the force out bucket. Still undersimplified.
6) Haven't thought through how to do this yet, but would be a cool addition.
8) This is kind of step one of the process. I think we're thinking along the same lines, because that's where I'd like to get.
Bob
Another bug (kinda)
April 08, 2002 at 03:39PM View BBCode
Inning: 1 Brooklyn
Rich Hughes pitching. Joe Treadway grounds out to the second baseman. Delos Carsey doubles. Keith Loman grounds out to the second baseman. Jack Nagelson singles. Cy Rajsich flies out to the center fielder.
With Carsey on 2nd, a ground ball to second should advance him to third. It would make it more realistic if you could combine the code that determines whether a runner advances on a ground out with the logic that determines where the ball was hit. Ground outs to 3B or SS will rarely advance a runner on 2nd, whereas ground outs to 1st or 2nd usually will.
Pages: 1