Home | Webstore
Latest News: OOTP Update 20.5.52 - OOTP 20 Available - FHM 5 Available

MLB All-Star Game Special: Save 50% on OOTP 20!

  

Go Back   OOTP Developments Forums > Out of the Park Baseball 20 > OOTP Mods

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

Reply
 
Thread Tools
Old 05-21-2007, 09:02 PM   #1
Getch
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 866
Thanks: 1
Thanked 115x in 67 posts
Updated Draft Utility

I've updated my draft utility with some requested features:

- Draft Timer (including "off-times" at night)
- Admin Auto-draft using GM's Draft List
- Option to choose the amount of players displayed on the page
- Log in as any user as Admin
- Fixed the View button

Get the latest version at:

http://www.ootpmodsquad.com/mods/onl...ftUtil2007.zip

However, DON'T upgrade in the middle of the draft. Wait until it's over to get the new goods.

As always, let me know if you have any issues or features you'd like to see.
__________________
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; 05-21-2007 at 09:06 PM.
Getch is offline   Reply With Quote
Old 05-21-2007, 09:12 PM   #2
robster1225
Hall Of Famer
 
robster1225's Avatar
 
Join Date: Jun 2006
Location: Hidd, Bahrain
Posts: 2,616
Thanks: 3
Thanked 9x in 8 posts
Awesome, Getch. I can't wait to try this out.

Quick question, does the "Draft Timer" auto pick at the end of the time, or does the Commish still have to make the pick?
__________________
Robby Ruggles
robster1225 is offline   Reply With Quote
Old 05-21-2007, 09:14 PM   #3
Getch
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 866
Thanks: 1
Thanked 115x in 67 posts
Still gotta make the pick. Sorry, didn't see any easy way of doing that.
__________________
Get the OOTP Online Utilities for online leagues!
Includes Gamecast, Development, Live Sims, Voting and more.
Check here for more details
Getch is offline   Reply With Quote
Old 05-21-2007, 09:16 PM   #4
robster1225
Hall Of Famer
 
robster1225's Avatar
 
Join Date: Jun 2006
Location: Hidd, Bahrain
Posts: 2,616
Thanks: 3
Thanked 9x in 8 posts
Hey, no problem. At least it's a nice little visual reminder that the GM needs to make the pick, and it helps the commish keep track of the time limits. Good work Getch!
__________________
Robby Ruggles
robster1225 is offline   Reply With Quote
Old 05-22-2007, 07:24 PM   #5
Kaitiaki
Hall Of Famer
 
Kaitiaki's Avatar
 
Join Date: Mar 2002
Location: Ontario, Canada
Posts: 2,065
Thanks: 0
Thanked 2x in 2 posts
Thanks for adding these features, Getch. We're much obliged.

- Kai
__________________
BJHL: Commissioner; Owner: Wichita War Eagles
Kaitiaki is offline   Reply With Quote
Old 05-23-2007, 09:51 AM   #6
Kaitiaki
Hall Of Famer
 
Kaitiaki's Avatar
 
Join Date: Mar 2002
Location: Ontario, Canada
Posts: 2,065
Thanks: 0
Thanked 2x in 2 posts
Getch,

Does the draft timer support times greater than 24 hours? If so, how? I get impossible things when I try to do it - such as "Pick due by Wednesday at 73:37 PM".

Also, a feature request for any future versions, if you're thinking of doing any more: could we get a few extra ratings added to the player display? I'd really like some of the personality ratings - Work Ethic, Loyalty and Greed, primarily - as well as GB% for pitchers. I imagine everyone has their own "pet ratings" that are important to them, however, so I could understand why you might not want to open the floodgates to requests to have every single rating displayed/sortable in the utility, but I figured it couldn't hurt to ask. Personally, those four ratings would make the sorting features of the utility much more useful to me. Without them, I still use OOTP/Excel to rank my draftees, and then just use the utility to manage the resulting draft list.

- Kai
__________________
BJHL: Commissioner; Owner: Wichita War Eagles

Last edited by Kaitiaki; 05-23-2007 at 10:13 AM.
Kaitiaki is offline   Reply With Quote
Old 05-25-2007, 09:55 AM   #7
Getch
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 866
Thanks: 1
Thanked 115x in 67 posts
Er, not sure how you are getting 73:37 pm. What's your settings in setup.txt for the 3 timer options? If one of those is bad, that could screw up the utility.

