|
||||
|
![]() |
#1 |
Hall Of Famer
Join Date: Nov 2002
Posts: 3,627
|
StatsLab
StatsLab 13 v3.0
I've had a lot of inquiries about StatsLab lately, so here is finally an update to the utility. StatsLab is a set of web pages and utilities for use with online leagues. It requires PHP and MySQL on a webserver. The intention is to enhance the online league experience by covering some gaps in what can be done via OOTP itself. For those of you familiar with the old version of StatsLab, everything has been rewritten to hopefully provide a better experience. Downloads Downloads are now accessible at the work in progress StatsLab Wiki. Versions are available for OOTP21, through OOTP13. See the wiki for which version to use depending on your version of OOTP. PHP 7.2 support was added in the OOTP20 version. Questions about installation and configuring the MySQL load in OOTP can be found via the Installation link on the left. Be sure to download the appropriate version for your league. Documentation The zip files include basic installation instructions, as well as instructions for upgrading from the old version of StatsLab12 and draft utility instructions. Full documentation is not yet available, but will be written up in the near future. If in doubt, check out the old StatsLab11 documentation - most of the settings function similarly. Key Features:
Now the disclaimer... I haven't had as much testing from live leagues as I would have liked. The PEBA has been using the StatsLab12 version for some time now, and while I've shared the util with some OOTP13 leagues, I haven't had a lot of feedback. I'm sure it's possible that some things have been missed, so questions/bug reports/enhancement suggestions and the like are all welcome. The best way to get a response from me is to PM me on these forums, although there's enough StatsLab experience floating around the OOTP community that posting in this thread may get your question answered by a forum member faster than I will get to it. Acknowledgements The original idea for StatsLab came from Catobase and OOTP:OU, as well as Markus' inclusion of a MySQL data dump. Many thanks also to Corsairs, and the rest of the PEBA for putting up with some bugs and botched fixes along the way. Donate to StatsLab - StatsLab is free to use. Donations are not required, but greatly appreciated given the amount of time that has gone into this.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues Baseball Cards - Full list of known templates and documentation on card development. Last edited by fhomess; 06-08-2020 at 05:03 PM. |
![]() |
![]() |
![]() |
#2 |
All Star Starter
Join Date: Jan 2004
Posts: 1,339
|
Ah, Catobase, I remember that well.
Look forward to trying this. |
![]() |
![]() |
![]() |
#3 |
Hall Of Famer
Join Date: Jan 2003
Location: Indianapolis
Posts: 2,436
|
I just wanted to post a live version of a StatsLab 13 game for people who may never have seen it in action. This is just my single player league I play. Just the first year in so a lot of the cool history stuff isn't working yet. Amazing work as always Frank!
Box Scores - StatsLab for OOTP13 |
![]() |
![]() |
![]() |
#4 | |
Hall Of Famer
Join Date: Dec 2001
Location: Union City, TN
Posts: 6,383
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 |
Hall Of Famer
Join Date: Jan 2003
Location: Indianapolis
Posts: 2,436
|
Weird. I just tried it again after logging out and it still works.
|
![]() |
![]() |
![]() |
#6 |
Minors (Double A)
Join Date: Apr 2010
Posts: 118
|
I was able to get this up and running last night for my league. No hitches to report. Thanks for all your work on this!
|
![]() |
![]() |
![]() |
#7 |
Minors (Single A)
Join Date: Apr 2010
Posts: 64
|
This is great news! Thanks!
|
![]() |
![]() |
![]() |
#8 |
Hall Of Famer
Join Date: Jan 2003
Location: Indianapolis
Posts: 2,436
|
I'm loving all of the new graphs, positional leaderboards and history. I would love to see the preseason prediction make a comeback though! Awesome stuff Frank!
|
![]() |
![]() |
![]() |
#9 |
Minors (Double A)
Join Date: Mar 2006
Posts: 163
|
Really happy to see this back and updated. You do a great job, and I know my league is super appreciative to have something as cool as StatsLab available to it.
Having installed this two nights ago, it's run perfectly. I haven't run into any bugs save for the following small one: the Development tracker is reporting changes in a pitcher's Control as changes in Contact. For example: http://buane.net/risingstar/StatsLab...=all&split=all
__________________
Commissioner - Rising Star League Congratulations to the 2060 Champion Buffalo Rangers! |
![]() |
![]() |
![]() |
#10 |
All Star Reserve
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
|
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?
__________________
DanGarion GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League PCJBL! |
![]() |
![]() |
![]() |
#11 |
All Star Reserve
Join Date: Oct 2003
Location: Lambertville, NJ
Posts: 758
|
I seem to have a problem with running win shares. I get a whole bunch of messages like:
Warning: Division by zero in /home/spindel/public_html/unionleague/StatsLab/winshares.php on line 1010 Warning: Division by zero in /home/spindel/public_html/unionleague/StatsLab/winshares.php on line 1077 Warning: Division by zero in /home/spindel/public_html/unionleague/StatsLab/winshares.php on line 1281 Warning: Division by zero in /home/spindel/public_html/unionleague/StatsLab/winshares.php on line 1292 That last two appear a bunch of times. Any ideas?
__________________
Union League Baseball Commissioner since 2011. Last edited by Spindel; 12-15-2012 at 05:42 AM. |
![]() |
![]() |
![]() |
#12 | ||
Hall Of Famer
Join Date: Nov 2002
Posts: 3,627
|
Quote:
Quote:
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues Baseball Cards - Full list of known templates and documentation on card development. |
||
![]() |
![]() |
![]() |
#13 |
All Star Reserve
Join Date: Oct 2003
Location: Lambertville, NJ
Posts: 758
|
Yeah, a few leagues seasons are over.
__________________
Union League Baseball Commissioner since 2011. |
![]() |
![]() |
![]() |
#14 | |
All Star Reserve
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
|
Quote:
I was getting the ERROR: OOTP SQL Utilities not configured properly (no ootp_sql_admin table) Interesting, I went ahead and clicked on "Admin" from the validator and it said the db wasn't loaded and to click on a link to load it. I did that and it actually was able to load the whole db... with no timeouts (remember how the old version used to do that???). And it looks like I can login now. Wow... Statslab has really progressed from the last time I was able to use it with our old league... Amazing.
__________________
DanGarion GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League PCJBL! Last edited by dangarion; 12-16-2012 at 04:57 PM. |
|
![]() |
![]() |
![]() |
#15 |
All Star Reserve
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
|
Just figured I would ask the genius behind Statslab, is there some type of automated way/process to get the MySql uploaded to the server without having to upload things twice (the league file, and then the MySql)? I'm not the commish but I'm the website cocommish guy for our league (just as I've always been for any league I've been in).
I'm just wondering how other leagues do it all because that's quite a bit of waiting around for things to process and uploading to do...
__________________
DanGarion GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League PCJBL! |
![]() |
![]() |
![]() |
#16 |
All Star Reserve
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
|
Code:
<?php include("/home/pcjbl/pcjbl.com/StatsLab/widget.php?show=standings&division=1&sub_league=1"); ?> Getting this error. Warning: include(/home/pcjbl/pcjbl.com/StatsLab/widget.php?show=standings&division=1&sub_league=1) [function.include]: failed to open stream: No such file or directory in /home/pcjbl/pcjbl.com/wp-content/plugins/enhanced-text-widget/enhanced-text-widget.php(53) : eval()'d code on line 2 Warning: include() [function.include]: Failed opening '/home/pcjbl/pcjbl.com/StatsLab/widget.php?show=standings&division=1&sub_league=1' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/pcjbl/pcjbl.com/wp-content/plugins/enhanced-text-widget/enhanced-text-widget.php(53) : eval()'d code on line 2 I tried to switch it a bit with this... Code:
<?php include $_SERVER['document_root'].’/StatsLab/widget.php?show=leaders’; ?> Right now I'm just trying to call the code to a php file to see if I can get it to work. I can get the links themselves to work perfectly fine, but once I put the parameter everything seems to break down... The sad part is I know it's just a simple fix, I'm just not thinking straight. It appears you can't sent parameters via include with local php files, the only way to do that is with external links (which is a big security no no). I can get the include to work with if I just include widget.php I get the same output on my Wordpress install as I do when I go to the direct link, but that doesn't provide anything useful.
__________________
DanGarion GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League PCJBL! Last edited by dangarion; 12-17-2012 at 02:04 AM. |
![]() |
![]() |
![]() |
#17 |
Hall Of Famer
Join Date: Jan 2003
Location: Indianapolis
Posts: 2,436
|
Hi Frank, a few things:
I noticed the option to include the Sim Preview screen was included in admin settings but the actual simPreview.php is missing. Was this on purpose or a mistake? The StatsLab player cards link to the development report is currently broken. And while Markus finally distinguished between round 1, pick 1 players and round 1 pick 1 supplemental draft, statslab still doesn't (that may just be a export issue). Thanks. Last edited by cody8200; 12-17-2012 at 01:17 AM. |
![]() |
![]() |
![]() |
#18 | ||||
Hall Of Famer
Join Date: Nov 2002
Posts: 3,627
|
Quote:
Quote:
Quote:
Quote:
Will be fixed in 3.0.1.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues Baseball Cards - Full list of known templates and documentation on card development. |
||||
![]() |
![]() |
![]() |
#19 | |
All Star Reserve
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
|
Quote:
__________________
DanGarion GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League PCJBL! |
|
![]() |
![]() |
![]() |
#20 | |
Hall Of Famer
Join Date: Nov 2002
Posts: 3,627
|
Quote:
EDIT... apparently "eye-Frame" is a bad word here? Replace the asterisks with eye-Frame, but change "eye" to "I".
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues Baseball Cards - Full list of known templates and documentation on card development. Last edited by fhomess; 12-18-2012 at 02:23 PM. |
|
![]() |
![]() |
![]() |
Bookmarks |
|
|