|
||||
|
|
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. |
![]() |
|
Thread Tools |
![]() |
#61 |
Minors (Double A)
Join Date: Mar 2011
Posts: 193
|
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. |
![]() |
![]() |
![]() |
#62 |
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. |
![]() |
![]() |
![]() |
#63 | |
Minors (Rookie Ball)
Join Date: Oct 2018
Posts: 31
|
Quote:
This is on v1, right i.e. not the latest stuff I put out? |
|
![]() |
![]() |
![]() |
#64 | |
Minors (Rookie Ball)
Join Date: May 2016
Posts: 22
|
Quote:
Manager ID and all that was setup and working fine for years on the franchise, then just stopped one year on V1 and V2. |
|
![]() |
![]() |
![]() |
#65 |
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. |
![]() |
![]() |
![]() |
#66 |
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
|
![]() |
![]() |
![]() |
#67 |
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 |
![]() |
![]() |
![]() |
#68 |
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.
__________________
------ My Mods Managerial Strategy Pack Competitive Balance Tax Calculator Major League Women's Baseball (OOTP24) quickstart Indian Premier League | 300+ years of baseball quickstart | Expatriate League quickstart | Off-Field Injuries Update | Women's Name File for OOTP | ---- Dynasty classics: Centurion comes to OOTP5 | DC Moneyball Dynasty (2004) |
![]() |
![]() |
![]() |
Bookmarks |
|
|