Adding new sorts is not too hard... just a matter of finding the fields in the .csv file.
__________________
Get the OOTP Online Utilities for online leagues!
Includes Gamecast, Development, Live Sims, Voting and more.
Check here for more details
Getch is offline   Reply With Quote
Old 05-25-2007, 02:28 PM   #8
Kaitiaki
Hall Of Famer
 
Kaitiaki's Avatar
 
Join Date: Mar 2002
Location: Ontario, Canada
Posts: 2,065
Thanks: 0
Thanked 2x in 2 posts
Quote:
Originally Posted by Getch View Post
Er, not sure how you are getting 73:37 pm. What's your settings in setup.txt for the 3 timer options? If one of those is bad, that could screw up the utility.
PICK_TIME:72
PICK_MORNING:0
PICK_NIGHT:0

I want people to have three days (72 hours) from the time of the last pick to make their selection, with no daytime/nighttime interruptions to the timer.

However, with a pick having been made earlier this morning (Friday), the utility is currently displaying "Pick due by Friday at 68:31 pm" for the next person. I'm not sure precisely when the previous pick was made, but I would guess that the utility is counting hours correctly, but not rolling over to the next day properly?

Perhaps I'm not inputting the time in the correct format? Or do I need to put something in for PICK_NIGHT (from the readme, I assumed it worked the same way as PICK_MORNING, and should be left at 0 for a continuous clock)?

Quote:
Adding new sorts is not too hard... just a matter of finding the fields in the .csv file.
Cool. No pressure on that - unlike my previous concern, which was a "I need this or else", this is more of a "it would nice" request.

If it helps, though, the personality ratings are columns AB to AG in players.csv, with AB, AC, and AE being the three that I'm most interested in. Groundball Percentage is AP in players_pitching.csv.

EDIT> Also, while I'm harrassing you about this thing, what does the "Defense" sort for batters even do? Telling the utility to sort by Defense produces the exact same output as the basic, pre-sort alphabetical listing. It doesn't seem to have any effect. And how does it presumably come up with a single "Defense" value when the game uses such a multitude of fielding ratings - is it just the player's positional rating at his currently-assigned position?

- Kai
__________________
BJHL: Commissioner; Owner: Wichita War Eagles

Last edited by Kaitiaki; 05-25-2007 at 02:40 PM.
Kaitiaki is offline   Reply With Quote
Old 05-25-2007, 03:33 PM   #9
Getch
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 866
Thanks: 1
Thanked 115x in 67 posts
I never thought someone would want over 24 hours to make a pick, so the code never handled that. That's why you're seeing strange hours.

As for Defense, beats the hell out of me. Probably left over from 2006. Amazing that I never noticed it until you pointed it out.
__________________
Get the OOTP Online Utilities for online leagues!
Includes Gamecast, Development, Live Sims, Voting and more.
Check here for more details
Getch is offline   Reply With Quote
Old 05-25-2007, 03:57 PM   #10
Kaitiaki
Hall Of Famer
 
Kaitiaki's Avatar
 
Join Date: Mar 2002
Location: Ontario, Canada
Posts: 2,065
Thanks: 0
Thanked 2x in 2 posts
Quote:
Originally Posted by Getch View Post
I never thought someone would want over 24 hours to make a pick, so the code never handled that. That's why you're seeing strange hours.
Ah, that explains that then. No worries; I'll just leave that little feature off for the time being. It's not hard to keep the pace moving without an explicit timer in the utility. If you ever coded it so that an autopick was made as soon as the timer ran out, I might get more excited about using the feature and thus nag to get it changed, but as it is now it's not a big deal.

Quote:
As for Defense, beats the hell out of me. Probably left over from 2006. Amazing that I never noticed it until you pointed it out.
Heh. If you're thinking of altering that, you might want to split Defense into its component ratings for ranking purposes. A lot of amateur draftees have less than complete Experience at their position before being drafted, so the positional ratings are a poor guide to how good a player will be in the field.

At the very least, I would think Defense should be changed to Def Range (with the utility automatically selecting to display either Infield Range for 1B/2B/3B/SS or Outfield Range for LF/CF/RF). And if you're feeling comprehensive, add separate sorts for the Arm/Error ratings, though I think most people consider those to be "secondary" defensive ratings.

