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 > Prior Versions of Our Games > Out of the Park Baseball 19 > OOTP 19 - General Discussions

OOTP 19 - General Discussions Everything about the 2018 version of Out of the Park Baseball - officially licensed by MLB.com and the MLBPA.

Reply
 
Thread Tools
Old 04-18-2018, 11:25 AM   #21
NoOne
Hall Of Famer
 
NoOne's Avatar
 
Join Date: Apr 2015
Posts: 7,236
Quote:
Originally Posted by cavebutter View Post
Yeah, all of the depth chart stuff is in excel using csv output generated by the dB.

The find-a-batter and pitcher are stored procedures accessed directly from the dB.

If you know anything about MySQL server on Mac, I’d love to trouble-shoot it with someone. By default, Mac doesn’t create a my.cnf for MySQL and I need to create one to be able to write to a file from the server. To complicate matters, the server is running, but can’t be restarted or stopped. Something about a missing pid file. Seriously, if you know anything about this, I’d like to pick your brain.


Sent from my iPhone using Tapatalk
i can count how many times i've used a mac on one hand.. maybe 2.

https://stackoverflow.com/questions/...-file-on-macos

read all the comments, it covers more than just the highlighted answer at the top.. couple places to look. command to make sure it's even being used etc. potentially still "not there"

edit: show hidden comments, looks liek there's an answer for that too..

create ../,,/../my.cnf -- looks liek os version will matter where ??

mysql --verbose --help | grep my.cnf -- will tell you if it is even being used after creation

when you google search be as simple and direct as possible.. more is not better : "mysql mac ini file" all i used. "cnf" could have been good too. i shoudl not have included "file"

maybe more relevant to a newer system?

https://dev.mysql.com/doc/refman/5.7...ion-notes.html

if that's not your mysql version, type that into google search too and find the official document instead of stack overflow forum users etc... way more reliable

Last edited by NoOne; 04-18-2018 at 11:38 AM.
NoOne is offline   Reply With Quote
Old 04-19-2018, 02:43 AM   #22
torpidbeaver
Major Leagues
 
Join Date: Aug 2011
Posts: 386
This is amazing. I’ve been beating the data visualization drum for a couple years now, but what you made here is amazing!

I’ve been trying to figure out a way to track players’ scouted ratings on excel and google Sheets but hit a wall with the problem of having hundreds or even thousands of players, each with multiple attributes, and each player/attribute further complicated by multiple years. It’s like I need a z-axis too, or something.

I came to a point where I could either make a new sheet for each player and have the X/Y be attributes/years (horribly inefficient, required more work cutting and pasting than I was willing to do), or I could go down the Pivot Table rabbit hole (tried but couldn’t get it to work).

I think the answer is somewhere in the pivot table realm. If anyone has some suggestions or advice (or even better, a working file with equations and visualization built in), I’d just be so delighted for the help.
torpidbeaver is offline   Reply With Quote
Old 04-19-2018, 10:19 AM   #23
cavebutter
All Star Starter
 
cavebutter's Avatar
 
Join Date: Dec 2005
Location: Los Angeles
Posts: 1,164
Quote:
Originally Posted by torpidbeaver View Post
I’ve been trying to figure out a way to track players’ scouted ratings on excel and google Sheets but hit a wall with the problem of having hundreds or even thousands of players, each with multiple attributes, and each player/attribute further complicated by multiple years. It’s like I need a z-axis too, or something.

I came to a point where I could either make a new sheet for each player and have the X/Y be attributes/years (horribly inefficient, required more work cutting and pasting than I was willing to do), or I could go down the Pivot Table rabbit hole (tried but couldn’t get it to work).
This one's tricky because I have not been able to find ratings history in any of the dump files. The only way I can think to do this from the dump files would be to create a new ratings history table and set a trigger to update it with new rows for each player every time you import them. The problem is that there's no date or year associated with the ratings. I suppose you could hard code a date along with it.

What kind of vis would you want to see with this? There's already something similar in 19. Either way, I will add this to my backlog as I haven't played around with triggers yet and sounds like fun.
__________________
MySQL, MyStruggle - A self-indulgent blog about my attempts to roll my own MySQL Database with OOTP

