View Full Version : ERA bug in BM2010
xmant2000
05-24-2010, 02:56 AM
I guess it's a moot point since BM2011 is now out but I noticed a bug in BM2010.
I have discovered that if a pitcher comes into the game and gives up runs without getting anyone out and then leaves the game, when you look at the box score after the game that pitchers ERA is 0.00
This has happened a couple of times in the season I am playing now both to my pitchers and to computer AI pitchers.
For example:
IP H BB HR R ER K PIT ERA
Burke Badenhop 0.0 3 0 0 2 1 0 14 0.00
His ERA should not be zero in this example.
Thank you for your time.
xmant2000
05-24-2010, 02:57 AM
I had those stats all spread out so they would be easier to read but it won't keep the changes when I try to edit the post. Sorry.
HoustonGM
05-24-2010, 05:27 AM
The ERA technically is "infinite", and there's no real way for the game to express that.
Lex Logan
05-24-2010, 10:49 AM
The ERA technically is "infinite", and there's no real way for the game to express that.
It would be easy to have it displayed as 99.99 or such. Zero should be a good ERA :) Note that the code HAS to test for this condition, otherwise the program would crash. So 0.00 is an arbitrary and undesirable choice.
MrEvolution
05-25-2010, 03:59 AM
The ERA technically is "infinite", and there's no real way for the game to express that.
it is infinite, in real life a ERA such as this should be displayed as -, just as a hitter with a walk and no hits or at-bats would be displayed as -
MrEvolution
05-25-2010, 04:03 AM
as i think about this, and i am a math major, maybe a hitter with no at-bats should be a dash '-' since he has not proven whether he would get a hit with an at-bat or not. But, a pitcher with runs against and no outs has proven that he will give up runs without getting a runner out, perhaps instead of a dash he should have an infinity symbol in his era. That would make for interesting but rare baseball cards.
Lex Logan
05-25-2010, 12:08 PM
Lacking an infinity symbol, something like #.## or ~.~~ would work. As I said, 0.00 has to be a deliberate choice. Another solution is to add .0000000001 outs to the pitcher's stats, which is too small to affect anything but the zero out case. That would result in 0.00 for a pitcher with no innings/no earned runs but 999.99 or the like for infinity.
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.