- Kai
__________________
BJHL: Commissioner; Owner: Wichita War Eagles
Kaitiaki is offline   Reply With Quote
Old 05-25-2007, 04:42 PM   #11
Getch
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 866
Thanks: 1
Thanked 115x in 67 posts
I'll keep it in mind. The main reason I don't have all these options is in real estate... not enough room on the page for the columns. I guess I would have to change the columns to reflect what you are sorting by, or have an option to chose the columns to be displayed.

Next version, maybe .
__________________
Get the OOTP Online Utilities for online leagues!
Includes Gamecast, Development, Live Sims, Voting and more.
Check here for more details
Getch is offline   Reply With Quote
Old 07-31-2007, 03:49 PM   #12
mikev
Hall Of Famer
 
mikev's Avatar
 
Join Date: Dec 2004
Location: Bay Area, CA
Posts: 4,014
Thanks: 0
Thanked 29x in 23 posts
Getch,

Our online league uses scouting. Does the utility show SISA ratings or will it show scout ratings for whichever team logs in?
__________________
Global Unified Baseball Association - Vice Commish and Oakland Oaks GM
mikev is offline   Reply With Quote
Old 07-31-2007, 04:40 PM   #13
Getch
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 866
Thanks: 1
Thanked 115x in 67 posts
The .csv dumps do not have any scouting ratings in them, not even SISA, so there's no way I can incorporate them into the utility. What other leagues have done is set the talent/rating scale to 1, so that all player's ratings show up as a 1. This means the GM's have to look in OOTP to figure out who they want to draft, but at least you get all the other functionality of the utility (although auto-drafting for a GM would be like picking a random person, since everyone is set to the same ratings).

Nothing I can do about it until OOTP dumps the scouted ratings to .csv... which would probably make a massive file. Maybe in 2008?
__________________
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; 07-31-2007 at 04:41 PM.
Getch is offline   Reply With Quote
Old 07-31-2007, 04:45 PM   #14
Tony M
Global Moderator
 
Tony M's Avatar
 
Join Date: Feb 2006
Location: Here
Posts: 6,156
Blog Entries: 3
Thanks: 41
Thanked 328x in 190 posts
Quote:
Originally Posted by Getch View Post
The .csv dumps do not have any scouting ratings in them, not even SISA, so there's no way I can incorporate them into the utility. What other leagues have done is set the talent/rating scale to 1, so that all player's ratings show up as a 1. This means the GM's have to look in OOTP to figure out who they want to draft, but at least you get all the other functionality of the utility (although auto-drafting for a GM would be like picking a random person, since everyone is set to the same ratings).

Nothing I can do about it until OOTP dumps the scouted ratings to .csv... which would probably make a massive file. Maybe in 2008?
I can split the scouting.dat file into scouts reports on players, but I haven't managed to work out which fields correspond to which fields on the scouting report. If I could work that out, I could create a scouting.csv in my program.
__________________
This signature is intentionally blank
Tony M is offline   Reply With Quote
Old 07-31-2007, 05:15 PM   #15
Getch
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 866
Thanks: 1
Thanked 115x in 67 posts
Quote:
Originally Posted by redsoxford View Post
I can split the scouting.dat file into scouts reports on players, but I haven't managed to work out which fields correspond to which fields on the scouting report. If I could work that out, I could create a scouting.csv in my program.
Very interesting. The other fear that I have is that the .csv would be so large that it would make it real slow to parse the csv each time the page is accessed (Perl is powerful... each time you access the page the utility is parsing the .csv files and is still subsecond, but I think it will reach its limit when a scouting.csv is involved). I'd have to do some "slight of hand" work to speed it up.

Let me know if you pin a scouting.csv down, and I can maybe incorporate it into the utility.
__________________
Get the OOTP Online Utilities for online leagues!
Includes Gamecast, Development, Live Sims, Voting and more.
Check here for more details
Getch is offline   Reply With Quote
Old 09-28-2007, 02:52 PM   #16
kleric
Minors (Double A)
 
