|
||||
|
10-31-2007, 08:51 AM | #21 |
All Star Starter
Join Date: Dec 2005
Posts: 1,255
|
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? |
10-31-2007, 04:56 PM | #22 | |
All Star Reserve
Join Date: Jan 2006
Posts: 868
|
Quote:
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 the OOTP Online Utilities for online leagues! Includes Gamecast, Development, Live Sims, Voting and more. Check here for more details |
|
10-31-2007, 05:01 PM | #23 | |
All Star Reserve
Join Date: Jan 2006
Posts: 868
|
Quote:
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 the OOTP Online Utilities for online leagues! Includes Gamecast, Development, Live Sims, Voting and more. Check here for more details Last edited by Getch; 10-31-2007 at 05:13 PM. |
|
11-01-2007, 02:05 PM | #24 |
Minors (Double A)
|
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 |
11-02-2007, 07:03 AM | #25 | |
All Star Reserve
Join Date: Jan 2006
Posts: 868
|
Quote:
As for editing, edit the picks.txt file in the OOTPOU/draft/<year>/<league> folder... should be self-explanatory on what to do (the readme also mentions this).
__________________
Get the OOTP Online Utilities for online leagues! Includes Gamecast, Development, Live Sims, Voting and more. Check here for more details |
|
11-02-2007, 08:41 AM | #26 | |
Minors (Double A)
|
Quote:
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 |
|
11-02-2007, 09:16 AM | #27 |
All Star Starter
Join Date: Dec 2005
Posts: 1,255
|
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"); Is there something similar in Perl so I can make the times for the draft utility and export tracker Eastern Time? |
11-03-2007, 08:56 PM | #28 |
Major Leagues
Join Date: Mar 2002
Location: Colorado
Posts: 352
|
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
__________________
|
11-03-2007, 09:10 PM | #29 |
Global Moderator
Join Date: Sep 2003
Location: NJ
Posts: 5,274
|
Did you check the readme file? It's quite resourceful.
__________________
Thomas A. Montalto Please check out my Stupid Little Blog - http://www.stupidlittleblog.com |
11-03-2007, 09:16 PM | #30 |
Major Leagues
Join Date: Mar 2002
Location: Colorado
Posts: 352
|
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.
__________________
Last edited by huskerdan25; 11-03-2007 at 09:34 PM. |
11-03-2007, 11:43 PM | #31 |
Major Leagues
Join Date: Mar 2002
Location: Colorado
Posts: 352
|
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).
__________________
|
11-05-2007, 08:59 AM | #32 | |
All Star Starter
Join Date: Dec 2005
Posts: 1,255
|
Quote:
$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. |
|
11-05-2007, 10:00 AM | #33 | |
All Star Reserve
Join Date: Jan 2006
Posts: 868
|
Quote:
__________________
Get the OOTP Online Utilities for online leagues! Includes Gamecast, Development, Live Sims, Voting and more. Check here for more details |
|
11-05-2007, 11:24 AM | #34 | |
Major Leagues
Join Date: Mar 2002
Location: Colorado
Posts: 352
|
Quote:
__________________
|
|
11-06-2007, 12:29 PM | #35 |
All Star Starter
Join Date: Dec 2005
Posts: 1,255
|
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. |
11-06-2007, 02:06 PM | #36 | |
All Star Reserve
Join Date: Jan 2006
Posts: 868
|
Quote:
__________________
Get the OOTP Online Utilities for online leagues! Includes Gamecast, Development, Live Sims, Voting and more. Check here for more details |
|
11-06-2007, 03:16 PM | #37 |
Hall Of Famer
Join Date: Aug 2007
Posts: 2,360
|
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? |
11-06-2007, 03:36 PM | #38 | |
All Star Starter
Join Date: Dec 2005
Posts: 1,255
|
Quote:
|
|
11-06-2007, 03:46 PM | #39 | |
Hall Of Famer
Join Date: Aug 2007
Posts: 2,360
|
Quote:
|
|
11-08-2007, 02:41 PM | #40 | |
Hall Of Famer
Join Date: Aug 2007
Posts: 2,360
|
Quote:
|
|
Bookmarks |
|
|