Jump to content

Box Score Extractor


tywiggins

Recommended Posts

  • Replies 778
  • Created
  • Last Reply

Top Posters In This Topic

If you look at the old High Heat boxscores and make them into a regular .txt file, we can use the Box Score Utility created by Marcus. With his program we can keep track of anything such as hitting streaks, particular batter vs. particular pitcher etc.

I'm just thinking, why reinvent the wheel when there is something already created. If you found out how to extract the boxscores, then it's just a matter of extracting it in High Heat style boxscores. Those who remember the utility created by Marcus can atest to it.

Just my two cents.

Can you post a High Heat boxscore? I don't have High Heat anymore. I did find Marcus' program though.

Link to comment
Share on other sites

I just did a copy and paste. The alignment was thrown off. One thing about High Heat was that it kept ALL the boxscores on one .txt file. Just FYI.

FINAL 1 2 3 4 5 6 7 8 9 R H E

Anaheim 0 2 2 1 0 0 2 0 2 9 17 0

San Francisco 2 0 1 0 0 0 0 0 0 3 12 0

Anaheim AB R H BI BB SO LO AVG

David Eckstein ss 5 0 2 1 0 0 0 .400

Darin Erstad cf 5 1 2 0 0 0 2 .400

Tim Salmon rf 5 1 2 1 0 0 2 .400

Julio Ramirez rf 0 0 0 0 0 0 0 .000

Garret Anderson lf 4 1 3 1 0 0 1 .750

Troy Glaus 3b 5 2 3 2 0 0 3 .600

Scott Spiezio 1b 5 1 1 2 0 0 2 .200

Benji Gil 2b 4 0 1 0 0 0 2 .250

Bengie Molina c 4 1 1 1 0 0 0 .250

Aaron Sele p 3 2 2 1 0 0 0 .667

Adam Kennedy ph 1 0 0 0 0 0 0 .000

Steven Thomas p 0 0 0 0 0 0 0 .000

TOTALS: 41 9 17 9 0 0 12

BATTING

2B: Glaus (Rueter). 3B: Erstad (Rueter); Salmon

(Rueter); Eckstein (Rueter); Glaus (Rodriguez).

HR: Molina (2nd inning off Rueter, 0 on, 2 out);

Spiezio (7th inning off Rodriguez, 1 on, 2 out);

Glaus (9th inning off Rodriguez, 1 on, 2 out).

SF: Anderson. RBI: Molina; Sele; Salmon;

Anderson; Eckstein; Spiezio 2; Glaus 2. 2-OUT

RBI: Molina; Sele; Spiezio 2; Glaus 2. Runners

left in scoring position, 2 outs: Glaus. GIDP:

Anderson. Team LOB: 3.

FIELDING

Outfield assist: Salmon (Santiago at 2nd base);

Anderson (Rueter at 2nd base); Erstad (Aurilia at

3rd base).

San Francisco AB R H BI BB SO LO AVG

Ray Durham 2b 4 1 3 0 0 0 0 .750

Rich Aurilia ss 4 1 3 0 0 1 0 .750

Edgardo Alfonzo 3b 4 1 2 2 0 0 4 .500

Barry Bonds lf 4 0 1 1 0 0 2 .250

Jose Cruz rf 4 0 0 0 0 2 2 .000

J.T. Snow 1b 4 0 1 0 0 0 2 .250

Marquis Grissom cf 4 0 0 0 0 0 1 .000

Benito Santiago c 4 0 1 0 0 1 1 .250

Kirk Rueter p 2 0 1 0 0 0 1 .500

Felix Rodriguez p 1 0 0 0 0 0 0 .000

TOTALS: 35 3 12 3 0 4 13

BATTING

2B: Aurilia (Sele). HR: Alfonzo (1st inning off

Sele, 1 on, 1 out). RBI: Alfonzo 2; Bonds.

Runners left in scoring position, 2 outs: Snow;

Cruz. Team LOB: 5.

BASERUNNING

Picked off: Durham (2nd base, Sele).

FIELDING

DP: 1 (Durham Aurilia Snow).

Anaheim IP H R ER BB SO HR ERA

Aaron Sele (W) 7 12 3 3 0 3 1 3.86

Steven Thomas 2 0 0 0 0 1 0 0.00

San Francisco IP H R ER BB SO HR ERA

Kirk Rueter (L) 5 11 5 5 0 0 1 9.00

Felix Rodriguez 4 6 4 4 0 0 2 9.00

Pitches-Strikes: Rueter 38-36; Rodriguez 21-21;

Sele 59-52; Thomas 14-12. Ground balls-Fly balls:

Rueter 11-14; Rodriguez 10-7; Sele 9-17; Thomas

2-3. Batters faced: Rueter 25; Rodriguez 17;

Sele 29; Thomas 6.

Umpires: HP: Ryan Jones. 1B: James Ragano. 2B:

Tony Peng. 3B: Tod Frye. T: 3:13. Att: 40,930.

Weather: 85 degrees, clear. Wind: 4 mph, across,

left to right and slightly in.

High Heat Major League Baseball 2004

Player of the Game:

Aaron Sele

GAME SUMMARY

