Quote:
Originally Posted by Comedian2004
Yep, the comma is the problem.
When I parse a field, I first turn all the commas into semi-colons. So, that comma becomes a semi colon, so his record will have an extra field.
I can't think of a way around it, but I will look at it and see.
I am assuming the comma is in the actual name of the player, as part of their last name. What database did you use?
Just remove the comma from the name in the game, or after you do the dump, remove the comma from the name in the players.csv file.
I have done many historical seasons and never came across that, so I am assuming that since I use the Lahman database, you muse be using another that has added the comma. Whoever created the database needs to change that, as you cannot have a comma or a semi-colon in a field, as either one of those can be used as CSV dump delimiters. Markus originally had a comma in the nickname field when a player went by more than 1 nickname. When I TT'd it, he just eliminated the 2nd nickname instead of changing it to a dash, like I suggested.
For me to change my code to look for a jr. would be too much work, as every program that accessed that file would have to be changed, then it would also have to check for other names:
, jr.
, sr.
, stupid,
,M.D.
Be easier to REMOVE THE DAMN COMMA!
|
No sweat. I can fix that. Thanks for the info.
I'm not using a specific roster set. These are fictional players created by the game using names we have put in the names dat files.
In Lahman, they don't use the "Jr" designation as part of the name. Ken Griffey, Jr., is in there as nameFirst = Ken, nameLast = Griffey, and nameGiven = George Kenneth (Jr.).
I wonder why it never bothered any of your other programs?
Anyway, thanks for this utility. I have spent the last few weeks coming up with league-specific hints, but it's been tedious, and it's nearly impossible to calculate streaks and such manually.
__________________
SGCBL Commissioner
"Beings will come, Frodo. The one constant through all the years has been baseball. Middle Earth has rolled by like an army of Mumakil. It has been erased like a slate, rebuilt and erased again. But baseball has marked the time. This field, this game: it's a part of our past, Frodo. It reminds of us of all that once was good and it could be again. Oh... beings will come Frodo. Beings will most definitely come." -
Gladden Field of Dreams