Logo Gallery
cavebutter is offline   Reply With Quote
Old 04-19-2018, 10:43 AM   #24
stealofhome
Hall Of Famer
 
stealofhome's Avatar
 
Join Date: Apr 2014
Posts: 2,282
The only way I've thought of getting year is if you do yearly dump, the year is placed on the name of the folder. Then you can relate the year of the folder with the data and use that to track.
stealofhome is offline   Reply With Quote
Old 04-19-2018, 11:01 AM   #25
cavebutter
All Star Starter
 
cavebutter's Avatar
 
Join Date: Dec 2005
Location: Los Angeles
Posts: 1,164
Quote:
Originally Posted by stealofhome View Post
The only way I've thought of getting year is if you do yearly dump, the year is placed on the name of the folder. Then you can relate the year of the folder with the data and use that to track.
Yeah, tedious to do in Excel though.
__________________
MySQL, MyStruggle - A self-indulgent blog about my attempts to roll my own MySQL Database with OOTP

Logo Gallery
cavebutter is offline   Reply With Quote
Old 04-19-2018, 11:45 AM   #26
stealofhome
Hall Of Famer
 
stealofhome's Avatar
 
Join Date: Apr 2014
Posts: 2,282
There must be a script you can run through some language that would add the folder name to the file name. Then in excel you can lookup a certain location based on a file name that changes by year. I've done it before with OOTP data and used some mass file renaming software to do it. But there has to be a way to automate it.
stealofhome is offline   Reply With Quote
Old 04-19-2018, 12:28 PM   #27
cavebutter
All Star Starter
 
cavebutter's Avatar
 
Join Date: Dec 2005
Location: Los Angeles
Posts: 1,164
Career Splits

In all my years of playing the game, I never got myself too worked up over splits. I'd glance at them occasionally and make adjustments, but I never dug in too deeply. My feeling is that with a few obvious exceptions, the better player should play regardless of handedness.

Also, while the game makes it easy to view stats vs left or right, there's no easy way to compare them. So here's the career slash line splits for all the batters on Baltimore's ML roster. The charts will pick up the first 5 players on the list. Since Excel can sort based on cell color, you can highlight the players you want compared and sort by that.
Attached Images
Image 
__________________
MySQL, MyStruggle - A self-indulgent blog about my attempts to roll my own MySQL Database with OOTP

Logo Gallery
cavebutter is offline   Reply With Quote
Old 04-19-2018, 02:39 PM   #28
cavebutter
All Star Starter
 
cavebutter's Avatar
 
Join Date: Dec 2005
Location: Los Angeles
Posts: 1,164
Baltimore's pitching staff is pretty short because the query is only pulling players who had ML stats for the previous year. I didn't expect this to limit the records so much, but I guess this staff is in transition.

These are career ML pitching splits for players on Baltimore's ML roster:
Attached Images
Image 
__________________
MySQL, MyStruggle - A self-indulgent blog about my attempts to roll my own MySQL Database with OOTP

Logo Gallery
cavebutter is offline   Reply With Quote
Old 04-20-2018, 02:02 PM   #29
cavebutter
All Star Starter
 
cavebutter's Avatar
 
Join Date: Dec 2005
Location: Los Angeles
Posts: 1,164
One last item before I put this thread to bed for now:

Global single season and career records. Such a simple idea that doesn't exist in game. What if I just wanted to see the most major league home runs in the world? Not just the US majors but the whole world? Instead of digging through each league's record page, I have a list of all major leagues combined.

No screenshot, but you get the idea.
__________________
MySQL, MyStruggle - A self-indulgent blog about my attempts to roll my own MySQL Database with OOTP

Logo Gallery
cavebutter is offline   Reply With Quote
Old 04-22-2018, 01:12 PM   #30
torpidbeaver
Major Leagues
 
Join Date: Aug 2011
Posts: 386
Quote:
Originally Posted by cavebutter View Post
This one's tricky because I have not been able to find ratings history in any of the dump files. The only way I can think to do this from the dump files would be to create a new ratings history table and set a trigger to update it with new rows for each player every time you import them. The problem is that there's no date or year associated with the ratings. I suppose you could hard code a date along with it.

