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 10-29-2009, 09:24 PM   #181
Alan T
All Star Starter
 
Join Date: Mar 2002
Location: Mass.
Posts: 1,963
Quote:
Originally Posted by mikev View Post
Is it possible for this utility to import existing development information from Getch's utility?
Yes, I had this same issue with a long running ootp9 league, and he added in as of I think patch 2 the ability to import ootpou development reports into statslab
__________________
- Front Office Offseason League. (Fast Paced OOTP-X and OOTP11 leagues, sims one season every week)
Alan T is offline   Reply With Quote
Old 10-30-2009, 12:29 AM   #182
mikev
Hall Of Famer
 
mikev's Avatar
 
Join Date: Dec 2004
Location: Bay Area, CA
Posts: 4,014
Quote:
Originally Posted by Alan T View Post
Yes, I had this same issue with a long running ootp9 league, and he added in as of I think patch 2 the ability to import ootpou development reports into statslab
Are there instructions in the readme?

(edit)

What's the steps to install this on the latest version of OOTPX? Install 1.0, then install both patches in succession, or upload all the patched files and then run install.php?
__________________
Global Unified Baseball Association - Vice Commish and Oakland Oaks GM

Last edited by mikev; 10-30-2009 at 12:54 AM.
mikev is offline   Reply With Quote
Old 10-30-2009, 01:39 AM   #183
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,648
Quote:
Originally Posted by mikev View Post
Are there instructions in the readme?

(edit)

What's the steps to install this on the latest version of OOTPX? Install 1.0, then install both patches in succession, or upload all the patched files and then run install.php?
Yes to your first question. In the Patch 2 readme.

The latter, to your second question. Install all the code, then run install.php. You can actually do it either way, but it's easier just to install it all first, since some of the enhancements help get the util up and running.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues
Baseball Cards - Full list of known templates and documentation on card development.
fhomess is offline   Reply With Quote
Old 10-30-2009, 01:41 AM   #184
mikev
Hall Of Famer
 
mikev's Avatar
 
Join Date: Dec 2004
Location: Bay Area, CA
Posts: 4,014
Getting this error after uploading everything and entering the data into install.php

Code:
Warning:  mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'mikev_ootpsql'@'1a.7.364a.static.theplanet.com' (using password: YES) in /home/mikev/public_html/cgi-bin/sql/dbopen.php on line 2
Could not connect: Access denied for user 'mikev_ootpsql'@'1a.7.364a.static.theplanet.com' (using password: YES)
Ideas?
__________________
Global Unified Baseball Association - Vice Commish and Oakland Oaks GM
mikev is offline   Reply With Quote
Old 10-30-2009, 02:03 AM   #185
mikev
Hall Of Famer
 
mikev's Avatar
 
Join Date: Dec 2004
Location: Bay Area, CA
Posts: 4,014
I verified the user/password via shell, and that's not the issue. Dunno what the access denied message is being caused by.
__________________
Global Unified Baseball Association - Vice Commish and Oakland Oaks GM

Last edited by mikev; 10-30-2009 at 02:37 AM.
mikev is offline   Reply With Quote
Old 10-30-2009, 11:21 AM   #186
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,648
Your SQL user/password combo is not correct.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues
Baseball Cards - Full list of known templates and documentation on card development.
fhomess is offline   Reply With Quote
Old 10-30-2009, 12:00 PM   #187
PotatoPeeler
Hall Of Famer
 
PotatoPeeler's Avatar
 
Join Date: Aug 2002
Location: Rapid City, SD
Posts: 3,639
Couple of quick questions.

1. When I try the Run Career Metrics after loading the SQL files, I get the following error:

Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in <path to StatsLab>/career.php on line 43

Warning: Cannot modify header information - headers already sent by (output started at <path to StatsLab>/career.php:43) in <path to StatsLab>/career.php on line 218
2. After loading the SQL files, I keep seeing a message on the Admin page that reads "LOADING: players_batting.mysql.sql" (see the first attached image).

3. After loading the SQL files, I'm not seeing anything in the Top Players section on the Top Performances page (see the second attached image).

Any idea what's causing these issues?

Thanks for the help.
Attached Images
Image Image 
__________________
培傑西

I have never taken a lesson on how to talk on TV in my life.
- Tim McCarver

Guns have only two enemies; rust and liberals.

The world is a comedy to those that think; a tragedy to those that feel.
PotatoPeeler is offline   Reply With Quote
Old 10-30-2009, 12:05 PM   #188
mikev
Hall Of Famer
 
mikev's Avatar
 
Join Date: Dec 2004
Location: Bay Area, CA
Posts: 4,014
Quote:
Originally Posted by fhomess View Post
Your SQL user/password combo is not correct.
It is, I verified it by logging into the SQL DB via shell, and I also deleted and recreated the user/password for the SQL DB.
__________________
Global Unified Baseball Association - Vice Commish and Oakland Oaks GM
mikev is offline   Reply With Quote
Old 10-30-2009, 12:34 PM   #189
snnort
Minors (Triple A)
 