Top of the 1st inning: Anaheim batting

David Eckstein grounded out to second.

Darin Erstad singled.

Tim Salmon flied out to left.

Garret Anderson singled, Anderson to second,

Erstad to third.

Troy Glaus grounded out to shortstop.

0 Runs, 2 Hits, 0 Errors

Anaheim 0, San Francisco 0

Bottom of the 1st inning: San Francisco batting

Ray Durham singled.

Rich Aurilia singled, Durham to second.

Durham was picked off second base by Sele.

Edgardo Alfonzo HOMERED, Aurilia SCORED.

Barry Bonds flied out to right.

Jose Cruz grounded out to shortstop.

2 Runs, 3 Hits, 0 Errors

Anaheim 0, San Francisco 2

Top of the 2nd inning: Anaheim batting

Scott Spiezio flied out to center.

Benji Gil grounded out to shortstop.

Bengie Molina HOMERED.

Aaron Sele singled.

David Eckstein flied out to right.

2 Runs, 2 Hits, 0 Errors

Anaheim 2, San Francisco 2

Bottom of the 2nd inning: San Francisco batting

J.T. Snow singled.

Marquis Grissom grounded into fielder's choice to

second.

Benito Santiago flied out to right.

Kirk Rueter flied out to shortstop.

0 Runs, 1 Hit, 0 Errors

Anaheim 2, San Francisco 2

Top of the 3rd inning: Anaheim batting

Darin Erstad tripled, Erstad to third.

Tim Salmon tripled, Erstad SCORED, Salmon to

third.

Garret Anderson hit a sacrifice fly, Salmon

SCORED.

Troy Glaus doubled, Glaus to second.

Scott Spiezio flied out to right, Glaus to third.

Benji Gil grounded out to third.

2 Runs, 3 Hits, 0 Errors

Anaheim 4, San Francisco 2

Bottom of the 3rd inning: San Francisco batting

Ray Durham singled.

Rich Aurilia singled, Durham to second.

Edgardo Alfonzo grounded into fielder's choice to

second, Durham to third.

Barry Bonds singled, Durham SCORED, Alfonzo to

second.

Jose Cruz flied out to right.

J.T. Snow flied out to shortstop.

1 Run, 3 Hits, 0 Errors

Anaheim 4, San Francisco 3

Top of the 4th inning: Anaheim batting

Bengie Molina grounded out to second.

Aaron Sele singled.

David Eckstein tripled, Sele SCORED, Eckstein to

third.

Darin Erstad grounded out to first.

Tim Salmon grounded out to shortstop.

1 Run, 2 Hits, 0 Errors

Anaheim 5, San Francisco 3

Bottom of the 4th inning: San Francisco batting

Marquis Grissom flied out to right.

Benito Santiago singled, Benito Santiago out at

second base.

Kirk Rueter singled, Kirk Rueter out at second

base.

0 Runs, 2 Hits, 0 Errors

Anaheim 5, San Francisco 3

Top of the 5th inning: Anaheim batting

Garret Anderson singled.

Troy Glaus flied out to center.

Scott Spiezio flied out to right.

Benji Gil singled, Benji Gil grounded into

fielder's choice to second, Garret Anderson out at

third base.

0 Runs, 2 Hits, 0 Errors

Anaheim 5, San Francisco 3

Bottom of the 5th inning: San Francisco batting

Ray Durham singled.

Rich Aurilia struck out swinging.

Edgardo Alfonzo singled, Durham to second.

Barry Bonds flied out to left.

Jose Cruz struck out swinging.

0 Runs, 2 Hits, 0 Errors

Anaheim 5, San Francisco 3

Top of the 6th inning: Anaheim batting

Felix Rodriguez relieved Kirk Rueter.

Bengie Molina flied out to center.

Aaron Sele flied out to right.

David Eckstein singled.

Darin Erstad grounded out to first.

0 Runs, 1 Hit, 0 Errors

Anaheim 5, San Francisco 3

Bottom of the 6th inning: San Francisco batting

J.T. Snow popped out to third.

Marquis Grissom grounded out to second.

Benito Santiago struck out swinging.

0 Runs, 0 Hits, 0 Errors

Anaheim 5, San Francisco 3

Top of the 7th inning: Anaheim batting

Tim Salmon singled.

Garret Anderson grounded into double play to

second.

Troy Glaus tripled, Glaus to third.

Scott Spiezio HOMERED, Glaus SCORED.

Benji Gil grounded out to pitcher.

2 Runs, 3 Hits, 0 Errors

Anaheim 7, San Francisco 3

Bottom of the 7th inning: San Francisco batting

Felix Rodriguez flied out to left.

Ray Durham grounded out to first.

Rich Aurilia doubled, Rich Aurilia out at third

base.

0 Runs, 1 Hit, 0 Errors

Anaheim 7, San Francisco 3

Top of the 8th inning: Anaheim batting

Bengie Molina grounded out to second.

Adam Kennedy hit for Aaron Sele.

Adam Kennedy popped out to catcher.

David Eckstein flied out to right.

0 Runs, 0 Hits, 0 Errors

Anaheim 7, San Francisco 3

