Latest News: OOTP 9 pre-order started! Save $15! - Title Bout Championship Boxing 2.5 released! - OOTP 8 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 8!

Go Back   OOTP Developments Forums > Out of the Park Baseball 8/2007 > OOTP 8/2007: Mods
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

OOTP 8/2007: Mods Logos, roster packs, historical databases, OOTP tools, FaceGen files... it's all here!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-31-2007, 08:51 AM   #21 (permalink)
Stu
All Star Reserve
 
Stu's Avatar
 
Join Date: Dec 2005
Posts: 994
dola,

One other question. I add an html header and footer to all my php and html pages on my site. I accomplish this by using in my php.ini:

auto_prepend_file = /path.../header.html
auto_append_file = /path.../footer.html

I process all the html pages as php pages so it adds these headers as well.

Obviously I can't process perl files as php, so do you know of an easy way to include these headers on all the utilities pages?
Stu is offline   Reply With Quote
Old 10-31-2007, 04:56 PM   #22 (permalink)
Major Leagues
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 465
Quote:
Originally Posted by Stu View Post
I just installed this utility. Absolutely amazing work. You took some already good utilities and combined them into a suite that is incredibly easy to install and maintain.

Out of curiosity, how does the draft auto pick work for scouted leagues? Does it look at the ratings behind the scenes and take the best player available? Does it try to avoid taking players from the same position?

Thanks for all the hard work. I'll be posting a link to your paypal address on my forums and encouraging my owners to donate.
Glad it's easier to install... that was one of the main goals of this version, since I believe only one league (that I am aware of) installed the first version without my help.

Auto-draft on scouted leagues DOES look at the underlying actual ratings/talents, but I convert them to a 2-8 scale, so it "clouds up" the ratings so it won't be 100% accurate. There's no logic (scouted or not scouted) to prevent you from auto-drafting the same position twice.
__________________
Get my OOTP 2007 Utilities (Readme) for online leagues! One utility, six tools:

Allstar Voting
Development Tracker
Export Tracker
Last Sim's Stats and Performances
Manager's Contact Page
Rookie Draft
Getch is offline   Reply With Quote
Old 10-31-2007, 05:01 PM   #23 (permalink)
Major Leagues
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 465
Quote:
Originally Posted by Stu View Post
dola,

One other question. I add an html header and footer to all my php and html pages on my site. I accomplish this by using in my php.ini:

auto_prepend_file = /path.../header.html
auto_append_file = /path.../footer.html

I process all the html pages as php pages so it adds these headers as well.

Obviously I can't process perl files as php, so do you know of an easy way to include these headers on all the utilities pages?
Does it go by entension? You can change the name of the utility to whatever you want, like ootpou.html, so long as you change the 11th line in ootpu.pl to match the name:

my $file = 'ootpou.pl';

If that doesn't work, you'll have to paste the header and footer HTML into printHeader() and printTail() functions in HTMLUtils. Put it between the:

print $out << EOF;
....
EOF

lines in each function.
__________________
Get my OOTP 2007 Utilities (Readme) for online leagues! One utility, six tools:

Allstar Voting
Development Tracker
Export Tracker
Last Sim's Stats and Performances
Manager's Contact Page
Rookie Draft

Last edited by Getch : 10-31-2007 at 05:13 PM.
Getch is offline   Reply With Quote
Old 11-01-2007, 02:05 PM   #24 (permalink)
Bat Boy
 
Join Date: Jan 2007
Posts: 17
Has anyone had any problems with the utility auto-picking players even though the team (A) doesn't have a list and (B) the admin didn't ask for an autopick?

For instance, I am the admin in my league and I made a selection for someone, but when I refreshed, a bunch of other picks were made (including the same guy three times). I looked and none of those teams had lists either.

Also, is there any way to delete selections made once they have been made? Instead of editting over them, can you just delete, say, the last three picks?

Thanks!

Bret
BretRock is offline   Reply With Quote
Old 11-02-2007, 07:03 AM   #25 (permalink)
Major Leagues
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 465
Quote:
Originally Posted by BretRock View Post
Has anyone had any problems with the utility auto-picking players even though the team (A) doesn't have a list and (B) the admin didn't ask for an autopick?

For instance, I am the admin in my league and I made a selection for someone, but when I refreshed, a bunch of other picks were made (including the same guy three times). I looked and none of those teams had lists either.

Also, is there any way to delete selections made once they have been made? Instead of editting over them, can you just delete, say, the last three picks?

Thanks!

