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-28-2013, 12:56 PM   #181
Dbobola22
Minors (Triple A)
 
Join Date: Jun 2003
Posts: 226
Is there no answer for this?

Trying for almost two weeks to get this figured out and now I got it and am just a login issue away.... SO CLOSE... HELP!!!!!
__________________
Commissioner:
Paramount Baseball League (running7-years real time)
American Baseball Legion (a new OOTP18 Startup)
Dbobola22 is offline   Reply With Quote
Old 01-02-2014, 01:29 PM   #182
farmkidD2
Minors (Single A)
 
farmkidD2's Avatar
 
Join Date: Jun 2011
Location: Concord, CA
Posts: 77
I was able to load everything else except for:

players_career_batting_stats_12.mysql.sql
players_career_pitching_stats_7.mysql.sql
players_career_pitching_stats_8.mysql.sql

I've gone to the OOTP game 3 times and created new mysql dumps to overrite these files with on the server but get the same result.

When I try to load them it fills the entire page up with numbers. Could this be why when I import my inagural draft pool from my league, nobody shows up?
farmkidD2 is offline   Reply With Quote
Old 01-17-2014, 12:06 PM   #183
Deron
Minors (Double A)
 
Join Date: Jul 2012
Location: Las Vegas, NV
Posts: 137
Login issue

Quote:
Originally Posted by Dbobola22 View Post
Is there no answer for this?

Trying for almost two weeks to get this figured out and now I got it and am just a login issue away.... SO CLOSE... HELP!!!!!
Have the same problem as you the validation page all looks good, but no mangers show up so I can't login. I no longer had time for it so ended up using the Online Utilities. I would like to give it another shot if someone has an answer for this.
Deron is offline   Reply With Quote
Old 02-14-2014, 04:52 PM   #184
breich90
Minors (Double A)
 
Join Date: Mar 2007
Posts: 109
Does statsLab support a League Association amateur draft? I've imported the draft order/draft list, but the managers in the other league are unable to see the draft when they login.
breich90 is offline   Reply With Quote
Old 02-14-2014, 09:00 PM   #185
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,648
Quote:
Originally Posted by Deron View Post
Have the same problem as you the validation page all looks good, but no mangers show up so I can't login. I no longer had time for it so ended up using the Online Utilities. I would like to give it another shot if someone has an answer for this.
This one's old, but I'm not sure if it's been responded to. I believe that I resolved the issue with Dbobola by making sure to import the teams file before the human_managers file. If you import them manually, I believe that'll do the trick.

Quote:
Originally Posted by breich90 View Post
Does statsLab support a League Association amateur draft? I've imported the draft order/draft list, but the managers in the other league are unable to see the draft when they login.
I don't think this will work since StastLab's draft util was designed to be league specific. That said, you might be able to trick it into working by enabling the draft with the exact same draft settings in both leagues. The player pool can be the same. I think you might still run into problems, though, when players are taken, since I think it'll only remove players from the draft pool of the league in which those players were drafted.
__________________
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 02-14-2014, 11:23 PM   #186
breich90
Minors (Double A)
 
Join Date: Mar 2007
Posts: 109
Quote:
Originally Posted by fhomess View Post
This one's old, but I'm not sure if it's been responded to. I believe that I resolved the issue with Dbobola by making sure to import the teams file before the human_managers file. If you import them manually, I believe that'll do the trick.


I don't think this will work since StastLab's draft util was designed to be league specific. That said, you might be able to trick it into working by enabling the draft with the exact same draft settings in both leagues. The player pool can be the same. I think you might still run into problems, though, when players are taken, since I think it'll only remove players from the draft pool of the league in which those players were drafted.

Yep, I think I'd have to move all the second league teams into the Premier league to get the draft to work right, then move them back.
breich90 is offline   Reply With Quote
Old 03-04-2014, 09:32 PM   #187
USF
All Star Starter
 
USF's Avatar
 
Join Date: Oct 2011
Location: Maple, ON - Canada
Posts: 1,085
I'm shopping for a new server provider and one of the issues I am looking to address is the OUT of Resources errors I get trying to run programs such as Statslab. Can anyone give me an idea of the memory I need to be able to run this program on a server without this issue? Also does anyone have advice on a great server provider for such mysql database and also fast d/l times. I'm with IPAGE now (shared server) and it is slow super slow...
USF is offline   Reply With Quote
Old 03-04-2014, 09:35 PM   #188
cody8200
Hall Of Famer
 
