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 01-17-2010, 01:00 AM   #261
rutri01
All Star Reserve
 
Join Date: Dec 2007
Posts: 515
Thanks Montoya

I was scared to attempt this but your video made it easy and quick to get the utilities running for my league.
rutri01 is offline   Reply With Quote
Old 01-18-2010, 02:07 PM   #262
udbacker58
All Star Starter
 
udbacker58's Avatar
 
Join Date: Apr 2007
Posts: 1,140
I'm having troubles manually adding a player to the Hall of Fame ballot. I put in a player ID for a batter and pitcher, do not get any errors, but when I look at the ballot, they do not show up. Any ideas?
__________________
Heartland Baseball League Commissioner
Fictional - Stats Only - 30 years of History!
HBL HOME PAGE | HBL REPORTS HOME | HBL UTILITIES HOME
udbacker58 is offline   Reply With Quote
Old 01-18-2010, 02:31 PM   #263
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,651
Quote:
Originally Posted by udbacker58 View Post
I'm having troubles manually adding a player to the Hall of Fame ballot. I put in a player ID for a batter and pitcher, do not get any errors, but when I look at the ballot, they do not show up. Any ideas?
They have to:
1. Be officially retired in OOTPX.
2. Not be in the OOTPX HOF already.
3. Have played in the StatsLab primary league.

If you believe all these to be true, shoot me a PM with commish access to StatsLab and I'll take a look.
__________________
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 01-18-2010, 02:32 PM   #264
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,651
Patch 3 has been released!
- New Front Office module including: Trade Block, Payroll Page, Contract Detail Page, Projected Free Agents
- New Ballparks pages
- Expanded batting and pitching stats on player page
- Additional batting and pitching stats added to leaderboards pages
- Enhanced year filter on leaderboards pages (through, after, equal options)
- And more!

__________________
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 01-19-2010, 02:53 PM   #265
dangarion
All Star Reserve
 
dangarion's Avatar
 
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
I figured I'd throw this out here again. So I gave up on this with my host months ago, but today I decided to see if I could get it working again. I deleted everything and reinstalled everything from scratch. I have patch 3 installed and things are up and running, but.... I randomly get 500 Internal Server errors when I'm trying to load the large SQL files. I've attempted splitting the files and I still get the same issue. It seems really random as to when I get the errors. Sometimes I get them when I try to load 1 split file and other times I've able to load 4 split files without a hitch. It doesn't seem to be any specific file that causes it either, since if I rerun the file it normally then works.

This is the error showing up in my log every time it errors out.

[Tue Jan 19 10:44:51 2010] [error] [client 75.83.120.230] Premature end of script headers: sql_file_load.php, referer: http://rwbl.net/statslab/sql_file_load.php
__________________
DanGarion
GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League
PCJBL!
dangarion is offline   Reply With Quote
Old 01-19-2010, 03:05 PM   #266
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,651
Quote:
Originally Posted by dangarion View Post
I figured I'd throw this out here again. So I gave up on this with my host months ago, but today I decided to see if I could get it working again. I deleted everything and reinstalled everything from scratch. I have patch 3 installed and things are up and running, but.... I randomly get 500 Internal Server errors when I'm trying to load the large SQL files. I've attempted splitting the files and I still get the same issue. It seems really random as to when I get the errors. Sometimes I get them when I try to load 1 split file and other times I've able to load 4 split files without a hitch. It doesn't seem to be any specific file that causes it either, since if I rerun the file it normally then works.

This is the error showing up in my log every time it errors out.

[Tue Jan 19 10:44:51 2010] [error] [client 75.83.120.230] Premature end of script headers: sql_file_load.php, referer: http://rwbl.net/statslab/sql_file_load.php
Shoot me a PM with commish access to your StatsLab install and I'll see if I can figure out what's going on.
__________________
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 01-19-2010, 03:21 PM   #267
dangarion
All Star Reserve
 
dangarion's Avatar
 
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
Quote:
Originally Posted by fhomess View Post
Shoot me a PM with commish access to your StatsLab install and I'll see if I can figure out what's going on.
I'll do that in a few.

I'm wondering if it has to do with the load it's putting on the server... I know Dreamhost has a throttling mechanism that will basically put all your sites in stand still for a bit because your site is using too much of their resources.
__________________
DanGarion
GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League
PCJBL!
dangarion is offline   Reply With Quote
Old 01-19-2010, 03:24 PM   #268
Cooleyvol
Hall Of Famer
 
Cooleyvol's Avatar
 