Bottom of the 8th inning: San Francisco batting

Steven Thomas relieved Aaron Sele.

Edgardo Alfonzo flied out to right.

Barry Bonds flied out to right.

Jose Cruz struck out swinging.

0 Runs, 0 Hits, 0 Errors

Anaheim 7, San Francisco 3

Top of the 9th inning: Anaheim batting

Darin Erstad flied out to left.

Tim Salmon grounded out to second.

Garret Anderson singled.

Troy Glaus HOMERED, Anderson SCORED.

Scott Spiezio flied out to right.

2 Runs, 2 Hits, 0 Errors

Anaheim 9, San Francisco 3

Bottom of the 9th inning: San Francisco batting

Julio Ramirez came in for Tim Salmon in right.

J.T. Snow grounded out to third.

Marquis Grissom popped out to pitcher.

Benito Santiago grounded out to first.

0 Runs, 0 Hits, 0 Errors

Anaheim 9, San Francisco 3

Link to comment
Share on other sites

Thanks, sharpshooter. What do you mean by ALL of the boxscores in one text file? Every team's boxscores for the entire dynasty? Every team's boxscores for the entire season? Or something else?

Link to comment
Share on other sites

Yep. Every boxscore for every team, for every game. All in one file. I don't know if it's dynasty or season. I always palyed HH in season mode.

I don't have a boxscore witha all the boxscores for a season, but I do remember the size was about 12MB.

Link to comment
Share on other sites

This is so absolutely cool! Thank you, thank you, thank you!!! I'd be happy with *any* box score layout. This would be a cool layout - a combination of old style/new style boxes:

NAME Pos AB R H RBI BB SO PO A E

etc., etc.

As I said, *whatever* you decide on would be an awesome, awesome additon!!! Can you tell, I'm kind of excited :-) :-)

Link to comment
Share on other sites

Yep. Every boxscore for every team, for every game. All in one file. I don't know if it's dynasty or season. I always palyed HH in season mode.

I don't have a boxscore witha all the boxscores for a season, but I do remember the size was about 12MB.

I can't get the boxscores for every team. You will have to manually run my program after each game(while the box score is still accessible)

Link to comment
Share on other sites

Well, I didn't get any coding done last night. But I found the linescore, the current inning, number of outs, and whether it is the top half or bottom half of the inning. (These took a while to figure out)

I also found the locations for all of the stats. I didn't find the pitchcount yet. Also I would like to find the current game date. So tonight, I'll do a little searching for the game date and the pitchcount. Then I'll start coding.

I noticed a couple of interesting things last night.

1. The game lets you switch stadiums anytime you want.(You can even set the wind speed and direction) So you could cheat if you wanted to.

2. I cheated (for testing purposes) and changed the number of runs scored in one inning from a 1 to a 7. I was losing 5-1 . I ended up winning 7-5, but no pitcher got credit for the win. The opposing pitcher got the loss, and my closer got the save.

What derived stats to you guys want? Do you want OBP, SLG, OPS, etc. for batters? Do you want WHIP, BAA(Batting average against), etc. for pitchers?

Link to comment
Share on other sites

sabermetric stats would be better tywiggins.

Anyway, how do you exactly code the stats into html? im quite interested in your work here.

Which sabermetric stats? And could you post the formulas for the stats you want?

My program will read from the game's memory. I will then load the stats into arrays. Then the program will create a new html file and output the stats where appropriate.

Link to comment
Share on other sites

ty, I might be able to help out with the HTML creation. If you want, shoot me an e-mail at markb@mvpmods.com and we can talk.

Also, would it be possible to note how each out was made and create a boxscore like that provided by High Heat, where it would have the standard boxscore, then go into half-inning details and say, for example;

Top of the 1st, New York (AL) batting.

Johnny Damon grounded out.

Derek Jeter singled.

Jason Giambi singled.

Alex Rodriguez grounded into double play.

2 hits, 0 runs, 0 errors.

Theoretically, it might be possible to get this data from the previous at-bat screen that shows the location of the pitches and the result of the previous at-bats. If this could be achieved, the hit, run and error totals could be grabbed from the result of the output. I'm not sure if this makes sense, but I can copy an old High Heat boxscore that I printed a while back and post that, if necessary.

Anyway, just a thought. :)

Link to comment
Share on other sites

ty, I might be able to help out with the HTML creation. If you want, shoot me an e-mail at markb@mvpmods.com and we can talk.

Also, would it be possible to note how each out was made and create a boxscore like that provided by High Heat, where it would have the standard boxscore, then go into half-inning details and say, for example;

Theoretically, it might be possible to get this data from the previous at-bat screen that shows the location of the pitches and the result of the previous at-bats. If this could be achieved, the hit, run and error totals could be grabbed from the result of the output. I'm not sure if this makes sense, but I can copy an old High Heat boxscore that I printed a while back and post that, if necessary.

Anyway, just a thought. :)

I've been thinking about that, but I haven't found the pitch by pitch information yet. That stuff isn't really part of the boxscore. Once I find this information, I might be able to make a game log.

Someone already posted a High Heat boxscore on here, so you don't need to do that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...