What kind of vis would you want to see with this? There's already something similar in 19. Either way, I will add this to my backlog as I haven't played around with triggers yet and sounds like fun.
So what I've been doing is going to the player list screen at the same time every year, telling the game to dump a set of ratings I've chosen, copy/pasting the long list it dumps into my browser, opening Excel to paste that info in, and adding a column for "Year" into which I type the year of the report.

The one I'd like to see would be like the one in FM. I'll find it again.

Well, I can't seem the find the one I grabbed, but here's another:



So you could click on a player, then click on a list of the attributes, and then a graph shows you how that player has improved (or really: how your scout thinks he has improved or declined) over the years/months.

My pivot tables are a disaster, though. There are these damned numbers on my columns that I can't figure out why they're there. (See attached picture). I was having the same problem with Excel. I just want the damn thing to list the number in the damn column, and NOT try to add it or average it or anything else. Grah. I get so frustrated with these programs, borne out of my ignorance and raised on a diet of constant failure and headache.

It looks much closer to what I want to see if, rather than "Columns," I list the attributes as "Values," but then the stupid thing will insist on making it the "SUM" of the listed values, or some other such function, and I can't figure out what the command is to "DO NOTHING" or "JUST LIST THE NUMBERS, CHUMP"
Attached Images
Image 

Last edited by torpidbeaver; 04-22-2018 at 01:15 PM.
torpidbeaver is offline   Reply With Quote
Old 04-24-2018, 04:44 PM   #31
MrDov
Minors (Triple A)
 
Join Date: Aug 2012
Posts: 281
I glanced through your blog and couldn't find an answer so sorry if I missed it there but how often do you update your database with new stats? And when you update are you editing existing tables or creating new tables every time?
MrDov is offline   Reply With Quote
Old 04-24-2018, 05:03 PM   #32
cavebutter
All Star Starter
 
cavebutter's Avatar
 
Join Date: Dec 2005
Location: Los Angeles
Posts: 1,164
Quote:
Originally Posted by MrDov View Post
I glanced through your blog and couldn't find an answer so sorry if I missed it there but how often do you update your database with new stats? And when you update are you editing existing tables or creating new tables every time?
The blog really just documented my learning process to code the stats. I got too lazy to write up how I am putting it all into action.

Right now, I am updating the db every month. I manually dump from the game and Hazel moves the csvs to a separate directory. I have a script that I run that truncates the tables (keeps the tables but deletes the records) and reloads all of the data and re-creates all of the supporting tables.

I'm working on a script that will just update existing tables (a trigger that will validate that the data is new and append rather than nuking it and starting over). But that gets tricky with current season stats where records are changed rather than added.

I've also moved on to teaching myself Python so that I can generate new csv's from the db that I can point Excel to. Excel for Mac doesn't have a handy plugin to connect to the db. That means that my Mac Excel workbooks need to have depth-charts exported to csv. That's the biggest pain point right now. Once I solve that, I will update the db weekly.
__________________
MySQL, MyStruggle - A self-indulgent blog about my attempts to roll my own MySQL Database with OOTP

Logo Gallery
cavebutter is offline   Reply With Quote
Old 05-02-2018, 03:05 PM   #33
cavebutter
All Star Starter
 
cavebutter's Avatar
 
Join Date: Dec 2005
Location: Los Angeles
Posts: 1,164
Quote:
Originally Posted by MrDov View Post
I glanced through your blog and couldn't find an answer so sorry if I missed it there but how often do you update your database with new stats? And when you update are you editing existing tables or creating new tables every time?
Short update on this:

After some tinkering around trying to solve a different problem, I found a way to update the player career batting and pitching stats tables (by far the largest tables) without emptying them out and starting from scratch with every update. It still deletes and re-creates current year entries, but that's a huge improvement.

I also set up Hazel (on my Mac) to automatically update the database every time I dump data from OOTP.

One of these days, I might actually play the game a little bit!
__________________
MySQL, MyStruggle - A self-indulgent blog about my attempts to roll my own MySQL Database with OOTP

Logo Gallery
cavebutter 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 08:00 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