Home | Webstore
Latest News: OOTP 26 Available - FHM 12 Available - OOTP Go! Available

Out of the Park Baseball 26 Buy Now!

  

Go Back   OOTP Developments Forums > Out of the Park Baseball 26 > OOTP Mods > OOTP Mods - Database Tools

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

Reply
 
Thread Tools
Old 12-15-2006, 02:06 AM   #1
Comedian2004
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 7,085
Anderson Utilities 2006 - AUHomerun

Early Peek at it...

http://www.planetootp.com/AUHomerun/default.htm

Next:

You run it at the end of the year and do a SAVE DATABASE and it saves all the home run information to a database, so you can tally career home runs for all the hitters.

HTML report. A HTML report for each player (with 1 or more homeruns)
This report would list every home run hit by the guy, vs. what pitcher, what team, the inning, outs, count, runners on.

Also show how many home runs he hit by count, by number of outs, by runner on base situation, vs. pitcher, vs. team, home, away, team record when he hit a HR, # of 2 HR games, # of 3 HR games. (for his career)

It would also modify the HTML player reports, putting a link to this file for online leagues.
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF![/COLOR][/FONT]
Comedian2004 is offline   Reply With Quote
Old 12-15-2006, 11:20 PM   #2
Comedian2004
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 7,085
Started writing the HTML routine.

I have to put the HR output in tables, which will cause the SI logo to move up to the top like it is suppose to be. Then I will add the totals, hrs on each count, etc.

Then add a link from the actual player html page to this page.
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF![/COLOR][/FONT]

Last edited by Comedian2004; 12-16-2006 at 01:29 PM.
Comedian2004 is offline   Reply With Quote
Old 12-16-2006, 03:09 AM   #3
Comedian2004
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 7,085
Here is the latest HTML page.

http://www.planetootp.com/1969/playe...e_Mccovey.html

I think it is looking pretty cool so far. Now remember, this is going to be a career thing. So, eventually, it will show a listing for EVERY home run in the player's career.

When you run it, hit the CREATE HTML button and it will create the files, one for each player that has at least 1 homerun. It stores it in the HTML/PLAYERS folder under this format:

HR_firstname_lastname.html

If you run it a second time, it will delete all of the HR_*.* files and then create new ones.

Next, I will modify all the existing player HTML files to put in a link that will link you to his HR page.
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF![/COLOR][/FONT]
Comedian2004 is offline   Reply With Quote
Old 12-16-2006, 01:32 PM   #4
Comedian2004
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 7,085
Tweaked up the HTML page a little, adding the links to the pitchers pages and also the links to the team page. Working on a routine to highlight the row when the cursor is on it, like BF does. Almost have it working.

Next up is to add the link to the HR page to the player's HTML page, then to database it, so it will show all the home runs in their career. (If you run this program during the offseason)
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF![/COLOR][/FONT]
Comedian2004 is offline   Reply With Quote
Old 12-16-2006, 08:09 PM   #5
Comedian2004
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 7,085
Program now modifies the player's HTML files adding a link to the hr log file. I also changed the hr log file to HR_player_919.html, whereas the 919=player ID to make it easier for me.

Next up is the database.
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF![/COLOR][/FONT]
Comedian2004 is offline   Reply With Quote
Old 12-16-2006, 10:04 PM   #6
Raidergoo
Hall Of Famer
 
Raidergoo's Avatar
 
Join Date: Mar 2003
Posts: 9,005
Quote:
Originally Posted by Comedian2004 View Post
Here is the latest HTML page.
This is trending towards astonishing.
Raidergoo is offline   Reply With Quote
Old 12-17-2006, 12:24 AM   #7
Comedian2004
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 7,085
Thanks, until I hit a bump in the road.

The current release works as reported, creating the HR log files and also modifying the existing player HTML files. You can see a season with the mods in place here:

http://www.planetootp.com/leagues/1975/index.html

Go click on a HR hitter and you will see the HR LOG link.

I am working on the database, well, was, going to take a break now. I have a way to do the database and it works correctly, but having some problems merging the data.

1. It is adding 2 blank lines in the middle, between the years and it hops out of it there. I will figure that one out and then that part should work fine.

2. I may have not thought of something. I am basically merging last years GAMES.CSV and another file. I look in the one file and then go look in the game file and pull up the game, pulling out the pitchers name and team.

Well, problem is, it will find the 1st game from the 1st year and then exit, never getting to the 2nd game. Ah, if this was Chess, then I have just been mated.

But, since this is not Chess, I just have to start the database routine over and redesign it.

I will save each year in a file with AU_YEAR_ appended to the start of it. Then search in each one. So, it is still doable.

The only problem I forsee is running this program after 20 or 50 seasons. It may take a while to complete. So, I may change it so that it gives you a choice to just show log for this season or show log for career. Maybe even just have it to the career for retired players and check to see if it has already been done for the retired player and not do it again. The brain is working as I write this message, but it may be just the rattling of the headphones I have on.
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF![/COLOR][/FONT]
Comedian2004 is offline   Reply With Quote
Old 12-17-2006, 12:27 AM   #8
Comedian2004
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 7,085
I do like the way I was able to put in the HR LOG link in the actual player html files. Also think the HR log file looks good, the way I use the SION background, with the links at the top.

It actually uses the same style sheet that the game uses, so if you have modified it for your league, it will work with your color changes.
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF![/COLOR][/FONT]
Comedian2004 is offline   Reply With Quote
Old 12-17-2006, 11:24 AM   #9
Comedian2004
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 7,085
OK, early morning programming, I got it working. I also created a doc file at:

