|
I started to work on HOF Points. This is a system that I developed that looks at a player's career stats and gives points on different things, i.e.
> 2000 hits = 5 points
> 2500 hits = 5 points
etc.
> 400 SB-CS = 5 points...
Stuff I add points for are average, hits, doubles, triples, home runs, rbis, runs, walks, hbp, sf, sh, sb (take away cs), gold gloves, mvp awards, top 10 appearances.
I started the coding, but the past couple weeks, the dump has been changing from build to build, so I really need to wait until the patch is out before I can release anything. I hope to have something a couple weeks after the patch.
One problem is with long leagues. My1952-1976 league had 8400 players. In the dump, every season has 3 lines for each player.
So, player 1 would be dumped as shown:
1952: vs. lhp
1953: vs. rhp
1954: total
So let's say that I have 8400 players and each player lasted 10 years, that would be 8400*3*10 lines that have to be read in. That takes time. Plus, they have to be tallied and the math done.
So, I will be coding it so that once a player is read in, it will check his retired field. If he is retired, it will then write his total stats and his hof points will be written to a new file.
So, when you run it the 2nd time, it will read through the player file and skip over the players that are already done.
I also do not have the field listings, as they say I will have that soon. So, a lot of the information is useless at this point. For instance the leaderboard section has a category field. This has a number in it, meaning what category it is, i.e. doubles, homeruns, wins, etc. It would take me a LONG time to figure out what each one is. I am also discovering a few missing fields, and hopefully they will fix that before the patch.
|