snnort's Avatar
 
Join Date: Apr 2004
Posts: 272
Has anyone used the widgets feature that can point to a website in which they've used them? I'm hoping to get some time myself to mess with them and see if I can't get something set up on my league frontpage. I thought it'd be nice to see a few examples of what others are doing with them.
snnort is offline   Reply With Quote
Old 10-30-2009, 01:58 PM   #190
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,648
Quote:
Originally Posted by PotatoPeeler View Post
Couple of quick questions.

1. When I try the Run Career Metrics after loading the SQL files, I get the following error:

Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in <path to StatsLab>/career.php on line 43

Warning: Cannot modify header information - headers already sent by (output started at <path to StatsLab>/career.php:43) in <path to StatsLab>/career.php on line 218
The players_league_leader file isn't getting loaded into your database.

Quote:
Originally Posted by PotatoPeeler View Post
2. After loading the SQL files, I keep seeing a message on the Admin page that reads "LOADING: players_batting.mysql.sql" (see the first attached image).
Any time you see the "LOADING: filename" message, it means that file isn't getting fully loaded into your database. Usually, this is caused by your server timing out on the script while it's still trying to load. Servers have a limited amount of time they allow php scripts to run for before they kill the process. StatsLab requests additional time regularly for long running scripts, but not all servers allow scripts to override their settings for that timeout. If you're running into this, try loading the larger files individually, or possibly splitting them first.

Quote:
Originally Posted by PotatoPeeler View Post
3. After loading the SQL files, I'm not seeing anything in the Top Players section on the Top Performances page (see the second attached image).

Any idea what's causing these issues?
This would be related to the fact that you're not getting all your data into the database.

Quote:
Originally Posted by mikev View Post
It is, I verified it by logging into the SQL DB via shell, and I also deleted and recreated the user/password for the SQL DB.
Perhaps your SQL server isn't configured to permit connections from where you have StatsLab running? You might also check dbopen.php in your SQL load folder to make sure StatsLab was able to generate it correctly.

Quote:
Originally Posted by snnort View Post
Has anyone used the widgets feature that can point to a website in which they've used them? I'm hoping to get some time myself to mess with them and see if I can't get something set up on my league frontpage. I thought it'd be nice to see a few examples of what others are doing with them.
I know the PEBA is using them on their front page to display standings, and Corsairs has even contacted me to say he's willing to share the CSS that they've employed to display them in their format. I'm not sure if he's posted in this thread, but I do know he posted in the OOTP9 StatsLab thread.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues
Baseball Cards - Full list of known templates and documentation on card development.
fhomess is offline   Reply With Quote
Old 10-30-2009, 05:11 PM   #191
PotatoPeeler
Hall Of Famer
 
PotatoPeeler's Avatar
 
Join Date: Aug 2002
Location: Rapid City, SD
Posts: 3,639
Yeah, my players_game_batting and players_game_pitching_stats sql files are very large and end up timing out. Once I split those and loaded everything manually, things work just fine.

Thanks for the help!
__________________
培傑西

I have never taken a lesson on how to talk on TV in my life.
- Tim McCarver

Guns have only two enemies; rust and liberals.

The world is a comedy to those that think; a tragedy to those that feel.
PotatoPeeler is offline   Reply With Quote
Old 10-30-2009, 07:28 PM   #192
mikev
Hall Of Famer
 
mikev's Avatar
 
Join Date: Dec 2004
Location: Bay Area, CA
Posts: 4,014
Quote:
Originally Posted by fhomess View Post
Perhaps your SQL server isn't configured to permit connections from where you have StatsLab running? You might also check dbopen.php in your SQL load folder to make sure StatsLab was able to generate it correctly.
They're the same server.

I checked, and the dbopen.php file was created, but I dunno what's supposed to be in there.
__________________
Global Unified Baseball Association - Vice Commish and Oakland Oaks GM
mikev is offline   Reply With Quote
Old 10-30-2009, 07:49 PM   #193
Corsairs
Hall Of Famer
 
Corsairs's Avatar
 
Join Date: Aug 2007
Posts: 2,360
Quote:
Originally Posted by fhomess View Post
Quote:
Originally Posted by snnort View Post
Has anyone used the widgets feature that can point to a website in which they've used them? I'm hoping to get some time myself to mess with them and see if I can't get something set up on my league frontpage. I thought it'd be nice to see a few examples of what others are doing with them.
I know the PEBA is using them on their front page to display standings, and Corsairs has even contacted me to say he's willing to share the CSS that they've employed to display them in their format. I'm not sure if he's posted in this thread, but I do know he posted in the OOTP9 StatsLab thread.
Indeed the PEBA is using StatsLab's widgets feature, and I highly recommend it to all online commissioners. Right now we're only using the League Standings widgets; we'll be adding in the Player Leaderboard widets once the regular season rolls around.