Join Date: Dec 2003
Location: Denver, CO
Posts: 153
Thanks: 2
Thanked 1x in 1 post
At what point does the draft.pl page show the amateurs?
We have our league set to display the pool on Apr. 15th, with feeder leagues (so the players are still playing), and a draft date of June 15th. It's Apr 24th in the league now and I don't see anything displaying on the draft.pl page, is it because they're still playing in the feeder league you think?
kleric is offline   Reply With Quote
Old 09-28-2007, 03:14 PM   #17
Getch
All Star Reserve
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 866
Thanks: 1
Thanked 115x in 67 posts
Nope, it's because it doesn't support feeder leagues. Something I plan on for the next release (coming soon).

For some odd reason, players in feeder leagues that are draft eligible don't have that flag set, which is the issue. I have to get the pool by looking at age limits of the league compared to the age of the player. I am curious, though... is it the age of the player on Jan 1st, or when the draft pool is released, or what?

Could you PM me your .csv files for your league? Maybe I can whip something up quickly for you. Please also give me a few names of players who are draft eligible but are not showing up, and the URL of the league (so I can look at the HTML reports). Thanks.
__________________
Get the OOTP Online Utilities for online leagues!
Includes Gamecast, Development, Live Sims, Voting and more.
Check here for more details
Getch is offline   Reply With Quote
Old 10-01-2007, 08:56 AM   #18
Another Mike D
All Star Reserve
 
Join Date: Feb 2002
Location: atl
Posts: 888
Thanks: 0
Thanked 7x in 6 posts
Hey Getch, is there a way to have the utility display the number of players in a GM's list? Something like...

Atlanta (0)
Detroit (5)
Boston (3)

Not sure how difficult it would be since they are all in separate text files, just an idea so that way I can see who isn't going to be ready when their turn is up.

Thanks.
__________________
San Diego Padres NexGen Baseball League
Cleveland Indians United Baseball League

Co-commissioner of United Baseball League
Another Mike D is offline   Reply With Quote
Old 10-01-2007, 09:15 AM   #19
kleric
Minors (Double A)
 
Join Date: Dec 2003
Location: Denver, CO
Posts: 153
Thanks: 2
Thanked 1x in 1 post
Quote:
Originally Posted by Getch View Post
Nope, it's because it doesn't support feeder leagues. Something I plan on for the next release (coming soon).

For some odd reason, players in feeder leagues that are draft eligible don't have that flag set, which is the issue. I have to get the pool by looking at age limits of the league compared to the age of the player. I am curious, though... is it the age of the player on Jan 1st, or when the draft pool is released, or what?

Could you PM me your .csv files for your league? Maybe I can whip something up quickly for you. Please also give me a few names of players who are draft eligible but are not showing up, and the URL of the league (so I can look at the HTML reports). Thanks.

I actually got it working by copying files over to a test league, then advancing the date to actual draft day. Then took that players.csv and used it for the tool. It'll work as a work-around for now.
kleric is offline   Reply With Quote
Old 10-01-2007, 01:43 PM   #20
fhomess
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 3,457
Thanks: 165
Thanked 1,176x in 442 posts
I ran into a problem with my online league while working on the draft utility setup. The utility has some nifty little features that the commish can use via an Admin link to reset passwords, edit picks, and trade picks. Unfortunately, if you're the commish for the league but not a GM, you can't login.

If you open up passwords.html and login.html in a text editor like Wordpad, you can fix this with the following modification.

Search for the following line of code:
Code:
open (IN, "$info{CSV}/human_managers.csv");
Just below it will be an if statement that checks which managers to inlcude on the login screen. As released, only active managers are included. To also include the commish, you simply need a slight modification to the if statement.

Change it from:
Code:
	if ($5 > 0) {
to:
Code:
	if ($2 >0 || ($5 > 0)) {
and you should be good to go.
__________________
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

Thread Tools

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 03:03 PM.

 

Major League Baseball trademarks and copyrights are used with permission of MLB Advanced Media, L.P. Minor League Baseball trademarks and copyrights are used with the permission of Minor League Baseball. All rights reserved.

The Major League Baseball Players Association (www.MLBPLAYERS.com ) is the collective bargaining representative for all professional baseball players of the thirty Major League Baseball teams and serves as the exclusive group licensing agent for commercial and licensing activities involving active Major League baseball players. On behalf of its members, it operates the Players Choice licensing program and the Players Choice Awards, which benefit the needy through the Major League Baseball Players Trust, a charitable foundation established and run entirely by Major League baseball players. Follow: @MLB_Players; @MLBPAClubhouse; @MLBPlayersTrust

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 © 2017 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright © 2018 Out of the Park Developments