Home | Webstore
Latest News: OOTP 26 Available - FHM 11 Available - OOTP Go! Available

Out of the Park Baseball 26 Buy Now!

  

Go Back   OOTP Developments Forums > Out of the Park Baseball 26 > OOTP 26 - General Discussions

OOTP 26 - General Discussions Everything about the brand new 26th Anniversary Edition of Out of the Park Baseball - officially licensed by MLB, the MLBPA, KBO and the Baseball Hall of Fame.

Reply
 
Thread Tools
Old 05-09-2025, 11:41 AM   #61
Guthrien
Minors (Double A)
 
Join Date: Mar 2011
Posts: 193
Quote:
Originally Posted by jaa36 View Post
well, it's a fairly well-documented real-life effect

That's amazing, thank you for sharing that. I was so convinced of my bias on that I simply took it as a given you were discussing a game factor. I have to admit, I never ran into that one but it's interesting. The injury path is clear but this is more symptomatic. Ah, baseball.
Guthrien is offline   Reply With Quote
Old 05-15-2025, 01:58 AM   #62
trence
Minors (Rookie Ball)
 
Join Date: May 2016
Posts: 22
Has anyone had an issue after many seasons of the tool working? I tried both V1 and V2 and they fail. I'm getting this error on V1. First season I've had issues with it suddenly crashing out. Wondering if somehow it's exporting bad CSVs all of a sudden
--------------------------------------------------------------------------------------------------

ValueError Traceback (most recent call last)
<ipython-input-220-1929e306d16c> in <cell line: 0>()
27
28 # Apply function to dataframe
---> 29 merged_df[['has_pos', 'field']] = merged_df.apply(determine_positions, axis=1)
30

2 frames
/usr/local/lib/python3.11/dist-packages/pandas/core/indexers/utils.py in check_key_length(columns, key, value)
388 if columns.is_unique:
389 if len(value.columns) != len(key):
--> 390 raise ValueError("Columns must be same length as key")
391 else:
392 # Missing keys in columns are represented as -1

ValueError: Columns must be same length as key


This is from the section

# calculated modified best position based on fielding ratings - i.e. whether a hitter 'has a position' or is just a 1b/dh

Last edited by trence; 05-15-2025 at 02:00 AM.
trence is offline   Reply With Quote
Old 05-16-2025, 05:32 AM   #63
squirrel
Minors (Rookie Ball)
 
Join Date: Oct 2018
Posts: 31
Quote:
Originally Posted by trence View Post
Has anyone had an issue after many seasons of the tool working? I tried both V1 and V2 and they fail. I'm getting this error on V1. First season I've had issues with it suddenly crashing out. Wondering if somehow it's exporting bad CSVs all of a sudden
--------------------------------------------------------------------------------------------------

ValueError Traceback (most recent call last)
<ipython-input-220-1929e306d16c> in <cell line: 0>()
27
28 # Apply function to dataframe
---> 29 merged_df[['has_pos', 'field']] = merged_df.apply(determine_positions, axis=1)
30

2 frames
/usr/local/lib/python3.11/dist-packages/pandas/core/indexers/utils.py in check_key_length(columns, key, value)
388 if columns.is_unique:
389 if len(value.columns) != len(key):
--> 390 raise ValueError("Columns must be same length as key")
391 else:
392 # Missing keys in columns are represented as -1

ValueError: Columns must be same length as key


This is from the section

# calculated modified best position based on fielding ratings - i.e. whether a hitter 'has a position' or is just a 1b/dh
Hmm...tough one to help with there just going by that error message. Most simple place to start is to check that you've updated the ID of your scouting director to be the latest one.

This is on v1, right i.e. not the latest stuff I put out?
squirrel is offline   Reply With Quote
Old 05-25-2025, 10:32 AM   #64
trence
Minors (Rookie Ball)
 
