|
||||
|
|
OOTP 19 - General Discussions Everything about the 2018 version of Out of the Park Baseball - officially licensed by MLB.com and the MLBPA. |
![]() |
|
Thread Tools |
![]() |
#21 | |
Hall Of Famer
Join Date: Apr 2015
Posts: 7,236
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#22 |
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. |
![]() |
![]() |
![]() |
#23 | |
All Star Starter
Join Date: Dec 2005
Location: Los Angeles
Posts: 1,164
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#24 |
Hall Of Famer
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.
|
![]() |
![]() |
![]() |
#25 |
All Star Starter
Join Date: Dec 2005
Location: Los Angeles
Posts: 1,164
|
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 |
![]() |
![]() |
![]() |
#26 |
Hall Of Famer
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.
|
![]() |
![]() |
![]() |
#27 |
All Star Starter
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.
__________________
MySQL, MyStruggle - A self-indulgent blog about my attempts to roll my own MySQL Database with OOTP Logo Gallery |
![]() |
![]() |
![]() |
#28 |
All Star Starter
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:
__________________
MySQL, MyStruggle - A self-indulgent blog about my attempts to roll my own MySQL Database with OOTP Logo Gallery |
![]() |
![]() |
![]() |
#29 |
All Star Starter
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 |
![]() |
![]() |
![]() |
#30 | |
Major Leagues
Join Date: Aug 2011
Posts: 386
|
Quote:
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" Last edited by torpidbeaver; 04-22-2018 at 01:15 PM. |
|
![]() |
![]() |
![]() |
#31 |
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?
|
![]() |
![]() |
![]() |
#32 | |
All Star Starter
Join Date: Dec 2005
Location: Los Angeles
Posts: 1,164
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#33 | |
All Star Starter
Join Date: Dec 2005
Location: Los Angeles
Posts: 1,164
|
Quote:
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 |
|
![]() |
![]() |
![]() |
Bookmarks |
|
|