![]() |
|
|
#1 | ||||
|
College Prospect
Join Date: Sep 2010
|
Interrogator data on draft class / draft utility
OK, so I guess not a lot of people know that you can run Interrogator from the Stelmack suite and get info about the draft class: leadership, personality, intelligence, popularity, play to win, loyalty. A lot of you folks here probably did, but I had no idea until someone mentioned it recently.
So I had a question: how do leagues get that data into the draft utility? What's the file that the admin has to upload there? I didn't find using Interrogator for this purpose to be terribly straightforward, so here's a procedure I wanted to write down so that anybody could do it. And so I remember how to next time I need to. Interrogator 1) Run interrogator on the league at some point after the draft class is out. Start from the current offseason year (i.e, if you are about to start the 2025 draft, start from 2025) or it will take a really long time. 2) Interrogator outputs something like a dozen or more .csv files. They will be, by default, located in the install director of Stelmack Soft. e.g, C:\Program Files\StelmackSoft\FOF2k7 Utility Suite\. 3) The two spreadsheets we need are Player Active and Player Historical. Player Active.csv has the info we want, but no player names. Player Historical.csv has the player names. Now we have to combine them. Open these files up in any spreadsheet editing software - Excel, Open Office, whatever. 4) Delete any players who have an experience of "2" or more in both spreadsheets. We only want the draft class rookies. 5) Next, sort both spreadsheets by the Player ID column. This ensures that both spreadsheets now contain only the rookies and are sorted in the same order. 6) Delete any extraneous columns in Player Active.csv. There are a bunch of 'em...basically, just keep the ones you are interested in knowing. It's up to you what that is, but the ones we came here for are Loyalty, Play to Win, Leadership, Personality, Intelligence, Popularity. Might be good to keep the Position or Position Grouping column as well. 7) Now, take Player ID and Player Name column from Player Historical, and paste them as new columns in Player Active. Move the columns around so the two ID columns are next to each other (just a sanity check, to make sure they match up), and so that the Names column is the leftmost column. That's just a formatting detail. 8) Each row should now give you the Player ID, Player Name, and the pertinent data about the draft class guy. If you need to look anything up, simple Find function will do. 9) Save the file in a convenient location under a nice name. There you go! 10) If you want, you can sort by position grouping. You can also select the Position Group column and replace the numbers with the names of the actual positions. To do that, select the *entire* Position Group column, and use the Find & Replace function to "Replace All" for the following, in order: Quote:
Or, assuming your position group is in column C and the first player starts in the 2nd row: Quote:
Copy that formula into a new"Position" column and extend it all the way down. Replace C2 with A2 or B2 or whatever other column depending on whichever column the PosGroup numbers are. This automatically does the conversion. I broke it into two lines but you'll want to delete the linebreak, of course. The order with which you do the replace-all matters because if you replace all the 1's with QBs first, you'll get all the QBs properly listed, and then the 10-16 position groups will be listed QB0, QB1, QB2, QB3, etc...you get the idea ;P Example final product file, taken from the 2023 OSFL Draft: Download 2023 Interrogator.csv from Sendspace.com - send big files the easy way Last edited by aston217 : 05-03-2012 at 06:17 PM. |
||||
|
|
|
|
|
#2 |
|
H.S. Freshman Team
Join Date: Sep 2011
|
Hey!
__________________
"REDICULOUS PLAYER HOMETOWN ERROR" - ich22 "REDICULOUS :D" - MalcPow "To diculous again." - larrymcg421 |
|
|
|
|
|
#4 |
|
H.S. Freshman Team
Join Date: Sep 2011
|
Hey!
__________________
"REDICULOUS PLAYER HOMETOWN ERROR" - ich22 "REDICULOUS :D" - MalcPow "To diculous again." - larrymcg421 |
|
|
|
|
|
#5 |
|
H.S. Freshman Team
Join Date: Sep 2011
|
![]()
__________________
"REDICULOUS PLAYER HOMETOWN ERROR" - ich22 "REDICULOUS :D" - MalcPow "To diculous again." - larrymcg421 |
|
|
|
|
|
#6 |
|
H.S. Freshman Team
Join Date: Sep 2011
|
I'm just joking around, Aston. Good write up.
__________________
"REDICULOUS PLAYER HOMETOWN ERROR" - ich22 "REDICULOUS :D" - MalcPow "To diculous again." - larrymcg421 |
|
|
|
|
|
#7 |
|
College Prospect
Join Date: Sep 2010
|
I'm trying to paste the interrogator data into my extractor CSV, but there are a variety of problems preventing this from working. Well, one, really - Excel (and Open Office) will spit out a CSV that doesn't match up to the formatting standards of the one it takes in.
For one, the double quotes around text fields are lost, and a whole crap ton of extra commas are added at the end of every entry. Anybody more technically inclined have an idea of how to proceed? The idea here is to get the interrogator data viewable in Extractor. Matching up the players from the two CSVs is not a problem, the problem is just saving the Extractor CSV without breaking the structure of the file. |
|
|
|
|
|
#8 |
|
High School Varsity
Join Date: Mar 2006
Location: Woodstock, GA
|
From my understanding, that data is already there, it just has to be added to the code for the conscriptor.
__________________
Championships Won CCFL 2040 PFL 2015 2022 2026 2046 FFL 2013 2014 2015 RNFL 2014 2029 GMFL 2009 HFL 1983 1987 1990 TFL 1983 vNFL 2024 GML 2011 WOOF 2018 |
|
|
|
|
|
#9 | |
|
Morgado's Favorite Forum Fascist
Join Date: Oct 2000
Location: Greensboro, NC
|
Quote:
Code:
SORTABLE ROOKIE PERSONALITY RATINGS A similar query can add the info to Conscriptor so you don't have to bother with uploading all the extra Interrogator stuff. Code:
http://www.younglifenorthdekalb.com/...hp?player_id=4 (bottom of player card)
__________________
The media don't understand the kinds of problems and pressures 54 million come wit'! Last edited by Ben E Lou : 05-04-2012 at 06:42 AM. |
|
|
|
|
|
|
#10 |
|
College Prospect
Join Date: Sep 2010
|
Thanks. Actually all I wanted at first was to figure out how to do that (in conscriptor) but I couldn't find anyone who knew and could explain it at the time. So this is great!
Stupid question, but who in the league has access to these DBs? Only the commishes? I don't suppose I could manually generate and query the databases from a local server for myself and then supply the commish with the end result, or could I? Last edited by aston217 : 05-04-2012 at 09:07 AM. |
|
|
|
|
|
#11 |
|
Morgado's Favorite Forum Fascist
Join Date: Oct 2000
Location: Greensboro, NC
|
Access to the main database depends on the league, but anyone can set one up using DBUpdater, as long as they have access to a MySQL database, either through a hosting plan or on a local machine. Yes, you can set up php and MySQL on your local machine and do whatever you want. Mine is set up to do just that. DBUpdater works much faster that way, as a matter of fact. It can process an entire season in less than 30 seconds on my machine. Over the internet to a hosted server, it takes 5-6 minutes to do just one gameday stage, and 45-90 minutes to do a whole season. (And that's on a good day with a pretty fast connection.)
__________________
The media don't understand the kinds of problems and pressures 54 million come wit'! |
|
|
|
|
|
#12 |
|
High School Varsity
Join Date: Mar 2006
Location: Woodstock, GA
|
I only know enough to cause it to crash when I try to add that stuff to player.inc.php :/
__________________
Championships Won CCFL 2040 PFL 2015 2022 2026 2046 FFL 2013 2014 2015 RNFL 2014 2029 GMFL 2009 HFL 1983 1987 1990 TFL 1983 vNFL 2024 GML 2011 WOOF 2018 |
|
|
|
|
|
#13 |
|
Morgado's Favorite Forum Fascist
Join Date: Oct 2000
Location: Greensboro, NC
|
Heh. If I get time at some point I can give it a look for you.
__________________
The media don't understand the kinds of problems and pressures 54 million come wit'! |
|
|
|
|
|
#14 |
|
High School Varsity
Join Date: Mar 2006
Location: Woodstock, GA
|
I'd appreciate that. I sent you a PM on the CCFL forums.
__________________
Championships Won CCFL 2040 PFL 2015 2022 2026 2046 FFL 2013 2014 2015 RNFL 2014 2029 GMFL 2009 HFL 1983 1987 1990 TFL 1983 vNFL 2024 GML 2011 WOOF 2018 |
|
|
|
|
|
#15 |
|
College Prospect
Join Date: Sep 2010
|
hey, I figured out how to modify the extractor file for draft analyzer. (Excel generates trailing commas and they can be regexed out)
Ben, your instructions are great, but they are just for the conscriptor, correct? (that's fine, I just wanted to get it into DA as well) Importing the DA extractor as a csv and running the commands with the stuff from DBupdate would be much faster than executing the queries manually. I just can't figure out how to import the extractor used for DA into an sql database. The variable record length seems to be causing problems and I haven't the programming chops to overcome it. Not sure if you would consider that something worth doing or not if it's already available in conscriptor - I think the DA result is pretty handy though: example, load this up in draft analyzer Last edited by aston217 : 05-05-2012 at 12:18 AM. |
|
|
|
|
|
#16 |
|
High School JV
Join Date: Sep 2002
Location: GA
|
I was just referred to this thread. I'm adding this to Conscriptor as an import when setting up a draft.
It's up to the draft admin to upload the PlayersActive and PlayersHistorical CSV files then these attributes will appear in the player detail page just like popularity. |
|
|
|
|
|
#17 |
|
n00b
Join Date: Sep 2010
|
Good read here folks. I'll be toying with this at a later date so may have some questions then. Thanks aston17 for your write up and thanks to all with your comments. Great information
__________________
Miami Dolphins Fan eNFL : Miami Dolphins GM Commish CCFL: Seattle Seahawks GM CMFL: Miani Dolphins GM |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|