Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Fantasy FIRST (http://www.chiefdelphi.com/forums/forumdisplay.php?f=128)
-   -   [FF]: FF Draft Assistant Rewrite (http://www.chiefdelphi.com/forums/showthread.php?t=86162)

Vikesrock 22-06-2010 01:39

[FF]: FF Draft Assistant Rewrite
 
As a project to refresh my programming skills this summer I plan to completely rewrite my FF Draft Assistant app as a full GUI application using GTK+.

Here's a current planned feature list:

Full Draft Setup Capabilities
  • Uses full player names (hopefully allowing spaces, likely no periods)
  • Option for randomized or entered player order
  • Option for randomized or entered random team list order
  • Settings for # of rounds and serpentine or standard draft for flexibility
  • Automatic pick time creation based on entered start time
    • Built-in default time per round, and an option for manual configuration.
  • Automatic download and parsing of event team list (hopefully)
    • Manual entry if list is unavailable or parser fails
  • Robust list reader
    • Remove need for list ending character such as -1 or .
    • Automatically remove non-attending teams
    • Automatically match lists to tiers

Full Draft Running Capabilities
  • Manual, random and list pick options
    • Separate button for single list pick or multiple if possible
    • Visual indicator of players with lists with available teams (hopefully)
  • Intuitive pick edit capabilities
  • In-Draft List Editor
  • Option for auto draft running using list/random based on time (maybe)
  • Direct CD export
    • Possibly direct copy paste from in-program display

Save/Resume Functionality
  • Allow save at any point
  • Resume from single save file or from CD output + setup files

There may be more implemented if I think of things, but if anyone has anything they would like to see in a program like this please post here with your idea(s).

Chris is me 22-06-2010 04:36

Re: [FF]: FF Draft Assistant Rewrite
 
How about a way to "auto-rollback" a draft when a user posts a minute later going "oh i wanted team x that you gave to that guy"?

Vikesrock 22-06-2010 14:07

Re: [FF]: FF Draft Assistant Rewrite
 
Quote:

Originally Posted by Chris is me (Post 967309)
How about a way to "auto-rollback" a draft when a user posts a minute later going "oh i wanted team x that you gave to that guy"?

Interesting, I'll have to think about that one.

Vikesrock 17-07-2010 22:32

Re: [FF]: FF Draft Assistant Rewrite
 
I have completed the draft setup portion of the new program that will create tier and random team text files similar to the last version. The auto team list portion is not working yet, I am having some issues with getting something written to download a webpage to a file. I am going to put that off for now and work on the portion that runs the draft.

Here's a screenshot of the "New Draft Wizard" with the "Edit Round Times" and "Manual Team List" dialog boxes open.

The edit round times dialog will adjust the number of boxes to match the number of rounds selected at the time.


EricH 19-07-2010 00:33

Re: [FF]: FF Draft Assistant Rewrite
 
Kevin, I'll volunteer to run beta tests when you're ready for that. Ought to be able to use last year's or offseason team lists for that.

Vikesrock 23-07-2010 14:48

Re: [FF]: FF Draft Assistant Rewrite
 
Thanks Eric, I'm not there quite yet, but I'm getting closer.

Most of the draft setup is done (I did realize I forgot the option for an entered random list order, but it shouldn't be too bad to add)

The UI for the draft running is mostly done, the last thing I have to work out is how to display the text to copy-paste to CD. My current plan is to use an expander (one of those little triangles that expands when clicked) to show/hide a text box below the draft table.

Here's a peak at the draft running interface:


Vikesrock 19-08-2010 23:01

Re: [FF]: FF Draft Assistant Rewrite
 
After having some trouble with the installer and less time to work on this than I would have liked I finally have a version of this program ready to test (I think).

The program is posted here as FF_Draft_Assistant_setup.zip

Unfortunately the way it is currently written it is incompatible with both tier files and list files from the previous version.

I couldn't come up with a good way to parse the list files if the player names have spaces. Right now the program uses list files where the player names are followed by periods. I could switch back to no spaces in player names and no required periods in the list files if that seems like it would be easier.

There's a brief ReadMe and an example list file included in the install. Feel free to post or PM with any questions or anything that's broken.

I don't think the player coloring is explained in the ReadMe yet. Players in green have teams left on their list, players in red do not.

Known Issue: Player coloring does not occur when changing to a new tier for the first time.

EricH 19-08-2010 23:19

Re: [FF]: FF Draft Assistant Rewrite
 
Guess I better get testing before too long...

When life is a little less crazy, of course (getting ready to go back to college and all that).

BTW, hitting "apply" with not all the lists in/files loaded simply exits the program with no warning.

Vikesrock 19-08-2010 23:21

Re: [FF]: FF Draft Assistant Rewrite
 
Quote:

Originally Posted by EricH (Post 972064)
BTW, hitting "apply" with not all the lists in/files loaded simply exits the program with no warning.

Forgot about that one. I did discover that at some point, I'll add graceful error handling to the list of things to work on.

Vikesrock 24-08-2010 17:26

Re: [FF]: FF Draft Assistant Rewrite
 
Quote:

Originally Posted by Vikesrock (Post 972065)
Forgot about that one. I did discover that at some point, I'll add graceful error handling to the list of things to work on.

That problem is now solved (although I haven't put the new copy up yet). I have also fixed the list coloring and another error I discovered where odd things happened if you selected a time like you were making a manual pick, but then didn't change the text in the box.

These are all minor edits so I'll hold onto the new version for now.

There are still issues (crashes or lockups) if you accidentally load a file of the wrong format. I'm going to try to work on that a little bit, but it's not quite as easy to solve as the other issues were.

Vikesrock 31-08-2010 17:20

Re: [FF]: FF Draft Assistant Rewrite
 
A new version has now been posted.

Changes:

New Features:
1. Auto team list downloading and processing is now available, simply enter the event code in the box.

Error Fixes:
1. Graceful handling of missing player file or team file.
2. Player coloring based on list status is available immediately on tab change
3. Fixed glitch which occurred when selecting a time but making no pick.


I haven't had a chance to test what happens if you try to use this installer directly over the last install, so there a few ways to upgrade:

1) Uninstall the old version and install this one
2) Guinea pig installing this over the other one (I think this will work if you say yes to any file overwrites it asks about)
3) Download the 4th file listed in the paper and replace your current program with the new one and copy curl.exe into "Install Directory\GTK\bin"

EricH 01-09-2010 12:22

Re: [FF]: FF Draft Assistant Rewrite
 
Well, I discovered how to lock up the old version.

Manually enter the team list.

I haven't tried event code hunting yet; I also can't figure out how to actually run a draft instead of just set one up.

Guess I better see if the newer version works on that front...

Oh, and when I uninstalled in preparation to install the new one, all the .txt files on my desktop vanished entirely. Ditto for some movies and the .exe files for some other programs that I'd written.

EricH 01-09-2010 12:35

Re: [FF]: FF Draft Assistant Rewrite
 
OK, new version: I go to put in a file for players with the requested parameters. It can't open (but goes right back to the setup screen, which is good). Check the file again, save it again, try again. Then it pops up the manual team entry list box, so I enter that again, then I get an error message "encountered a problem and needs to close. Sorry..."

However, it did spit out the files needed for a draft.

And I figured out how to run it. Next up: testing with lists when I get the time. (Oh, and the manual team entry popped up again when I went to run the draft.)

Vikesrock 01-09-2010 12:41

Re: [FF]: FF Draft Assistant Rewrite
 
Well that sounds fun!

I will fix the uninstall problem, I know what caused that.

If you could email me the files you have been using (player and team list) that have been giving you trouble I'll try to figure out what's going on. My email is my CD Username @ gmail.com

I'm hoping to get in some more testing of my own tonight as I have been primarily testing all versions with a single player file and team file that haven't caused these issues.

EricH 01-09-2010 18:26

Re: [FF]: FF Draft Assistant Rewrite
 
I got a clean run using the files that I sent and a lists file (after I put the periods in the list file). Can't wait to get some team lists for the actual events and try it out that way...


All times are GMT -5. The time now is 17:34.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi