Latest News: OOTP PATCH 9.1.6 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 12-15-2006, 01:06 AM   #1 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,378
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.
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!
Comedian2004 is offline   Reply With Quote
Old 12-15-2006, 10:20 PM   #2 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,378
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.
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!

Last edited by Comedian2004 : 12-16-2006 at 12:29 PM.
Comedian2004 is offline   Reply With Quote
Old 12-16-2006, 02:09 AM   #3 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,378
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.
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!
Comedian2004 is offline   Reply With Quote
Old 12-16-2006, 12:32 PM   #4 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,378
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)
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!
Comedian2004 is offline   Reply With Quote
Old 12-16-2006, 07:09 PM   #5 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,378
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.
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!
Comedian2004 is offline   Reply With Quote
Old 12-16-2006, 09:04 PM   #6 (permalink)
Hall Of Famer
 
Raidergoo's Avatar
 
Join Date: Mar 2003
Location: 39.84 N -84.12 W
Posts: 7,222
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-16-2006, 11:24 PM   #7 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,378
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.
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!
Comedian2004 is offline   Reply With Quote
Old 12-16-2006, 11:27 PM   #8 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,378
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.
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!
Comedian2004 is offline   Reply With Quote
Old 12-17-2006, 10:24 AM   #9 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,378
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.
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!
Comedian2004 is offline   Reply With Quote
Old 12-18-2006, 01:20 AM   #10 (permalink)
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 01:41 AM.
LeafsFan2005NC is offline   Reply With Quote
Old 12-18-2006, 08:39 AM   #11 (permalink)
All Star Reserve
 
targy's Avatar
 
Join Date: Jan 2002
Location: Clearwater, FL
Posts: 951
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
__________________
If you own a business and have a lawsuit or judgment pending against your company and do not want to pay the high price of an attorney. I can stop the judgment or lawsuit from going forward. I can reduce the settlement by almost half and if both parties do not agree on the settlement amount there is no fee...We keep the attorneys away and the case out of court...The company I work for has 15 years of experience in negotiating settlements.....
targy is offline   Reply With Quote
Old 12-18-2006, 08:57 AM   #12 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,378
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.
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!
Comedian2004 is offline   Reply With Quote
Old 12-18-2006, 08:58 AM   #13 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,378
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
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!
Comedian2004 is offline   Reply With Quote
Old 12-18-2006, 09:23 AM   #14 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,378
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
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!
Comedian2004 is offline   Reply With Quote
Old 12-18-2006, 12:41 PM   #15 (permalink)
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, 02:31 PM   #16 (permalink)
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,378
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.
__________________
Visit www.planetootp.com for my MODS. Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF!
Comedian2004 is offline   Reply With Quote
Old 12-20-2006, 01:43 AM   #17 (permalink)
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


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 07:14 AM.


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