cody8200's Avatar
 
Join Date: Jan 2003
Location: Indianapolis
Posts: 2,436
I user belira.Info and I have never had any issues running the sql loads. It costs $2 per month on their cheap server and $4 per month on their better one. I've used both but you might as well start on the cheapest end. They are month to month and take PayPal.
__________________
Sharp Guys Web Design -
Twitter: @sharpguysweb
cody8200 is offline   Reply With Quote
Old 03-06-2014, 01:15 PM   #189
USF
All Star Starter
 
USF's Avatar
 
Join Date: Oct 2011
Location: Maple, ON - Canada
Posts: 1,085
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/usflea5/public_html/statslab14/session_functions.php on line 75

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/usflea5/public_html/statslab14/session_functions.php on line 118

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/usflea5/public_html/statslab14/nav_functions.php on line 838
StatsLab Validator


I am getting the above errors when I try to install Statslab 14.

does anyone know how to fix this?

Thanks!!
Jason
USF is offline   Reply With Quote
Old 03-06-2014, 01:16 PM   #190
USF
All Star Starter
 
USF's Avatar
 
Join Date: Oct 2011
Location: Maple, ON - Canada
Posts: 1,085
Quote:
Originally Posted by cody8200 View Post
I user belira.Info and I have never had any issues running the sql loads. It costs $2 per month on their cheap server and $4 per month on their better one. I've used both but you might as well start on the cheapest end. They are month to month and take PayPal.

THANKS FOR THE INPUT!!
Jason
USF is offline   Reply With Quote
Old 03-06-2014, 01:38 PM   #191
USF
All Star Starter
 
USF's Avatar
 
Join Date: Oct 2011
Location: Maple, ON - Canada
Posts: 1,085
Quote:
Originally Posted by dangarion View Post
When I run validate I get the following two errors.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/pcjbl/pcjbl.com/StatsLab/session_functions.php on line 79

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/pcjbl/pcjbl.com/StatsLab/nav_functions.php on line 335



Although for the life of me I can't see the issues with those rows after looking through the code.

Also in the manual it says to put the path of the StatsLab install folder in config.txt but I think you meant for it to include the path to the sql folder.... right?
Did you ever find out the fix for the above. Looks like I have a similar error. Also yes the manual should read that way. I found out by trial and error myself too. :-)

Jason
USF is offline   Reply With Quote
Old 03-06-2014, 02:10 PM   #192
USF
All Star Starter
 
USF's Avatar
 
Join Date: Oct 2011
Location: Maple, ON - Canada
Posts: 1,085
I got past Step 19 in the instructions where I loaded the mysql pages but, when I hit the Login Link to select my name (commissioner) and enter the password - it doesn't work.

I get this red error at the top of the screen:

ERROR: OOTP SQL Utilities not configured properly (no ootp_sql_admin table)

I am currently running statslab for this league on an existing server but, I am also trying to run it on a new server to compare the performance. Is there an issue doing this that I don't know about?

Jason

Here were the other areas at the top of the sign in screen:

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/usflea5/public_html/statslab14/nav_functions.php on line 846

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/usflea5/public_html/statslab14/session_functions.php on line 229

Warning: Cannot modify header information - headers already sent by (output started at /home/usflea5/public_html/statslab14/nav_functions.php:846) in /home/usflea5/public_html/statslab14/session_functions.php on line 341

Last edited by USF; 03-06-2014 at 02:15 PM.
USF is offline   Reply With Quote
Old 03-06-2014, 02:19 PM   #193
USF
All Star Starter
 
USF's Avatar
 
Join Date: Oct 2011
Location: Maple, ON - Canada
Posts: 1,085
Ok I fixed this by loading all the databases and not just the ones listed in the setup instructions. After the validator was run again, I hit the statslab admin link instead. It took me another screen that asked me to load the databases. I hit that link, it ran and took me to the sign in screen and I was able to sign in with the password listed in the setup instructions. Kinda a backwards way of doing it vs the instructions but, it looks to work now.

Jason
USF is offline   Reply With Quote
Old 03-31-2014, 05:08 PM   #194
Huckleberry
All Star Reserve
 
