Page 1 of 2
Addin: Park Factors
Posted: Mon Jul 24, 2006 4:19 pm
by Abev
I was inspired by the Park Factors page at
espn.com and thought it would be cool to create one for PS.
It gives you an idea of whether you play in a hitters park or a pitchers park for the selected stat. Values greater than 1 indicate that its hitter friendly, values less than 1 indicate that the park is pitcher friendly.
DOWNLOAD IT HERE
Copy the file (ParkFactors.dll) into your 'PureSim Baseball 2007\mods\AddIns\VB6' directory.
A little warning - Cpu processing is pretty intensive on this one. Loading the addin takes about 2 minutes on my notebook.
RE: Addin: Park Factors
Posted: Mon Jul 24, 2006 5:08 pm
by akcranker
Abev I just tried this one and I got an error. It went to look at the first ball park Chicago(A) and it got an error: Add-in Error: No Current Record
Could this be because I just have the default ballparks?
RE: Addin: Park Factors
Posted: Mon Jul 24, 2006 5:20 pm
by Abev
ORIGINAL: akcranker
Abev I just tried this one and I got an error. It went to look at the first ball park Chicago(A) and it got an error: Add-in Error: No Current Record
Could this be because I just have the default ballparks?
No not from that. Do you have any games played for that season. It looks at the current season. If you are in the off season or before games are played you wont have a "current record". I hope thats what it is.
EDIT - Ick. Its not what I said. I found it oh boy I made a boo boo. Gotta fix it. Might not work for most people right now.
RE: Addin: Park Factors
Posted: Mon Jul 24, 2006 7:21 pm
by Abev
Addin repaired. No one should get the "no current record" error. Redownload it from the aboe link at the top of th thread. The correct version of ParkFactors.dll has a size of 88k.
BTW the addin calcs dats from the current season ONLY. Numbers are more accuarate as the season goes on. Ive found by June 1st the numbers start to normalize.
RE: Addin: Park Factors
Posted: Mon Jul 24, 2006 7:32 pm
by PadresFan104
Abev - Thanks to your awesome work, I'm going to create a seperate page on my website just for Addins!!! I'll have it posted soon.
RE: Addin: Park Factors
Posted: Mon Jul 24, 2006 7:33 pm
by SittingDuck
I like the Park Factors add-in. Unfortunately it can only assess PSBB parks, which are often inaccurate. Which is why I suggested more vectors. But then again, OOTP parks have the same issue, since they all use 9 vectors. It bugs me from the standpoint of a physically accurate model and related statistics/results. But it is nice to have another add-in.
RE: Addin: Park Factors
Posted: Mon Jul 24, 2006 8:15 pm
by Abev
ORIGINAL: SittingDuck
I like the Park Factors add-in. Unfortunately it can only assess PSBB parks, which are often inaccurate. Which is why I suggested more vectors. But then again, OOTP parks have the same issue, since they all use 9 vectors. It bugs me from the standpoint of a physically accurate model and related statistics/results. But it is nice to have another add-in.
Park factors has nothing to do with vectors. Did I miss something? Maybe this is partially a diff subject?
The addin works without "Real" reference to the actual park. It analizes results by a certain team both home and away from the PlayOutcomes table.
Its assumed that home events for my team (Boise City) took place in my home park, and vice versa for all away games. But it dones know or care what distances my park has. It just analizes results.
RE: Addin: Park Factors
Posted: Mon Jul 24, 2006 8:42 pm
by Deltadog
Which number to you look at to determine if a park favors hitters or pitchers. Example Yankee Stadium in my association show the following:
Runs - 1.422
HR - 2.638
H - 0.995
2b - 0.891
3b - 1.206
This looks if it is a hitters park for Runs, Homers, and triples and a pitchers park for singles, and doubles. Or could it show that the Yankees excell at scoring runs because they hit a lot of homers and triples?
Regardless of what these numbers show, it is a neat add-in.
RE: Addin: Park Factors
Posted: Mon Jul 24, 2006 10:24 pm
by Abev
ORIGINAL: Deltadog
Which number to you look at to determine if a park favors hitters or pitchers. Example Yankee Stadium in my association show the following:
Runs - 1.422
HR - 2.638
H - 0.995
2b - 0.891
3b - 1.206
This looks if it is a hitters park for Runs, Homers, and triples and a pitchers park for singles, and doubles. Or could it show that the Yankees excell at scoring runs because they hit a lot of homers and triples?
Regardless of what these numbers show, it is a neat add-in.
Mostly you should figure that the numbers are in reference to the other numbers of the other teams(ballparks). 2.6 is a huge number for HR's. I think 1.4 leads MLB right now (US Cellular). It shouldnt really figure in a teams performance, except when a very small sample is used. Reason being it takes into account the teams performance on the road.
An additional note - The generic PS schedule can get very lopsided during certain parts of the season. While some teams play almost even home/away, you could find that other teams have played 70/30 home /away or vice versa. At the conclusion everyone plays the same obviously, but at certain points it can get askew.
Its a known formula
Park Factor compares the rate of stats at home vs. the rate of stats on the road. A rate higher than 1.000 favors the hitter. Below 1.000 favors the pitcher.
PF = ((homeRS + homeRA)/(homeG)) / ((roadRS + roadRA)/(roadG))
This formula is for runs. Substitute other stats (hr, 2b, etc) for RS/RA
RE: Addin: Park Factors
Posted: Tue Jul 25, 2006 12:08 am
by henry296
The Expanded Results section in the game shows an overall park factor for each team.
RE: Addin: Park Factors
Posted: Tue Jul 25, 2006 12:08 am
by SittingDuck
ORIGINAL: Abev
Park factors has nothing to do with vectors. Did I miss something? Maybe this is partially a diff subject?
The addin works without "Real" reference to the actual park. It analizes results by a certain team both home and away from the PlayOutcomes table.
Mmm. Good point - yeah, I thought it was related but I like what you have pointed out.
RE: Addin: Park Factors
Posted: Tue Jul 25, 2006 1:24 am
by verizon32
ORIGINAL: henry296
The Expanded Results section in the game shows an overall park factor for each team.
Yep park factors are already in the game to see.
No need for an addin for it.
RE: Addin: Park Factors
Posted: Tue Jul 25, 2006 1:20 pm
by Abev
ORIGINAL: verizon32
ORIGINAL: henry296
The Expanded Results section in the game shows an overall park factor for each team.
Yep park factors are already in the game to see.
I *thought* Ive seen park factors before. But I still cant find it. Where the heck is it?
No need for an addin for it.
Well thanks for the advice. I wouldnt have made it if I knew it existed. Surely I wouldnt have spent x hours creating it [:@]
RE: Addin: Park Factors
Posted: Tue Jul 25, 2006 2:06 pm
by Deltadog
ORIGINAL: Abev
I *thought* Ive seen park factors before. But I still cant find it. Where the heck is it?
[/quote]
It is located on each teams expanded results screen. See attached. Perhaps you can take your add-in as a starting point and cause it to report something else. Regardless, it was a good effort.[:)]

