|
||||
| ||||
|
|||||||
| OOTP 27 - General Discussions Everything about the brand new 27th Anniversary Edition of Out of the Park Baseball - officially licensed by MLB, the MLBPA, KBO and the Baseball Hall of Fame. |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Minors (Double A)
Join Date: May 2019
Location: San Francisco
Posts: 158
|
Autocalc not respecting IBB target
I'm working on creating a fictional league with desired league total outputs. I've done this by editing the "era_stats.txt" file with my desired outputs for every year, then running autocalc every season. I set the IBB total to 645 (in 133k ABs), but I noticed that IBB modifier is always set too low and never reaches the target (roughly 150 IBB walks over the course of the year). I also noticed that the BB league total shown on the League Settings page means unintentional walks only because it takes the BB number in "era_stats.txt" and subtracts the IBB number to set that league total. I have attached a spreadsheet of my calculations, does anyone know what I'm doing wrong here?Era Stats Calculator.xlsx
__________________
Just a Pirates fan looking for his McCutchen |
|
|
|
|
|
#2 |
|
All Star Starter
Join Date: Jan 2008
Posts: 1,856
|
I'm going to pull this one out of left field, because I've got nothing else.
Any chance this is somehow related to the managers and the team strategies just not favoring intentional walks? Somewhat similar to whatever was going on with steals in historicals when coaching was enabled? |
|
|
|
|
|
#3 | |
|
Minors (Double A)
Join Date: May 2019
Location: San Francisco
Posts: 158
|
Quote:
__________________
Just a Pirates fan looking for his McCutchen |
|
|
|
|
|
|
#4 | ||
|
All Star Starter
Join Date: Jan 2008
Posts: 1,856
|
Quote:
Quote:
|
||
|
|
|
|
|
#5 |
|
Minors (Double A)
Join Date: May 2019
Location: San Francisco
Posts: 158
|
Not totally sure what you are referring to if you have a link to that thread. I'm not into historical sims, so I never dove into that.
__________________
Just a Pirates fan looking for his McCutchen |
|
|
|
|
|
#6 |
|
Global Moderator
Join Date: Nov 2002
Posts: 12,057
|
I'm not sure, but there's a few things to note:
-OOTP only separated out iBB fairly recently, like OOTP26. I actually didn't even notice this until a few weeks ago. And when I copied over my era_stats.txt file from OOTP25 to OOTP26 I never added an iBB column like OOTP26 has, but the ratios I got for it (OOTP26) were still really good, even before tweaking the modifiers. So, if all else fails, maybe get rid of your iBB column and see if that helps. Crazy, I know, but maybe it'll help. -iBB/G has varied quite a bit over the years, from .4 to under .1 in recent years. You seem to be targetting .166 which is reasonable. And you're right, 150 walks over 3888 games, which is .0385 iBB/G, is not reasonable. -Your PA/AB ratio (1.111) is *maybe* a little low from it should be. It's not crazy low (it has been that low before, but historically it's about 1.123), but considering how small iBB is, I right away thought it could be a problem with PAs and ABs. -Were you starting from a baseline year and tweaking it from there like I do or are you making it all up from scratch? I ask because it might help to know what are targets are and understand how plausible it likely is. -Your AB formula is missing an "other" stat. I mean, yeah, you're subtracting AB+BB+HB+SF+SG from PA, but you're not subtracting interference and obstruction. Are those so small that they shouldn't make a difference? Maybe, but a number of small things could make a difference. I use .005 for my O/G. -I find it odd that you're setting your ratios to /IP instead of to /G. I mean, yeah, I guess you could do that, but it seems to me that it's unnecessarily complicating matters. And yes, I understand that games aren't perfect 9 innings per, they're less than 9, and it looks like you are factoring that in, but I just don't think it's necessary to put them over IP rather than G. Which leads to... -I'm really confused by how you're calculating PA. It seems to be (IP_Outs+(H+BB+HB+CI-RunnerOuts)*9IPGames+ROE)/9IPGames? I've never seen anything like that before. Your way might work perfectly fine, but I just think mine is so much simpler and I find, in general, the simpler you do things the less chances for mistakes. Maybe my way is too simple, but I first calculate AB = H + RBOE + RBOFC + non-sac Out (including SO) and then PA = AB + BB + HB + SF + SH + Other, whereas you obviously calculate PA first and then calculate AB from PA. I'm trying to make sense of your formula in my head and it's a struggle. It might be perfectly valid, but I can't help but wonder if something isn't quite right about it. I don't know. What you might be doing might be perfectly fine and it's just something with the game, but you're calculating so many things and in such a complicated way that I don't really want to try harder to make sense of it all. Maybe take a step back and try to simplify it? When I think about league totals and modifiers in general, what I think is important is, "is everything plausible?" Meaning, PA can't be 2xAB, iBB can't be 1/G, etc. And no, I'm not saying you have done that (I didn't look at it all enough to judge whether you have or not), but I'm just saying, if I put my ideal totals line in the middle somewhere of rows of historical totals (or my ideal ratios among historical ratios), would my row appear plausible or is there just something about it that is just not plausible? And so I'm still wondering, is there something about your PA and AB #s that are squeezing out iBB? Maybe there's just simply not enough room for it given your other numbers.
__________________
My OOTP Wishlist | My FAQ List OOTP Wiki | Your Recommended Team Nicknames, By City (A Crowdsourced Project) For Beta/Devs: Full screen (1920x1080) |
|
|
|
|
|
#7 | |||||
|
Minors (Double A)
Join Date: May 2019
Location: San Francisco
Posts: 158
|
Quote:
Quote:
Quote:
Quote:
Quote:
I believe my numbers should be plausible, but it’s a good note about the PA/AB being small. I didn’t think to check that ratio and it’s certainly the most “hand-wavy” of all my calculations. I went to painstakingly lengths to make mostly accurate formulas for everything, but it’s clear there might still be work to do on this. I’ll give it another try on PAs and ABs and see if that helps reduce the issue.
__________________
Just a Pirates fan looking for his McCutchen |
|||||
|
|
|
|
|
#8 | |
|
Global Moderator
Join Date: Nov 2002
Posts: 12,057
|
Quote:
This might be the key. I started with historical numbers and tried to come up with numbers that look very much like they could be historical numbers themselves and then I just put as many of them as possible into OOTP. EDIT: I don't actually pay that much attention to historical totals themselves. I look at various historical ratios, tweak them, and then convert those tweaked ratios back into my own ideal totals. So, for example, it's not a problem for me that OOTP might not have certain stats like RBOE or RBOI. Yeah, I'd very much like it if OOTP had those stats and if certain players were better at them than others (Ichiro and Ellsbury), but for league total purposes I just come up with plausible numbers (and for anyone who doesn't know, you can download the lahman database of historical baseball stats from SABR (particularly teams.csv) EDIT: or FanGraphs which has some data lahman doesn't (Batting, Pitching, Fielding)) and then I just input into OOTP what I can. So even though I'm not inputting stats like RBOE, RBOI, and whatever else, I'm still factoring them into my totals and ratios, they're just not inputted into OOTP is all. And so if someone doesn't factor in these other stats into their PAs, the game might not have the "fudge factor" it needs to make everything fit. If OOTP had all the stats as inputtable, it probably wouldn't be a problem, we could just input them all. But since we can't, if we don't leave the engine enough room to do everything it needs to do (IINM, the outcomes are there, the stats just aren't), then it likely needs to take away from something (in this case, iBB) to give something to these other things. And considering iBB was the most recent addition to the era_stats file, I'm not surprised if it's just taking from it instead of something else. Or maybe I'm totally wrong. It's just a theory.
__________________
My OOTP Wishlist | My FAQ List OOTP Wiki | Your Recommended Team Nicknames, By City (A Crowdsourced Project) For Beta/Devs: Full screen (1920x1080) Last edited by kq76; 05-28-2026 at 05:57 AM. |
|
|
|
|
|
|
#9 | |
|
Minors (Double A)
Join Date: May 2019
Location: San Francisco
Posts: 158
|
Quote:
Yeah what you are saying totally makes sense- if there are not enough PAs, it probably defaults to reducing IBBs. But I'm unclear where you found the real stats for RBOE, RBOI, RBOFC, etc. Lahman DB doesn't appear to track this data from what I could tell and I couldn't find it on FanGraphs. Best I could find was searching on Baseball Savant and manually counting it up. I see what I could have missed in my PA formula- reaching on fielders' choice. This could lead to me undercounting PAs. I will try to find a way to estimate this total.
__________________
Just a Pirates fan looking for his McCutchen |
|
|
|
|
|
|
#10 |
|
Global Moderator
Join Date: Nov 2002
Posts: 12,057
|
Sorry, I realize I'm not being clear. You don't at all need all these other stats, you just need a PA large enough to accommodate them. So, say you have the equation A=B+C+D and you know what A, B, and C equal, it's okay that you don't know what D is because you can still figure it out by swapping A and D's sides. And in this scenario, A is historical PA, B+C are historical stats like H+BB, which you also know, and D is this group of stats you don't know. But again, you don't need to know the exact values of all that goes into D, you just need the rest of the equation to figure out the total of D.
By the way, in era_stats.txt, PA isn't even there, but BF is. And, unless there's the odd scorekeeping quirk, PA=BF. I don't have the time right now, but if you don't figure this out soon I'll try to dig into it more because I'm a bit concerned it's not this at all and I'll encounter the same problem when I switch over to 27. Did you happen to try removing the iBB column? I wonder if it's simply a problem with it and I lucked into the fix by not adding it to my file.
__________________
My OOTP Wishlist | My FAQ List OOTP Wiki | Your Recommended Team Nicknames, By City (A Crowdsourced Project) For Beta/Devs: Full screen (1920x1080) |
|
|
|
|
|
#11 | |||
|
Minors (Double A)
Join Date: May 2019
Location: San Francisco
Posts: 158
|
Quote:
Quote:
Quote:
__________________
Just a Pirates fan looking for his McCutchen |
|||
|
|
|
|
|
#12 |
|
OOTP Developer
Join Date: Jun 2009
Location: Here and there
Posts: 16,266
|
FYI, we more or less ignore the PA columns, I wouldn't worry about that. Especially around the edges, stuff like catcher's interference is a very small rounding error in the grand scheme.
Otherwise, some modifiers are easier to match to the totals, some are harder. IBB is a bit tougher than some, just because there's a number of cases where regardless of where you want your totals to be, you should be intentionally walking the player (eg if Judge is up with 2 outs, man on 3rd, the pitcher is on deck, in a close game). So a pure modifier has trouble sometimes around those cases. IBB is also trickier, since we don't really have any specific era modifiers for them, but over the course of history, they have varied wildly. We're currently in one of the lowest points in history for them, on a per-AB basis. Although I do think it should still be mildly close - if your target was 645 IBB in 133k AB, how many did you actually get in your season when it was played out? We can potentially do some tweaks to some of the logic and values, maybe help it along. |
|
|
|
|
|
#13 | |
|
Minors (Double A)
Join Date: May 2019
Location: San Francisco
Posts: 158
|
Quote:
Thank you so much for the response! I believe it is an issue with auto-calc just giving me the wrong multiplier. When I run auto-calc, it gives me a modifier in the range of ~.5-.7. This has led to IBBs in the range of 150-250, which is quite far from the desired total. I have found that a modifier of ~1.2 reliably gives me what I’m looking for, and the only way I’ve found that auto-calc will give me that modifier is if I boost my IBBs column way up (around 2.1x what I actually want, so 1355 will give me an actual total around 645.). This happens independent of the sim, so it appears the game engine does have enough control of IBBs to get the total where I want it to be (I.e. it’s not just a problem of game situations not aligning properly to warrant that many IBBs); it’s just a problem with auto-calc giving me the wrong multiplier. Let me know if I should provide league files to show an example of the problem! Finally, I have one other quick question. It looks like the BB column in era_stats.txt is the total number of uBB + iBB. But when I’m loading in the era_stats.txt, the walk league total on the settings page shows only uBB (I.e. BB column - iBB). Does this mean when we control the BB league total on the league settings page, we are only messing with the uBB league total? When I check the league stats on the team batting statistics page, does the BB total shown include the IBB column or are those separated there as well? I find it a bit confusing to know when a BB total is referring to uBB vs. total walks (uBB+iBB).
__________________
Just a Pirates fan looking for his McCutchen |
|
|
|
|
|
|
#14 |
|
Minors (Double A)
Join Date: May 2019
Location: San Francisco
Posts: 158
|
Tested this in the newest public beta patch and this has been resolved! Really appreciate the quick turnaround time to fix this!
__________________
Just a Pirates fan looking for his McCutchen |
|
|
|
![]() |
| Bookmarks |
|
|