Huckleberry's Avatar
 
Join Date: Apr 2003
Posts: 578
In draft_auto_list_generate.php is there an error here?

Code:
  while ($row=mysql_fetch_array($result))
  {
	  $pid=$row['player_id'];

	  $mod=0;
       	  $bcnt=0;
	  if ($row['fielding_rating_pos2']>1)
	  {
		  $mod+=.02;$bcnt+=1;
		  if ($row['fielding_ratings_catcher_arm']>100) {$mod+=.005;$bcnt+=1;}
	  }
	  if ($row['fielding_rating_pos4']>100) {$mod+=.01;$bcnt+=1;}
       	  if ($row['fielding_rating_pos5']>120) {$mod+=.008;$bcnt+=1;}
	  elseif (($row['fielding_rating_pos5']>60)&&($row['fielding_ratings_infield_arm']>100)) {$mod+=.005;$bcnt+=1;}
       	  if ($row['fielding_rating_pos6']>100) {$mod+=.017;$bcnt+=1;}
	  if ($row['fielding_rating_pos8']>100) {$mod+=.0075;$bcnt+=1;}
       	  if (($row['fielding_rating_pos9']>60)&&($row['fielding_ratings_outfield_arm']>100)) {$mod+=.005;$bcnt+=1;}
	  switch ($bcnt)
	  {
    	  case 0: 
	  case 1: $mod=$mod*1.00; break;
    	  case 2: $mod=$mod*.800; break;
	  case 3: $mod=$mod*.650; break;
    	  case 4: $mod=$mod*.600; break;
	  case 5: $mod=$mod*.575; break;
    	  case 6: 
	  case 7: 
    	  case 8: $mod=$mod*.550; break;
	  default: break;
      	  }
	  $bvalues[$pid]=$bvalues[$pid]*(1+$mod);
  }
The cases where $bcnt=6 or 7 should have values of some sort, no? Based on the code that precedes the switch command, I can come up with combinations of fielding ratings that result in both those values but can't come up with a combination that results in 8. Perhaps I don't understand what is happening here, but just wanted to check.

If I'm correct then obviously the auto list will overvalue players that have $bcnt equal to 6 or 7. Then again I haven't noticed those players being drafted way too high so I lean toward the answer that I'm not interpreting this correctly.

Last edited by Huckleberry; 03-31-2014 at 05:11 PM.
Huckleberry is offline   Reply With Quote
Old 04-01-2014, 12:37 PM   #195
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,648
PHP switch/case statements evaluate until they hit a "break", so the case 6 and 7 cases evaluate the statement listed for case 8.
__________________
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 04-01-2014, 01:22 PM   #196
Huckleberry
All Star Reserve
 
Huckleberry's Avatar
 
Join Date: Apr 2003
Posts: 578
Quote:
Originally Posted by fhomess View Post
PHP switch/case statements evaluate until they hit a "break", so the case 6 and 7 cases evaluate the statement listed for case 8.
Ah, okay. Thanks for the quick response, sir!
Huckleberry is offline   Reply With Quote
Old 04-12-2014, 01:01 AM   #197
sjshaw
Minors (Triple A)
 
Join Date: Jan 2002
Posts: 236
Think an update will be needed for v15, or should things roll along with no hiccups?
sjshaw is offline   Reply With Quote
Old 04-14-2014, 03:52 PM   #198
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,648
There was very little needed for OOTP14, and I expect the same will be true for OOTP15.
__________________
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 04-18-2014, 12:05 PM   #199
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,648
First post updated with OOTP15 version of StatsLab.

Perhaps a mod can change the title of this thread from "StatsLab13" to just "StatsLab"? That would be great!
__________________
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 04-18-2014, 08:52 PM   #200
cody8200
Hall Of Famer
 
cody8200's Avatar
 
Join Date: Jan 2003
Location: Indianapolis
Posts: 2,436
Quote:
Originally Posted by fhomess View Post
First post updated with OOTP15 version of StatsLab.

Perhaps a mod can change the title of this thread from "StatsLab13" to just "StatsLab"? That would be great!
Tremendous news! Thanks for all of your effort with this.
__________________
Sharp Guys Web Design -
Twitter: @sharpguysweb
cody8200 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 05:57 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