RE: Addin: Park Factors
Posted: Tue Jul 25, 2006 2:43 pm
by Abev
I thought I was one step above computer illiterate; I STILL cant find it. How do I get to it??
The good thing is the addin wasnt totally in vain, as my addin shows all of the teams and uses a different value system.
RE: Addin: Park Factors
Posted: Tue Jul 25, 2006 6:42 pm
by Deltadog
Select the team you are interested in and go to that teams Front office screen. Look and the menu list to the right and select the last item, which reads, Expanded Team Results. The screen I showed opens in response to that selection and the Park Factor is the 8th item down.
RE: Addin: Park Factors
Posted: Tue Jul 25, 2006 11:53 pm
by SittingDuck
You still get points for all that effort.

RE: Addin: Park Factors
Posted: Wed Jul 26, 2006 11:30 pm
by PadresFan104
There's another way to see this too.
1) Click on Statistics + Reports button at the bottom of the various windows.
2) Select "Sabermetrics Report Pack"
3) Select Par Factor (PF)
[;)]
RE: Addin: Park Factors
Posted: Wed Aug 02, 2006 12:10 am
by SittingDuck
Abev, I'd like to get started making Add-Ins at some point. Thus, I believe I have a lot of learning to do. VB and all that. Could you give me a real quick rundown of what I'll need to know and where to start? I can take it from there. I know this is a road of learning to be accomplished before I can do any Add-In programming, but I'd like to get started. Nothing like having a goal to work towards.
RE: Addin: Park Factors
Posted: Wed Aug 02, 2006 2:49 am
by Abev
ORIGINAL: SittingDuck
Abev, I'd like to get started making Add-Ins at some point. Thus, I believe I have a lot of learning to do. VB and all that. Could you give me a real quick rundown of what I'll need to know and where to start? I can take it from there. I know this is a road of learning to be accomplished before I can do any Add-In programming, but I'd like to get started. Nothing like having a goal to work towards.
A "real quick" rundown? [:D]
Pick up a vb6 book. Many are a few years old but not much has changed. vb.net is the new thing, but I have never gone near it, and vb6 is still very usable and functional. Since those book have a few years of age on them, you should be able to find some at a pretty cheap price. The books published by Sams an Wrox always seemed to make the most sense to me.
You will also need to learn a little bit of SQL. The cheat way is to learn your way around MS Access queries, and you can copy the SQL from access and paste it into vb. Thats way down the road for you at this point.
As far as vb goes, you need to learn functions and sub procedure basics, dimensioning variables, simple looping structures (Do...Loop), simple If...then statements, simple for...next statements and arrays (not necessary but would be a +).
Programming is easy IF you can think like a program. Some people just cant. I couldnt for my first several years, and I still have very bad days where I cant figure the simplest thing out.
When I say "think" like a program, the example I use is "tell someone how to walk". The simple answer most people give is "I just do it", but you need to stop and think about what actually happens step by step, no pun intended.
I started playing with this programming stuff in 1997. Actually MS access. I learned with access videos that I thought were very helpful. My first creation was a Ski Lesson scheduling database for the company I worked for. I patched it together with duct tape and string, meaning I have no idea how I got it to work but I just did. I basically copied everything out of the book, customizing it for my needs. I had no idea what I was doing.
I started in on vb in 2003. My first little app was a simple baseball scoring program. I cant tell you how pumped I was when I actually got the balls and strikes to increment! I bet it took me several days to get it right ( a few hours each day). I just couldnt get "balls = balls + 1".
Moral of the story one day it just clicked. For several years I had no reason to believe I could ever program at any level. But theres something still that keeps me coming back for more. [&:]