Join Date: May 2016
Posts: 22
Quote:
Originally Posted by squirrel View Post
Hmm...tough one to help with there just going by that error message. Most simple place to start is to check that you've updated the ID of your scouting director to be the latest one.

This is on v1, right i.e. not the latest stuff I put out?
Oddly enough, I was using both v1 and v2 just to mess around. Then during a working save, they both started failing. One is run locally, one is on Google Colab.

Manager ID and all that was setup and working fine for years on the franchise, then just stopped one year on V1 and V2.
trence is offline   Reply With Quote
Old 06-04-2025, 05:49 PM   #65
Guthrien
Minors (Double A)
 
Join Date: Mar 2011
Posts: 193
Everyone still playing around with this? Any discoveries on your part @squirrel?

I still very much enjoy it, especially around the trade deadline. It's absolutely a contrast machine and not a stat projection, I'm not certain what it would take to drag that part closer. I used to think OOTP calculator (with the simpler stat basis) wasn't horrible at times, but it served the same purpose - comparison.

There are values in pitching that it seems too biased towards. My example will make more sense to any Tiger fans among you, but pitchers like Jack Flaherty, high stuff, low HRA, are punished to the point you'll always be told he's a horrible cancer to your staff instead of the 2nd or 3rd best starter he will always be. Meanwhile, mediocre talents with a groundball tendency will often be projected as your no argument #2 starter (we have Skubal, nothing gets him wrong). Batting projections are far less chaotic.
Guthrien is offline   Reply With Quote
Old 06-14-2025, 02:45 PM   #66
squirrel
Minors (Rookie Ball)
 
Join Date: Oct 2018
Posts: 31
No new discoveries here...just seems to work pretty well now as I wanted it to. I don't think I'm going to need to tweak it any more
squirrel is offline   Reply With Quote
Old 06-25-2025, 11:25 AM   #67
sabres12
Bat Boy
 
Join Date: Mar 2024
Posts: 6
I am not well versed in Github so figured here would be the next best place for this. I made some changes to my local copy of this and wanted to share. I have been using this exclusively with something in the flagged file and was getting tired of copy and pasting from the JustNames csv export to flagged.txt.

This modified is_flagged function looks in the import_export folder (the created namepath variable points to that location) of the league save file and will pull the player IDs from the last modified or created csv file instead of looking at the flagged.txt.

Only other change I had to make was 'import os' for finding all of the csv's in the import_export folder.

Code:
def is_flagged(df: pd.DataFrame) -> pd.DataFrame:
    # Read player_ids from text file and convert to integers
    
    filenames = [file for file in os.listdir(namepath) if os.path.isfile(namepath / file)]
    for x in range(len(filenames)):
        filenames[x] = os.path.abspath(namepath / filenames[x])

    latest_file = max(filenames, key=os.path.getmtime)
    print(f"✅ Flagging File: ", latest_file)
    
    with open(latest_file, 'r') as f:
        flagged_ids = [int(line.strip()) for line in f if line.strip().isdigit()]
        f.close()

    # Add 'flag' column based on player_id match
    df["flag"] = np.where(df["player_id"].isin(flagged_ids), "flag", "")
    return df
sabres12 is offline   Reply With Quote
Old 10-14-2025, 11:39 PM   #68
darkcloud4579
Hall Of Famer
 
Join Date: Jun 2003
Posts: 8,668
Only finding this now, but appreciate all the work and effort you've put into it. Will take a look.
darkcloud4579 is offline   Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:21 PM.

 

Major League and Minor League Baseball trademarks and copyrights are used with permission of Major League Baseball. Visit MLB.com and MiLB.com.

Officially Licensed Product – MLB Players, Inc.

Out of the Park Baseball is a registered trademark of Out of the Park Developments GmbH & Co. KG

Google Play is a trademark of Google Inc.

Apple, iPhone, iPod touch and iPad are trademarks of Apple Inc., registered in the U.S. and other countries.

COPYRIGHT © 2023 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright © 2024 Out of the Park Developments