Join Date: Dec 2001
Location: Union City, TN
Posts: 6,383
Quote:
Originally Posted by dangarion View Post
I'll do that in a few.

I'm wondering if it has to do with the load it's putting on the server... I know Dreamhost has a throttling mechanism that will basically put all your sites in stand still for a bit because your site is using too much of their resources.
You should really look at getting a new host. I can give you the name of mine via PM if you like. They're great and we don't deal with all that 'throttling' stuff.
Cooleyvol is offline   Reply With Quote
Old 01-19-2010, 03:27 PM   #269
dangarion
All Star Reserve
 
dangarion's Avatar
 
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
Quote:
Originally Posted by Cooleyvol View Post
You should really look at getting a new host. I can give you the name of mine via PM if you like. They're great and we don't deal with all that 'throttling' stuff.
Getting a new host would be a lot more hassle then I really want to deal with. I'm actually really happy with Dreamhost. The league site is the least of my worries, it's my other sites that I do the most work on (that run Wordpress). But send me the name, and I'll look into them in case I need a backup plan.

It's not actually throttling, it's processes being killed for using too much memory.
__________________
DanGarion
GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League
PCJBL!

Last edited by dangarion; 01-19-2010 at 03:31 PM.
dangarion is offline   Reply With Quote
Old 01-20-2010, 02:41 PM   #270
dangarion
All Star Reserve
 
dangarion's Avatar
 
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
Ok, I've worked through the file laod isue, but I'm still having some fetch issues. I want to confirm that I'm exporting the proper SQL files. Looking through the original readme and then the subsequent patches this appears to be the list of exports needed. Names of some of the exports have changed since they original readme so I listed what appears to be the corresponding versions.

leagues_basic
league_playoffs
sub_leagues
divisions
team_relations
games_basic
games_score
human_managers_basic
parks
players_basic
players_batting ?
players_pitching
players_fielding
players_roster_status
players_contract
players_contract_extension
players_career_batting
players_game_batting
players_career_pitching
players_game_pitching
players_career_fielding
players_awards
players_league_leader
teams_basic
teams_batting_stats
teams_pitching_stats
teams_fielding_stats
teams_record
teams_financials
team_history_basic
team_history_batting_stats
team_history_pitching_stats
team_history_fielding_stats
team_history_record
team_history_financials

The problem I'm having is various fetch issues with most of the pages (except the manager page)

Things like this

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/rwbl/rwbl.net/statslab/boxscores.php on line 175

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/rwbl/rwbl.net/statslab/boxscores.php on line 215

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/rwbl/rwbl.net/statslab/simstats.php on line 182

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/rwbl/rwbl.net/statslab/simstats.php on line 333
__________________
DanGarion
GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League
PCJBL!

Last edited by dangarion; 01-20-2010 at 02:43 PM.
dangarion is offline   Reply With Quote
Old 01-20-2010, 03:30 PM   #271
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,651
Quote:
Originally Posted by dangarion View Post
players_batting ?
Yes. Contains batting ratings for players.

Quote:
Originally Posted by dangarion View Post
Things like this

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/rwbl/rwbl.net/statslab/boxscores.php on line 175

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/rwbl/rwbl.net/statslab/boxscores.php on line 215

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/rwbl/rwbl.net/statslab/simstats.php on line 182

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/rwbl/rwbl.net/statslab/simstats.php on line 333
Given the fact that your player page in the Career Metrics module isn't working, I'd say your players table didn't get loaded (aka players_basic, aka players.mysql.sql). Also double check to see that you've got players_game_batting and players_game_pitching loaded.
__________________
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 01-20-2010, 03:44 PM   #272
dangarion
All Star Reserve
 
dangarion's Avatar
 
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
Quote:
Originally Posted by fhomess View Post
Yes. Contains batting ratings for players.


Given the fact that your player page in the Career Metrics module isn't working, I'd say your players table didn't get loaded (aka players_basic, aka players.mysql.sql). Also double check to see that you've got players_game_batting and players_game_pitching loaded.
I'm not even seeing those tables in mysql, so it's as if they didn't get generated when I installed this time... weird. Looking through the files real quick I can't find the sql to run to throw those in along with the proper settings inside them, where are those listed?
__________________
DanGarion
GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League
PCJBL!
dangarion is offline   Reply With Quote
Old 01-20-2010, 05:42 PM   #273
dangarion
All Star Reserve
 