Bret
Never heard of that before. What's your league's site? I'd like to look into this and see what happened.

As for editing, edit the picks.txt file in the OOTPOU/draft// folder... should be self-explanatory on what to do (the readme also mentions this).
__________________
Get my OOTP 2007 Utilities (Readme) for online leagues! One utility, six tools:

Allstar Voting
Development Tracker
Export Tracker
Last Sim's Stats and Performances
Manager's Contact Page
Rookie Draft
Getch is offline   Reply With Quote
Old 11-02-2007, 08:41 AM   #26 (permalink)
Bat Boy
 
Join Date: Jan 2007
Posts: 17
Quote:
Originally Posted by Getch View Post
Never heard of that before. What's your league's site? I'd like to look into this and see what happened.

As for editing, edit the picks.txt file in the OOTPOU/draft// folder... should be self-explanatory on what to do (the readme also mentions this).
Thanks for getting back to me so quickly.

The league's sit is www.mlsb.allsimbaseball2.com.

We love the utility and it's probably something I am doing wrong, but I just thought I'd check.

I actually have already reset and re-did the draft and currently have it disabled and am just manually entering the picks, so I am not sure what you are going to be able to see, but the best I can describe is this:

The first time it happened, we were in the second round and I auto-picked for a team and then, every time I refreshed (which might be the problem, so I've stopped doing that) it would show up with a bunch of picks made. I thought that it might be that each team had had a list and had set it to auto-pick, but then, it got to my pick and it selected for me too, and I definitely didn't have a list or auto-pick set.

So I reset the draft and re-did it to where I know we were supposed to be and starting going again. I made a manual pick for a team and suddenly the same player was showing up for the next three picks. I reset it and re-did it again and have left the draft off and have just been inputting the picks manually and haven't had a problem.

Hope that helps.

Bret
BretRock is offline   Reply With Quote
Old 11-02-2007, 09:16 AM   #27 (permalink)
Stu
All Star Reserve
 
Stu's Avatar
 
Join Date: Dec 2005
Posts: 994
Getch,

Is there an easy way to set the timezone in Perl? My webserver is on MT and I don't have the ability to change the time on the server. I know in PHP I can put this at the beginning of the file:

Code:
putenv("TZ=US/Eastern");
And any time functions will use ET.

Is there something similar in Perl so I can make the times for the draft utility and export tracker Eastern Time?
Stu is offline   Reply With Quote
Old 11-03-2007, 08:56 PM   #28 (permalink)
Minors (Triple A)
 
Join Date: Mar 2002
Posts: 205
Does anyone know how to make this utility suite work for multiple leagues? I run three leagues and have it set up for one of them right now. Appreciate any assistance!

Dan
__________________
Harrisburg Rubes, PC Circuit: 1897, 1898, 1900 Champions
Commissioner, Baseball And Lord Lovers
Nassau Beachbums, Baseball And Lord Lovers
Commissioner, Baseball's Rebirth League
Chicago White Sox, Baseball's Rebirth League
huskerdan25 is offline   Reply With Quote
Old 11-03-2007, 09:10 PM   #29 (permalink)
Hall Of Famer
 
thomamon's Avatar
 
Join Date: Sep 2003
Location: NJ
Posts: 3,776
Quote:
Originally Posted by huskerdan25 View Post
Does anyone know how to make this utility suite work for multiple leagues? I run three leagues and have it set up for one of them right now. Appreciate any assistance!

Dan
Did you check the readme file? It's quite resourceful.
__________________
The OOTP Mod Squad - Your One Stop Shop for all of your OOTP MODS!
Rosters, Schedules, Stadiums, Face Packs, Quick Starts and so much more! Come download and/or share your MODS today!

APBL - Commissioner - New York Yankees

thomamon is offline   Reply With Quote
Old 11-03-2007, 09:16 PM   #30 (permalink)
Minors (Triple A)
 
Join Date: Mar 2002
Posts: 205
Quote:
Originally Posted by thomamon View Post
Did you check the readme file? It's quite resourceful.
I did but I might have missed it when I went through it. I'll look again unless you want to point me to where this is covered in the readme file.

I should mention that I am talking about 3 separate leagues, not multiple leagues in one universe. I see the readme talks about multiple leagues that are all related and within one universe but I have three separate leagues as you can see in my signature block that I would like to set this up for.

Thanks for any help.
__________________
Harrisburg Rubes, PC Circuit: 1897, 1898, 1900 Champions
Commissioner, Baseball And Lord Lovers
Nassau Beachbums, Baseball And Lord Lovers
Commissioner, Baseball's Rebirth League
Chicago White Sox, Baseball's Rebirth League

Last edited by huskerdan25 : 11-03-2007 at 09:34 PM.
huskerdan25 is offline   Reply With Quote
Old 11-03-2007, 11:43 PM   #31 (permalink)
Minors (Triple A)
 
Join Date: Mar 2002
Posts: 205
Ok, I was able to get some assistance from Getch and wanted to share it here for others who may be interested in the same question.

If your cgi-bin directory is cgi-enabled, then you can create folders for each league in your cgi-bin directory. For example:

cgi-bin/league1
cgi-bin/league2

You create your csv folder under the league directory.

Thanks Getch for the assistance and hopefully this will help others (instead of the "Did you read the readme file" response).
__________________
Harrisburg Rubes, PC Circuit: 1897, 1898, 1900 Champions
Commissioner, Baseball And Lord Lovers
Nassau Beachbums, Baseball And Lord Lovers
Commissioner, Baseball's Rebirth League
Chicago White Sox, Baseball's Rebirth League
huskerdan25 is offline   Reply With Quote
Old 11-05-2007, 08:59 AM   #32 (permalink)
Stu
All Star Reserve
 
Stu's Avatar
 
Join Date: Dec 2005
Posts: 994
Quote:
Originally Posted by huskerdan25 View Post
Ok, I was able to get some assistance from Getch and wanted to share it here for others who may be interested in the same question.

If your cgi-bin directory is cgi-enabled, then you can create folders for each league in your cgi-bin directory. For example:

cgi-bin/league1
cgi-bin/league2

You create your csv folder under the league directory.

Thanks Getch for the assistance and hopefully this will help others (instead of the "Did you read the readme file" response).
Be aware that this could cause an issue with the All-Star images. By default it creates the images folder 1 directory above the utility. So if you seperate them into folders, it will create the images directory in your cgi-bin and the images will not be accessible. To fix this I edited this line in ASAdmin.pm

$self->{ASDIR} = '../OOTPPU';

Just change '../OOTPOU' to the correct path.

I also commented out the lines that automatically create the images directory in '..OOTPOU' if it doesn't exist.

Last edited by Stu : 11-05-2007 at 09:07 AM.
Stu is offline   Reply With Quote
Old 11-05-2007, 10:00 AM   #33 (permalink)
Major Leagues
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 465
Quote:
Originally Posted by Stu View Post
Be aware that this could cause an issue with the All-Star images. By default it creates the images folder 1 directory above the utility. So if you seperate them into folders, it will create the images directory in your cgi-bin and the images will not be accessible. To fix this I edited this line in ASAdmin.pm

$self->{ASDIR} = '../OOTPPU';

Just change '../OOTPOU' to the correct path.

I also commented out the lines that automatically create the images directory in '..OOTPOU' if it doesn't exist.
Crud, good point... I need to fix that.
__________________
Get my OOTP 2007 Utilities (Readme) for online leagues! One utility, six tools:

Allstar Voting
Development Tracker
Export Tracker
Last Sim's Stats and Performances
Manager's Contact Page
Rookie Draft
Getch is offline   Reply With Quote
Old 11-05-2007, 11:24 AM   #34 (permalink)
Minors (Triple A)
 
Join Date: Mar 2002
Posts: 205
Quote:
Originally Posted by Stu View Post
Be aware that this could cause an issue with the All-Star images. By default it creates the images folder 1 directory above the utility. So if you seperate them into folders, it will create the images directory in your cgi-bin and the images will not be accessible. To fix this I edited this line in ASAdmin.pm

$self->{ASDIR} = '../OOTPPU';

Just change '../OOTPOU' to the correct path.

I also commented out the lines that automatically create the images directory in '..OOTPOU' if it doesn't exist.
Thanks Stu!
__________________
Harrisburg Rubes, PC Circuit: 1897, 1898, 1900 Champions
Commissioner, Baseball And Lord Lovers
Nassau Beachbums, Baseball And Lord Lovers
Commissioner, Baseball's Rebirth League
Chicago White Sox, Baseball's Rebirth League
huskerdan25 is offline   Reply With Quote
Old 11-06-2007, 12:29 PM   #35 (permalink)
Stu
All Star Reserve
 
Stu's Avatar
 
Join Date: Dec 2005
Posts: 994
Getch, just a suggestion if you're looking to add on. A lot of online leagues have their owners vote for end of season awards so how about an awards voting utility similar to your All-Star voting. It seems like it would be fairly easy to create since some of the same code would be re-used.

Potential features:
- mimimum PA, innings, starts, etc similar to your all-star voting util.
- Support for custom awards.
- Allow user to rank players for each award.
- Allow user to set point system for each rank (i.e 5 pts for 1st place vote, 3 pts for 2nd place, 1 pt for 3rd place, etc)
- Similar filtering of potential candidates as you use in your All-Star voting.
Stu is offline   Reply With Quote
Old 11-06-2007, 02:06 PM   #36 (permalink)
Major Leagues
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 465
Quote:
Originally Posted by Stu View Post
Getch, just a suggestion if you're looking to add on. A lot of online leagues have their owners vote for end of season awards so how about an awards voting utility similar to your All-Star voting. It seems like it would be fairly easy to create since some of the same code would be re-used.

Potential features:
- mimimum PA, innings, starts, etc similar to your all-star voting util.
- Support for custom awards.
- Allow user to rank players for each award.
- Allow user to set point system for each rank (i.e 5 pts for 1st place vote, 3 pts for 2nd place, 1 pt for 3rd place, etc)
- Similar filtering of potential candidates as you use in your All-Star voting.
It's planned, with all of what you said. Just taking a break for a bit... got burnt out doing this second release.
__________________
Get my OOTP 2007 Utilities (Readme) for online leagues! One utility, six tools:

Allstar Voting
Development Tracker
Export Tracker
Last Sim's Stats and Performances
Manager's Contact Page
Rookie Draft
Getch is offline   Reply With Quote
Old 11-06-2007, 03:16 PM   #37 (permalink)
Minors (Triple A)
 
Corsairs's Avatar
 
Join Date: Aug 2007
Posts: 250
I've bothered Getch enough about this so I'll throw it out here to see if anyone has any ideas. What I'm trying to accomplish is to make the draft utility's "Time Per Pick" field capable of reading numbers in minutes rather than hours. This is useful for when you're conducting an Inaugural Draft with a very large number of rounds. Currently even the smallest number that can be entered for the draft timer (1 hour) is too long.

Getch was kind enough to look into this for me and came up with a modified DraftAdmin.pm file that should theoretically allow you to enter time in minutes into the "Time Per Pick" field. In my practice runs, though, I wasn't able to get it working - I'm not sure if it's the file or me that's the problem. Would someone else like to test this file and see if they can get the draft timer count down in minutes rather than hours? Anyone have any ideas on how else this could be achieved?

While I'm here I have one other question about the draft utility: How do you set up an email distribution list? The readme says to enter the email address of the distribution list. I've set up a list in Outlook, but I don't think I can use that in the utility. Is this a service I'd have to pay to set up online?
Corsairs is offline   Reply With Quote
Old 11-06-2007, 03:36 PM   #38 (permalink)
Stu
All Star Reserve
 
Stu's Avatar
 
Join Date: Dec 2005
Posts: 994
Quote:
Originally Posted by Corsairs View Post
While I'm here I have one other question about the draft utility: How do you set up an email distribution list? The readme says to enter the email address of the distribution list. I've set up a list in Outlook, but I don't think I can use that in the utility. Is this a service I'd have to pay to set up online?
What do you have for a host? My host will let me set up distribution lists in cPanel.
Stu is offline   Reply With Quote
Old 11-06-2007, 03:46 PM   #39 (permalink)
Minors (Triple A)
 
Corsairs's Avatar
 
Join Date: Aug 2007
Posts: 250
Quote:
Originally Posted by Stu View Post
What do you have for a host? My host will let me set up distribution lists in cPanel.
All Sim Baseball is my host. Here is our league website for reference. I see options in both the web and forum admin panels for sending out mass mailings but not one that would let me designate an email address to be used as a distribution list.
Corsairs is offline   Reply With Quote
Old 11-08-2007, 02:41 PM   #40 (permalink)
Minors (Triple A)
 
Corsairs's Avatar
 
Join Date: Aug 2007
Posts: 250
Quote:
Originally Posted by Corsairs View Post
While I'm here I have one other question about the draft utility: How do you set up an email distribution list? The readme says to enter the email address of the distribution list. I've set up a list in Outlook, but I don't think I can use that in the utility. Is this a service I'd have to pay to set up online?
I wanted to take another shot at getting this question answered in advance of our draft on Saturday. Can anyone clue me in on how to properly set up a distribution list? If it's tied to our web host provider, mine is All Sim Baseball. I know several of you here use ASM, so maybe you can suggest the correct setting for me to use. Thanks in advance!
Corsairs 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 01:10 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