http://www.planetootp.com/AUHRHELP.htm

It works pretty good. I will be simming a 20 year league today and when all is done, I will publish the league so you can see how much it enhances in a situation like this.
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF![/COLOR][/FONT]
Comedian2004 is offline   Reply With Quote
Old 12-18-2006, 02:20 AM   #10
LeafsFan2005NC
Minors (Double A)
 
LeafsFan2005NC's Avatar
 
Join Date: Mar 2005
Posts: 108
You mean I did my HR Log generator all wrong?

EDIT: Yes, I'm a tad miffed. I did it all wrong to begin with. But I'm going to continue with my effort, nonetheless.
__________________
Download my OOTP 6 to OOTP 2006 Schedule Converter:

http://www.ootpdevelopments.com/boar...d.php?t=121664

Last edited by LeafsFan2005NC; 12-18-2006 at 02:41 AM.
LeafsFan2005NC is offline   Reply With Quote
Old 12-18-2006, 09:39 AM   #11
targy
All Star Starter
 
targy's Avatar
 
Join Date: Jan 2002
Location: Clearwater, FL
Posts: 1,152
Hey Web do I have an old page for your website becuase alot of programs are not listed there, I love the almanac program but on your website it says it will be available in the future. www.planetootp.com
__________________
www.emerge180.com
targy is offline   Reply With Quote
Old 12-18-2006, 09:57 AM   #12
Comedian2004
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 7,085
Actually LeafsFan, I never looked at yours. I was motivated to write this when I saw what baseball reference had done.

Quote:
Originally Posted by LeafsFan2005NC View Post
You mean I did my HR Log generator all wrong?

EDIT: Yes, I'm a tad miffed. I did it all wrong to begin with. But I'm going to continue with my effort, nonetheless.
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF![/COLOR][/FONT]
Comedian2004 is offline   Reply With Quote
Old 12-18-2006, 09:58 AM   #13
Comedian2004
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 7,085
Yeah, I know. I have to update the page!

You can find all of them here at this forum though.

Quote:
Originally Posted by targy View Post
Hey Web do I have an old page for your website becuase alot of programs are not listed there, I love the almanac program but on your website it says it will be available in the future. www.planetootp.com
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF![/COLOR][/FONT]
Comedian2004 is offline   Reply With Quote
Old 12-18-2006, 10:23 AM   #14
Comedian2004
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 7,085
PlanetOOTP.com has not been updated to include all of my programs. There are 29 total programs now. You can install all of the programs from that page and documentation is available for most of the programs on this site.

www.planetootp.com
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF![/COLOR][/FONT]
Comedian2004 is offline   Reply With Quote
Old 12-18-2006, 01:41 PM   #15
LeafsFan2005NC
Minors (Double A)
 
LeafsFan2005NC's Avatar
 
Join Date: Mar 2005
Posts: 108
Quote:
Originally Posted by Comedian2004 View Post
Actually LeafsFan, I never looked at yours. I was motivated to write this when I saw what baseball reference had done.
Oh, okay. I think the motivation for mine was when Barry Bonds passed Babe Ruth for #2 on the all-time list.

Of course I let my program languish for a long time, but I've returned to it. I just never knew that the information I was looking for was already in the dump files. I was parsing box scores to get my logs.
__________________
Download my OOTP 6 to OOTP 2006 Schedule Converter:

http://www.ootpdevelopments.com/boar...d.php?t=121664
LeafsFan2005NC is offline   Reply With Quote
Old 12-18-2006, 03:31 PM   #16
Comedian2004
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 7,085
Just remember that the dumps are erased season to season, that is why I have my program give you the option to back them up. There were a lot more stuff that I wanted to do, but I more and likely won't do much more to this program, as I have some pending projects coming up.

Quote:
Originally Posted by LeafsFan2005NC View Post
Oh, okay. I think the motivation for mine was when Barry Bonds passed Babe Ruth for #2 on the all-time list.

Of course I let my program languish for a long time, but I've returned to it. I just never knew that the information I was looking for was already in the dump files. I was parsing box scores to get my logs.
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF![/COLOR][/FONT]
Comedian2004 is offline   Reply With Quote
Old 12-20-2006, 02:43 AM   #17
LeafsFan2005NC
Minors (Double A)
 
LeafsFan2005NC's Avatar
 
Join Date: Mar 2005
Posts: 108
Yeah, my program has relied on yearly dumps as well. I've switched mine to the Access SQL dumps since that seemed to speed things up a little, though it still takes a few minutes to update the database, which I suppose is normal considering the huge amount of data that's generated by the game itself.
__________________
Download my OOTP 6 to OOTP 2006 Schedule Converter:

http://www.ootpdevelopments.com/boar...d.php?t=121664
LeafsFan2005NC is offline   Reply With Quote
Reply

Bookmarks


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:58 AM.

 

Major League and Minor League Baseball trademarks and copyrights are used with permission of Major League Baseball. Visit MLB.com and MiLB.com.

Officially Licensed Product – MLB Players, Inc.

Out of the Park Baseball is a registered trademark of Out of the Park Developments GmbH & Co. KG

Google Play is a trademark of Google Inc.

Apple, iPhone, iPod touch and iPad are trademarks of Apple Inc., registered in the U.S. and other countries.

COPYRIGHT © 2023 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright © 2024 Out of the Park Developments