dangarion's Avatar
 
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
Quote:
Originally Posted by dangarion View Post
I'm not even seeing those tables in mysql, so it's as if they didn't get generated when I installed this time... weird. Looking through the files real quick I can't find the sql to run to throw those in along with the proper settings inside them, where are those listed?
Crisis averted. It was something I had set wrong.
__________________
DanGarion
GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League
PCJBL!
dangarion is offline   Reply With Quote
Old 01-20-2010, 07:20 PM   #274
dangarion
All Star Reserve
 
dangarion's Avatar
 
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
So on to the next one, how do I go about adding the widgets into my front page... Anyone try adding the widgets as php into Wordpress? I'm having some issues with they normal way I would run PHP in a WP sidebar widget.

I keep getting errors like this.

Warning: include(/widgets/lg_100_div_leaders.wgt) [function.include]: failed to open stream: No such file or directory in /home/rwbl/rwbl.net/wp-content/plugins/php-code-widget/execphp.php(43) : eval()'d code on line 2

Warning: include() [function.include]: Failed opening '/widgets/lg_100_div_leaders.wgt' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/rwbl/rwbl.net/wp-content/plugins/php-code-widget/execphp.php(43) : eval()'d code on line 2

Quote:
<?php
include("/widgets/lg_100_div_leaders.wgt");
?>
__________________
DanGarion
GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League
PCJBL!

Last edited by dangarion; 01-20-2010 at 07:47 PM.
dangarion is offline   Reply With Quote
Old 01-21-2010, 12:05 PM   #275
dangarion
All Star Reserve
 
dangarion's Avatar
 
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
Got another one, I'm having issues with some teams dev reports. Most of the teams work, but for some teams I am consistently getting 500 errors.
__________________
DanGarion
GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League
PCJBL!
dangarion is offline   Reply With Quote
Old 01-21-2010, 12:23 PM   #276
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,651
Quote:
Originally Posted by dangarion View Post
Got another one, I'm having issues with some teams dev reports. Most of the teams work, but for some teams I am consistently getting 500 errors.
Looks like you ran development with ratings off, then ran it with ratings on, so you've got every rating for every player in the league going from 0 to whatever their current rating is.

To fix, you'll want to clear out the dev history.
Go to your development admin page, clear your development history, and run development again. This will reset the development and store off the current ratings as the baseline starting point. After your next sim, you'll start seeing real development updates.
__________________
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 01-21-2010, 12:26 PM   #277
dangarion
All Star Reserve
 
dangarion's Avatar
 
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
Quote:
Originally Posted by fhomess View Post
Looks like you ran development with ratings off, then ran it with ratings on, so you've got every rating for every player in the league going from 0 to whatever their current rating is.

To fix, you'll want to clear out the dev history.
Go to your development admin page, clear your development history, and run development again. This will reset the development and store off the current ratings as the baseline starting point. After your next sim, you'll start seeing real development updates.
Awesome figured it was something simple.
__________________
DanGarion
GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League
PCJBL!
dangarion is offline   Reply With Quote
Old 01-21-2010, 12:26 PM   #278
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,651
Quote:
Originally Posted by dangarion View Post
So on to the next one, how do I go about adding the widgets into my front page... Anyone try adding the widgets as php into Wordpress? I'm having some issues with they normal way I would run PHP in a WP sidebar widget.
I've not installed them in WordPress myself, but you might try the full server path or using a . before the directory (to indicate relative to the current directory) in your include statement:

e.g.
include("/home/<whatever>/rwbl.net/widgets/lg_100_div_leaders.wgt");
or
include("./widgets/lg_100_div_leaders.wgt");
__________________
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 01-21-2010, 12:38 PM   #279
dangarion
All Star Reserve
 
dangarion's Avatar
 
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
Oh yeah, I guess that would make sense. I was thinking it was relative to root so I didn't need to include the full path. So are you excepting donations for this? I got some paypal cash with your name on it.
Quote:
Originally Posted by fhomess View Post
I've not installed them in WordPress myself, but you might try the full server path or using a . before the directory (to indicate relative to the current directory) in your include statement:

e.g.
include("/home/<whatever>/rwbl.net/widgets/lg_100_div_leaders.wgt");
or
include("./widgets/lg_100_div_leaders.wgt");
__________________
DanGarion
GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League
PCJBL!
dangarion is offline   Reply With Quote
Old 01-21-2010, 02:42 PM   #280
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,651
Quote:
Originally Posted by dangarion View Post
Oh yeah, I guess that would make sense. I was thinking it was relative to root so I didn't need to include the full path. So are you excepting donations for this? I got some paypal cash with your name on it.
Cool, glad that worked for you.

Donations are welcome from those that would like to. You can use the email address in the StatsLab readme. Certainly not required, though.
__________________
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
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 07:24 PM.

 

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