Latest News: OOTP PATCH 9.1.2 released! - OOTP 9 RELEASED! - Title Bout Championship Boxing 2.5 released! - OOTP 2007 receives Editors Choice Award from PC Gamer - Inside the Park Baseball Patch 1.03 released, DEMO now available

Click here to download Out of the Park Baseball 9!

Go Back   OOTP Developments Forums > OUT OF THE PARK BASEBALL 9 > OOTP 9 - Mods > Database Tools
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Database Tools Do you need to take a dump? SQL gurus welcome

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 08-12-2007, 03:57 PM   #1 (permalink)
Moderator*
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Buckingham, England
Posts: 2,897
Career stats v teams

On a current season basis you can see players stats against other teams, but not for previous seasons or in total.

What I plan to do is write a utility that you run at the end of the playoffs (or anytime before the new preseason) that calculates the player vs team stats and stores them in a new .dat file so that each years values are stored.

There will then also be an export to csv function so that this data can be looked at in Excel.

Batting and fielding will have splits down to the position the player plays in the field, and pitching will be split into starting and relieving.

I plan to keep the structure of the .dat true to the current structure that Markus uses.
__________________
Tony M
Technical Support Moderator


Tony M is offline   Reply With Quote
Old 08-13-2007, 12:55 PM   #2 (permalink)
Moderator*
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Buckingham, England
Posts: 2,897
I've just realised that there isn't a game fielding breakdown in the player record, so it'll just be pitching and batting breakdowns saved by player against each team.
__________________
Tony M
Technical Support Moderator


Tony M is offline   Reply With Quote
Old 08-13-2007, 01:19 PM   #3 (permalink)
Hall Of Famer
 
pstrickert's Avatar
 
Join Date: Dec 2005
Posts: 2,655
I like this idea. Too bad the game doesn't include it already. Did you add it to the list of suggestions for 2008?
pstrickert is offline   Reply With Quote
Old 08-13-2007, 01:30 PM   #4 (permalink)
Moderator*
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Buckingham, England
Posts: 2,897
Quote:
Originally Posted by pstrickert View Post
I like this idea. Too bad the game doesn't include it already. Did you add it to the list of suggestions for 2008?
Yes, both the fielding per game and the ability to hold game summaries in the history of a player have been added as suggestions at various points.

I'm thinking I might add the relevant stats to a players' history text file, so that maybe say 4 years into a sim, the following lines might get added when you run my mod

01-12-2011 - Has a lifetime 17-4 record with a 2.10ERA against the Baltimore Orioles in 25 starts
01-12-2001 - Has a lifetime 10-10 record with a 4.75ERA against the New York Yankees in 30 starts

etc

(obviously hitters would get hitting stats)
__________________
Tony M
Technical Support Moderator


Tony M is offline   Reply With Quote
Old 08-13-2007, 02:06 PM   #5 (permalink)
Hall Of Famer
 
pstrickert's Avatar
 
Join Date: Dec 2005
Posts: 2,655
I'd love to see the PbP include stats like that!
pstrickert is offline   Reply With Quote
Old 08-13-2007, 02:28 PM   #6 (permalink)
Moderator*
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Buckingham, England
Posts: 2,897
Quote:
Originally Posted by pstrickert View Post
I'd love to see the PbP include stats like that!
Beyond my abilities unfortunately...
__________________
Tony M
Technical Support Moderator


Tony M is offline   Reply With Quote
Old 08-14-2007, 12:39 PM   #7 (permalink)
Moderator*
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Buckingham, England
Posts: 2,897
Well, it's getting there.

I've got the program to update my .dat file every year (manual starting it of course) and it creates a csv file for players_teams_batting_stats.csv and players_teams_pitching_stats.csv

Sample data from 1902-1906 at http://www.bourtonville.f2s.com/players_teams.zip

The data in pitching looks fine (I can by doing some sums in Excel that Cy Young went 6-7 in 15 starts against Baltimore Orioles/New York Highlanders giving up 31 ER whilst striking out 71 of the 472 batters he faced over 117.2 innings)

However in batting it appears that some batters have been given records batting against their own team. I'm trying to work out why this is happening because if the players team for a particular game is the home team then the opponent is the away team and vice versa, but somewhere along the line this must be getting muddled.

After solving that issue, I'll set around outputting the results to the player history pages.
__________________
Tony M
Technical Support Moderator


Tony M is offline   Reply With Quote
Old 08-14-2007, 12:48 PM   #8 (permalink)
Moderator*
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Buckingham, England
Posts: 2,897
Other useless facts you can glean from the data

Rube Waddell liked striking out the Cardinals. He did it 257 times in that 5 year period...

Joe McGinnity gave up a homerun on average every 45 Boston Americans batter that he faced... (but only 1 of those was in spring training out of 52 batters faced)

Deacon Phillippe was 3-1 in 4 postseason starts for Pittsburgh against the Highlanders...
__________________
Tony M
Technical Support Moderator


Tony M is offline   Reply With Quote
Old 08-14-2007, 12:51 PM   #9 (permalink)
Moderator*
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Buckingham, England
Posts: 2,897
If anyone is looking at this

Game Type

0 = Regular
2 = Spring Training
3 = Postseason

Position

1-9 are regular position numbers in the Batting stats
I'm guessing 0 is like Pinch Hitter (and 10 is probably DH)

1 in the pitching stats is as a starter
0 in the pitching stats is as a reliever
__________________
Tony M
Technical Support Moderator


Tony M is offline   Reply With Quote
Old 08-14-2007, 03:53 PM   #10 (permalink)
All Star Reserve
 
No Pepper's Avatar
 
Join Date: Jan 2003
Location: Milwaukee, WI
Posts: 746
redsoxford, I'm glad to see you working on this. Can any information like this be gleaned from exhibition games? Thanks again for the good work!
No Pepper is offline   Reply With Quote
Old 08-14-2007, 04:55 PM   #11 (permalink)
Moderator*
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Buckingham, England
Posts: 2,897
Quote:
Originally Posted by No Pepper View Post
redsoxford, I'm glad to see you working on this. Can any information like this be gleaned from exhibition games? Thanks again for the good work!
I believe exhibition games can be picked up, as there seems to be a gap in the game type field...
__________________
Tony M
Technical Support Moderator


Tony M is offline   Reply With Quote
Old 06-07-2008, 03:14 PM   #12 (permalink)
Minors (Triple A)
 
Join Date: Apr 2004
Posts: 221
Haven't noticed anything new in a while, thought I bump it to ask how is this going.

For me this was the only addition I would be really looking forward to for OOTP2009.

Anyway good luck on the program hope its going well.
DerekT is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:02 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 Out of the Park Developments