Have a look at the PEBA homepage to see how they look. Note that one of our league members did a little touch-up work to get the columns to line up neatly. I've submitted his code to fhomess so there's a chance it might end up in a future StatsLab patch. Even in their current implementation, though, StatsLab's widgets are a great addition to a league website.
__________________
Founder of the Planetary Extreme Baseball Alliance (PEBA)
Premiere OOTP fictional league where creativity counts and imagination is your only limitation
Check for openings - contact us today!
Corsairs is offline   Reply With Quote
Old 10-30-2009, 08:51 PM   #194
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,648
Quote:
Originally Posted by mikev View Post
They're the same server.

I checked, and the dbopen.php file was created, but I dunno what's supposed to be in there.
You should see your SQL host, user, and password in a mysql_pconnect function call, followed by a line calling a function to select the appropriate database. Your SQL user needs access to MySQL, as well as permissions for that specific database. If you think you've got all that, and are willing to share access with me, I'm willing to take a look myself and see if anything is odd. Just shoot me a PM.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues
Baseball Cards - Full list of known templates and documentation on card development.
fhomess is offline   Reply With Quote
Old 10-30-2009, 09:50 PM   #195
mikev
Hall Of Famer
 
mikev's Avatar
 
Join Date: Dec 2004
Location: Bay Area, CA
Posts: 4,014
Quote:
Originally Posted by fhomess View Post
You should see your SQL host, user, and password in a mysql_pconnect function call, followed by a line calling a function to select the appropriate database. Your SQL user needs access to MySQL, as well as permissions for that specific database. If you think you've got all that, and are willing to share access with me, I'm willing to take a look myself and see if anything is odd. Just shoot me a PM.
It seems like, for some reason, @'1a.7.364a.static.theplanet.com is being added to the username I'm putting in, but I don't know how or why.
__________________
Global Unified Baseball Association - Vice Commish and Oakland Oaks GM
mikev is offline   Reply With Quote
Old 10-30-2009, 11:01 PM   #196
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,648
Quote:
Originally Posted by mikev View Post
It seems like, for some reason, @'1a.7.364a.static.theplanet.com is being added to the username I'm putting in, but I don't know how or why.
In dbopen.php? Odd. You can edit that file manually and remove that piece.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues
Baseball Cards - Full list of known templates and documentation on card development.
fhomess is offline   Reply With Quote
Old 10-31-2009, 11:48 AM   #197
snnort
Minors (Triple A)
 
snnort's Avatar
 
Join Date: Apr 2004
Posts: 272
Quote:
Originally Posted by Corsairs View Post
Indeed the PEBA is using StatsLab's widgets feature, and I highly recommend it to all online commissioners. Right now we're only using the League Standings widgets; we'll be adding in the Player Leaderboard widets once the regular season rolls around.

Have a look at the PEBA homepage to see how they look. Note that one of our league members did a little touch-up work to get the columns to line up neatly. I've submitted his code to fhomess so there's a chance it might end up in a future StatsLab patch. Even in their current implementation, though, StatsLab's widgets are a great addition to a league website.
Is this touch up work done to a CSS file OR is it manually edited in the widget files each time they are created?
snnort is offline   Reply With Quote
Old 10-31-2009, 05:16 PM   #198
mikev
Hall Of Famer
 
mikev's Avatar
 
Join Date: Dec 2004
Location: Bay Area, CA
Posts: 4,014
Quote:
Originally Posted by fhomess View Post
In dbopen.php? Odd. You can edit that file manually and remove that piece.
Not sure where -- but the issue is fixed, had to change the SQL host to "localhost" instead of "theguba.net" in the install.php, and then it worked.
__________________
Global Unified Baseball Association - Vice Commish and Oakland Oaks GM
mikev is offline   Reply With Quote
Old 10-31-2009, 05:53 PM   #199
Corsairs
Hall Of Famer
 
Corsairs's Avatar
 
Join Date: Aug 2007
Posts: 2,360
Quote:
Originally Posted by snnort View Post
Is this touch up work done to a CSS file OR is it manually edited in the widget files each time they are created?
It was done in a CSS file.
__________________
Founder of the Planetary Extreme Baseball Alliance (PEBA)
Premiere OOTP fictional league where creativity counts and imagination is your only limitation
Check for openings - contact us today!
Corsairs is offline   Reply With Quote
Old 11-02-2009, 02:43 PM   #200
snnort
Minors (Triple A)
 
snnort's Avatar
 
Join Date: Apr 2004
Posts: 272
Quote:
Originally Posted by snnort View Post
Is this touch up work done to a CSS file OR is it manually edited in the widget files each time they are created?
Quote:
Originally Posted by Corsairs View Post
It was done in a CSS file.
If you could make the CSS file available, that would be handy, just in case there is some reason I can't get things right. BUT I'm glad to hear that CSS fixed that since it can be fixed once and once only.
snnort 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 02:14 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