View Single Post
Old 08-02-2006, 02:41 AM   #20
Comedian2004
Hall Of Famer
 
Comedian2004's Avatar
 
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 7,085
OK,

I did several builds tonight and added a ton of stuff.

There are still a couple batting fields I want to add and I am thinking of adding the player's ratings.

Then I will move on to the pitchers. Once that is done, I will allow you to do a CSV dump of the files. I will also re-do the HTML page to include the exact same information in sortable tables. (Quite a chore)

A couple issues:

Major: If you run the program on a league that is between January 1st and opening day, the program will act like it locks up. It is not locked up, it is just not finding any data because everyone officially has no at bats at this point.

The problem. I cannot find a way to determing the date of the league. I am using some trickery to get the year, but I can't find where the date is stored, if anywhere in the dumps. I have requested this information.

Solution 1: Without the date, I do have a plan that may work. I am getting the year from the GAMES file, where it lists the schedule. I check for the 1st game and pull the year out of there. I guess I can check to see if that game has been played, and if it has not, then I will assume it is before the season has started. I will then displays last year stats.

Solution 2: If you notice next to the drop down menus, you will see the year. I could change that to be editable and it would use that. This would do the same thing, but it would allow you to display this grid based on the year you put in there. However, the salary information, ratings, etc., would all be based on their current numbers.

That could be very handy if it is in April or early in the season when there are not stats to use.

Minor Problem: I have not got the layout fine tuned yet. It first displays the fields a little wide, but once you click on a field to sort by, it shortens them, but some are too short. However, I have added tool tips to every field. So, you can place the cursor over any field to see what it is.

Minor Problem: The program is designed to look nice in 1024. Making everything autosize is a pain in the ass. Maybe later on. However, on the plus side, when the data view is up there, it should be taking advantage of your whole screen, even with dual monitors. (Let me know on that)

Minor Problem: The sorts default to accending, instead of decending. Of course, clicking it the second time will sort it the other way. I just have not looked into this yet.

Stuff you can do:

You can drag the fields around. For instance, you could drag the HR field right next to the salary field. It does not remember this if you exit the program and run it again.

You can edit any records, but nothing is saved back. I dunno why I left that on.

You can delete any records. Just click to the left of the players name and hit the delete key. You can use standard windows selecting to select more than one column. This is handy if you wanted to, well, delete players. The records are not deleted anywhere, except for in the grid. This could come in handy for the dump.

I also want to add the ability to delete columns and also customize and save the layout. Not sure if this will be possible.

I also want to change some of the fields to drop down menus that filter. So, you could just have all of the catchers displayed. Or just the people from a certain team or teams. I think this can be done, just not easy.

Maybe even add some other filters, like at bats, etc.

As you can see, when I start something, It really turns into something.

Keep the suggestions and the praise coming in. It is like a bunch of cheerleaders, except they are not hot and wearing short skirts with nice pom poms.
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it! New show every Monday!! New Blues HOF![/COLOR][/FONT]
Comedian2004 is offline   Reply With Quote