[Tool] NBA Stats Tracker

Release or preview patches for NBA 2K12.

[Tool] NBA Stats Tracker

Postby Leftos on Sun Jan 08, 2012 8:33 am

NBA Stats Tracker
An in-depth basketball statistical analysis tool for any basketball league, whether real or in NBA 2K12

Special Thanks
Donors: jrlocke, Tinifu Tuitama, nbagnome, intruda
Suggestions/Bug Reports: Onisak, zizoux, AreaOfEffect, koberulz, nbagnome, Lagoa, WBT99, albidnis, Pitar

Support via Flattr
Support via Paypal

=================================================



Prologue
What started as a workaround to the Team Stats bug in NBA 2K12, grew up to become a full stats tracker & analyzer for any basketball league. 'NBA 2K12 Correct Team Stats' is now 'NBA Stats Tracker', it's my thesis for my Computer Engineering degree, it's my work and passion.

Its goal is to offer a cheap and easy solution to real life coaches and fans who want to keep track of their favorite teams and leagues and do all kinds of analysis on the data. When done, it should also offer scouting reports in natural language for nearly every window and table of data. It will also
feature a mobile app with syncing to the cloud, to allow you to carry the stats and scouting reports everywhere with you.

Quick notes
NBA Stats Tracker is a basketball analysis tool. It allows you to add teams and players to a database and gather stats either by entering the box scores of each game, or by manually editing the stats yourself.

What the tool offers is deep analysis and comparison for every team and player, as well as league-wide overviews. It also features scouting reports in natural language which can help you prepare against an opponent you're unfamiliar with, get to know their strengths and weaknesses, as well as what trends come up out of their recent performances.

All analysis features can be applied to a season's stats, or any specific timeframe starting from days up to years.

Whenever you find yourself in a window that has a table with teams, players or box-scores in it, double-click on any of them to get to the overview screen of it.

Each database can keep data from multiple seasons. You can compare yearly averages, as well as compare results against a particular opponent over the years, for example.

NBA 2K12 Features

This tool was originally made to offer a temporary workaround to the Association/ Season/My Player/Create A Legend team stats bug. Any game you entered and played would have the team stats of the teams that played in it all wrong afterwards. For example 85BPG, 92APG, 70RPG, etc. This really ruined the immersion the Association offers for those that like to play or even watch the games, instead of just simulating them from the Calendar. The Team Stats screen was wrong, the in-game overlays about the team were wrong. A mess. Even after the first console patches, 2K still hasn't fixed this issue.

Don't worry though.

If you have the patience to follow the following tutorial for each game you play, you should have your Team Stats fixed, and all the stats you need in NBA Stats Tracker for you to analyze.

Just follow these steps:
REditor
Video Tutorial
phpBB [video]


EDIT: Forgot to mention that simulated games will work just as well, if you follow the same procedure to the letter, but instead of playing the game you simulate it. It's really important to keep in mind that you need to save right before the game (Play Game's autosave is your best option, and then you can back out), and right after the game (do nothing else after simulating your team's game; no other teams should have played a game between the two imports into NST or the auto-detection fails).

Instructions
1. From in-game, select Play Game (even if you're going to simulate it), and let it save your career on the jersey selection screen.
2. Alt-Tab out of the game and start REditor.
3. Open your save in REditor, export everything to CSV (File > Export to CSV).
4. Start NBA Stats Tracker.
5. Open your database, or create a new one if you haven't previously done so.
6. Click on Import from 2K12 Save, select the folder you saved the CSVs into in Step 3.
7. Save the database.
8. Alt-Tab into the game and play it or watch it, then after it's done let it save your career again. If you're simulating games, simulate just this game and then save immediately. Do not let any other games simulate since your last save.
9. Alt-Tab out of the game and start REditor.
10. Open your save in REditor, export everything to CSV (File > Export to CSV).
11. Go back to the tool, open the database you saved before the game.
12. Click on Import from 2K12 Save, select the folder you saved the CSVs into in Step 10.
13. The tool should detect the game you played and ask you which team is the home team.
14. The tool will now show you the full box score of the game so that you can verify everything's okay. Click on OK.
15. Save the database.
16. Click on Export to 2K12 Save, select the folder you saved the CSVs into in Step 3.
17. Go to REditor, open your career again, import everything from CSV (File > Import from CSV).
18. Save your career in REditor.
19. You're done! Once you go back to NBA 2K12, make sure to quit your career and reload it, or your changes could be lost.

Old Season 1 Workaround
1. From in-game, select Play Game, and let it save your career.
2. Alt-Tab out of the game and into the tool.
3. Open your database, or create a new one if you haven't previously done so.
4. Import the NBA 2K12 stats from your save right before the game.
5. Save the database.
6. Alt-Tab into the game and play it or watch it, then after it's done let it save your career again.
7. Go back to the tool, open the database you saved before the game.
8. Click on Update with Box Score, enter the Box Score and click OK.
9. Click on Export to 2K12 Save, choose the Career file in the dialog.
10. You're done!


For a full list of features, see the Readme file included with the installer.


Known Issues
  • Player Playoff Stats aren't imported when doing an REditor import from an NBA 2K12 save. This is an REditor issue, and if the functionality is added to REditor, it will be added to NBA Stats Tracker as well.


Source Code Git Repository, Issue Tracker & Open Wiki
https://github.com/leftos/nba-stats-tracker


Disclaimer
The tool is still in beta. I've tested it in my environment, on my Association files and it seems to work perfectly. If you encounter any problems, please report them to me.

Keep one thing in mind however...

ALWAYS KEEP BACKUPS OF YOUR SAVES!

I won't take any responsibility if this tool messes up your Saves. You've been warned. It hasn't messed up my Association, but just saying.


Feature Tour
phpBB [video]



Download
NBA Stats Tracker


Screenshots

Image
The tool's main screen.

Image
Team Overview

Image
Player Overview

Image
League Overview

Image
Advanced Player Search

Image
Scouting Report for a team



Issues & Suggestions
Besides the forum, there's a more "organized" place to place your issues and suggestions, the NBA Stats Tracker Issue Tracker at Bitbucket. It'd really help me if you participated. Try to follow these rules:
  • Check if your issue is already reported before opening a new report.
  • Try to be as descriptive as possible. If opening a bug report, include the circumstances and if you can reproduce it and how. If opening a crash report, include the errorlog; the tool should tell you where to find it.
Link: https://bitbucket.org/leftos/nba-stats-tracker/issues


Donate and support my work
If you enjoy using my tools and want to show your appreciation, all you have to do is say a hello and a thank you in a reply here. If, however, you want to show a little more appreciation, you can always consider making a small donation towards my everyday and studies expenses. Any donation, no matter the amount, will give me even greater incentive to develop these tools and helping the community.

Click here to donate!
Last edited by Leftos on Thu Mar 22, 2012 12:35 am, edited 70 times in total.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.1.0 RELEASED!

Postby Andrew on Sun Jan 08, 2012 9:03 am

Outstanding. :)
Release Threads: NBA Live 08 | NBA Live 07 | NBA Live 06 | NBA Live 2005
Story Threads: NBA 2K13 | NBA Live 06 (Part 2) | NBA Live 06 (HOF) | NBA Live 2004 (HOF)
NLSC: Podcast | Facebook | Twitter | YouTube Channel


Image
Thanks to TheDee for the signature!
User avatar
Andrew
Old School Rose
Administrator
 
Posts: 88497
Joined: Thu Aug 22, 2002 8:51 pm
Location: Australia

Re: [Tool] Correct Team Stats v0.1.0 RELEASED!

Postby Mythbuster on Sun Jan 08, 2012 9:06 am

Superb in tools as always, thanks :bowdown2:
User avatar
Mythbuster
Time to bust this busty myth.
Contributor
 
Posts: 1129
Joined: Thu Nov 04, 2010 11:47 am
Location: Manila

Re: [Tool] Correct Team Stats v0.1.0

Postby Leftos on Mon Jan 09, 2012 1:42 am

Well I'd be damned. Second season stats are saved in different positions that the first one's, and aren't even kept in a continuous stream, they are all over the place.

This will need quite some work. I hope that at least the 3rd season is somewhere I can expect it to be.

EDIT: Nope, can't be done. Each season saves its Team Stats in a separate position in the Save file. 1st one saves elsewhere, 2nd one elsewhere, 3rd one elsewhere, etc. And it's not just the matter of finding the first team, even the order of the teams changes for no apparent reason, and I can't detect where in the savegame the game puts where to look for each team's team-stats, or the team order. If anyone can help me, be my guest. Otherwise, this tool will only work for the first season & playoffs.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.1.0 RELEASED!

Postby Leftos on Mon Jan 09, 2012 2:24 am

v0.2 has been released
The tool is now compatible with Seasons and Playoffs files, and I've added extended functionality to keep the tool compatible with the Playoffs in Seasons and Associations.

Known issue however, as I explain in the above post, is that the game doesn't keep the Team Stats in the same place each year, so until I can determine where in the save files is the information that lets the game know where it can find each team's stats, I won't make it compatible with the following seasons, as it would be a highly manual job for me.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.2

Postby Onisak on Mon Jan 09, 2012 2:32 am

I crashes at start for me :(. It says Nba 2k12 miracle my jersey encountered a critical error and it will close... I don't know what does miracle jerseys have with this :).
User avatar
Onisak
 
Posts: 999
Joined: Fri Jan 23, 2009 6:35 pm
Location: Slovenia, Kranj

Re: [Tool] Correct Team Stats v0.2

Postby Leftos on Mon Jan 09, 2012 2:36 am

Yeah, some error handling code was copy-pasted from my other utilities, and I forgot to change the texts.

So, could you upload the logs on http://www.pastebin.com so I can see what's wrong? Also, what's your OS?
Last edited by Leftos on Mon Jan 09, 2012 2:41 am, edited 1 time in total.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.2

Postby Onisak on Mon Jan 09, 2012 2:39 am

User avatar
Onisak
 
Posts: 999
Joined: Fri Jan 23, 2009 6:35 pm
Location: Slovenia, Kranj

Re: [Tool] Correct Team Stats v0.2

Postby Leftos on Mon Jan 09, 2012 2:45 am

Thanks. I fixed the silly bug.

v0.2.0.1 released.
Fixed small bug that wouldn't allow the tool to start in v0.2.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.2

Postby Onisak on Mon Jan 09, 2012 2:48 am

Thanks! Great tool! (Y) (Y)
User avatar
Onisak
 
Posts: 999
Joined: Fri Jan 23, 2009 6:35 pm
Location: Slovenia, Kranj

Re: [Tool] Correct Team Stats v0.2

Postby Vl@d Zola Jr. on Mon Jan 09, 2012 6:16 am

Great work, mate! (Y) (Y) Hope, you'll make it more automated in future. ;)
And yes, stop working days and nights, start preparing for the exams. :mrgreen: A little piece of advise. ;)
User avatar
Vl@d Zola Jr.
Contributor
Contributor
 
Posts: 1026
Joined: Wed Apr 04, 2007 1:31 am
Location: Binaryland

Re: [Tool] Correct Team Stats v0.2

Postby Leftos on Mon Jan 09, 2012 6:23 am

Making it more automated would require me to find the actual box scores for each game every time, something that scares me even as a concept right now. But who knows? :P
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.2

Postby Vl@d Zola Jr. on Mon Jan 09, 2012 6:49 am

Leftos wrote:Making it more automated would require me to find the actual box scores for each game every time, something that scares me even as a concept right now. But who knows? :P

Who knows, but i'm really going to help you with the main concept of finding and accessing these things, when i have some time. :wink:
I did find box scores for home team for NBA 2K10 back in the days. :roll:
User avatar
Vl@d Zola Jr.
Contributor
Contributor
 
Posts: 1026
Joined: Wed Apr 04, 2007 1:31 am
Location: Binaryland

Re: [Tool] Correct Team Stats v0.2.1

Postby Leftos on Mon Jan 09, 2012 8:36 am

v0.2.1 released.
Fixed a bug that would register the first team's FTA as the second team's as well. Also has minor improvements and fixes (for example, you can't enter the Points that each team scored, they're automatically calculated from FGM, 3PM and FTM so that you can verify you've entered them correctly).

Also contains a tiny preview of "Show Averages" that I didn't have time to work on.

On my TODO list are to finish the "Show Averages", and to create a "Trends" screen, that will compare two saves of the same Association and show you trends between them. For example, you can compare a save of your association from November 1 and one from December 1 (if you keep them, of course), and see which teams improved and in what, as well as which teams had a bad month. I'll try to make it in a "blog post" fashion, with natural language, so that you can copy it and keep history of your Association. Imagine how better this will become if I finally find the way to make the tool work for the years past the first season. You could compare the whole league to what it was a year ago, see 12 month trends, 6 month trends, etc.

=================================

v0.3 preview!

What do you guys think?

Image
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.3

Postby Leftos on Mon Jan 09, 2012 10:31 am

v0.3 released!
Introducing Stat Averages and Rankings, this is the first step towards the Trends screen that will give you an analysis of what trends have formed in the league stat-wise between two saves; which teams are doing good, and which bad.

Right now, v0.3 introduces the basis for this, a Stat Averages and Ranking screen, which gives you the percentages of your team as well as its ranking for each stat in the league.
See how well your team is doing, and scout your next opponent for their strengths and weaknesses in a quick glance!

Also introducing efficiency ratings, which take into account both the percentage as well as the amount made. The explanation quoted from the readme:

The "eff" averages are efficiency averages, and they take into account both the success percentage, as well as the absolute amount. What that means is though both a 3-0 and a 6-0 team are on a 1.0 winning %, the second team can obviously keep the 1.0 longer, and has more chances of winning the division/conference/league. Another example are 3 pointers. Two teams that shoot 40% from beyond the arc are dangerous. But if you attempt 5 3-pointers in the whole game, 40% means you made two. That's not really dangerous now, is it? However, a team that has a 40% success while attempting 15 three pointers a game, makes 6 every game! Now that's more like it. Thus, a team that has the same percentage with another, but has that on more wins/shots, will have a better "eff" average.

The "Win eff" ranking is actually a Power Ranking of sorts, as it shows you the relative winning strength of a team in the league, taking account not only the winning percentage, but also how many wins they've got so far and how close they are to the end of the season.


Screenshots
Image Image Image

===================================================================

v0.4 preview

I've started working on the Scouting Reports. I've only gone through FG, 3PT and FT rankings, but I'm going to do more tomorrow, and maybe get it done.

Here's a taste:
Image
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.4 (w/ SCOUTING REPORTS)

Postby Leftos on Mon Jan 09, 2012 11:22 am

NOTE: Sorry to the mods for the constant bumping, but I've been working all night on this, and I hope that the latest feature is enough of an excuse for me to bump the thread one last time to announce the release.

v0.4 released!
Introducing scouting reports! Load your association, choose your next opponent, and get a scouting report on their pros and cons based on their stats and rankings in your Association, what you should be careful about and tips on how to run your game!

Screenshots
Image

Image

Image


v0.4.0.1 released!
Quick fix for a bug that disabled "Save Team Stats" from working in v0.4.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.4.0.1 (w/ SCOUTING REPORTS)

Postby deihatein on Mon Jan 09, 2012 11:50 am

Damn this is awesome. Will definitely use this when I make a new association soon. Too bad I can't use this on my ongoing one since it's on the third season now.
shadowgrin wrote:Quick question: who is better in basketball, a black dude or a pinoy dude. If you thought or considered for a moment that it's the black dude then you're also a little bit racist.

End of any racist discussion.


Pinoy > Dallas Mavericks
User avatar
deihatein
Batdirk and Monbin
 
Posts: 3588
Joined: Fri Jan 26, 2007 9:13 pm
Location: Philippino

Re: [Tool] Correct Team Stats v0.4.0.1 (w/ SCOUTING REPORTS)

Postby albidnis on Mon Jan 09, 2012 12:19 pm

Great work. Is it possible to pull the stats in to a .csv for example from the save file instead of input. That would be a great feature for the guys like me that love to post association blogs.
albidnis
 
Posts: 231
Joined: Tue Jan 27, 2009 7:54 am

Re: [Tool] Correct Team Stats v0.4.0.1 (w/ SCOUTING REPORTS)

Postby Lagoa on Mon Jan 09, 2012 12:26 pm

Question here;

I can use this tool just after have a stats problem? Or need to use since play firts game on my association?

Ex: I have a association with 10 games without use your tool. After 10 games bug apears and my team show 85 blocks per game, it´s possible to use your tool just for a little update in this stats and after the game auto update?

Or if i use one time i need to update all game?

Hope you understand my english... lol
Sorry my Bad English
User avatar
Lagoa
 
Posts: 1961
Joined: Tue Dec 17, 2002 11:05 pm
Location: São Paulo, Brasil

Re: [Tool] Correct Team Stats v0.4.0.1 (w/ SCOUTING REPORTS)

Postby jrlocke on Mon Jan 09, 2012 12:32 pm

albidnis wrote:Great work. Is it possible to pull the stats in to a .csv for example from the save file instead of input. That would be a great feature for the guys like me that love to post association blogs.

Yes Leftos I agree with this. Please let us know if possible. Great tool and thanks for tackling a big issue with the game.
2013 is the year?
Thanks to Vl@d, Leftos and all the other patchers for their hard work.
User avatar
jrlocke
 
Posts: 386
Joined: Sat Sep 28, 2002 6:42 am
Location: Cleveland, Ohio

Re: [Tool] Correct Team Stats v0.4 (w/ SCOUTING REPORTS)

Postby Andrew on Mon Jan 09, 2012 4:30 pm

Leftos wrote:NOTE: Sorry to the mods for the constant bumping, but I've been working all night on this, and I hope that the latest feature is enough of an excuse for me to bump the thread one last time to announce the release.


No problem, it's well worth it. :)
Release Threads: NBA Live 08 | NBA Live 07 | NBA Live 06 | NBA Live 2005
Story Threads: NBA 2K13 | NBA Live 06 (Part 2) | NBA Live 06 (HOF) | NBA Live 2004 (HOF)
NLSC: Podcast | Facebook | Twitter | YouTube Channel


Image
Thanks to TheDee for the signature!
User avatar
Andrew
Old School Rose
Administrator
 
Posts: 88497
Joined: Thu Aug 22, 2002 8:51 pm
Location: Australia

Re: [Tool] Correct Team Stats v0.4.0.1 (w/ SCOUTING REPORTS)

Postby Leftos on Mon Jan 09, 2012 6:09 pm

Here's my ToDo list, hope I'll keep everybody happy.

- Extract single team/whole league stats, averages and rankings into CSV.
- Copy the box score after you've entered into CSV as well.
- (Later on) Create the Trends screen, which I've explained above.
- Edit Team Stats directly (this will only be useful if you have access to all your box scores so far and want to correct your corrupted stats to the true averages).

Dei, I know your pain. I want to make the tool compatible with seasons past year 1, but I just don't have the proper knowledge of NBA 2K12's save files' structure to do that yet. I hope that with some help I can make this a great tool that will work regardless of the season.

abidnis & jrlocke, hope my ToDo list made you happy.

Lagoa, this goes for you too. The feature you requested is on my ToDo list as you can see. But I don't recommend you go through with that. I get that you don't want to restart your association, but it's not just your team's stats that get corrupted by this bug, all your opponent's stats get corrupted as well. So for you to correct the stats after a few games, means that you have to get ALL the Box Scores for your team and the teams you've been up against (if for example you're just before Game 7, you'll need your 6 box scores, and the box scores for EVERY game each of the opponents you encountered in your first 6 games has played). The tool will be able to calculate averages, but this is quite the job for the user. But if you want it, it's quite doable. Just make sure you keep al your box scores, because the game tends to delete the older ones from the save (it can't fit that many after a while, as the save has a standard size, and isn't expanding to accommodate more box scores or stats).
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.4.0.1 (w/ SCOUTING REPORTS)

Postby Angelo on Mon Jan 09, 2012 7:38 pm

You are one hell of a guy leftos (Y) nice app
Image
User avatar
Angelo
Holy Tits
NLSC Team Member
 
Posts: 5826
Joined: Fri Nov 03, 2006 1:40 am
Location: Philippines

Re: [Tool] Correct Team Stats v0.4.0.1 (w/ SCOUTING REPORTS)

Postby zizoux on Tue Jan 10, 2012 3:26 am

OMG! I've been waiting for this. Thank you so much . :bowdown2: Keep up the good work!
User avatar
zizoux
 
Posts: 17
Joined: Tue Dec 06, 2011 7:28 am

Re: [Tool] Correct Team Stats v0.4.0.1 (w/ SCOUTING REPORTS)

Postby Leftos on Tue Jan 10, 2012 7:36 am

Hmmm... Does this wet your appetite, abidnis & jrlocke?

Image
League-wide CSV created by the tool, sorted in Excel by PPG.

v0.5 released!
Adds support to export an individual team's as well as league-wide stats to CSV. Also checks if the "Saved Test Stats" file is compatible with the Association file being updated, when the user uses the "Load & Update Team Stats".

NOTE: For now, certain features such as Averages, Rankings, Scouting Reports and Export to CSV only work during the season, but will be fixed to work for the Playoffs too, soon.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.5 (w/ SCOUTING REPORTS + CS

Postby zizoux on Tue Jan 10, 2012 8:54 am

Great work. Is there any way for us to inject the real box scores and stats? That would be awesome.
User avatar
zizoux
 
Posts: 17
Joined: Tue Dec 06, 2011 7:28 am

Re: [Tool] Correct Team Stats v0.5 (w/ SCOUTING REPORTS + CS

Postby Leftos on Tue Jan 10, 2012 9:21 am

I was thinking about that. Isolating the Team Stats and being able to use them and edit them separately of NBA 2K12 save files (for use in the real league or custom leagues with your friends played in Exhibition mode or just personal experimentation) is something that I should be able to do easily.

It's funny. What began as a work-around for the NBA 2K12 Team Stats bug, will now grow to be a general Team Stats analyzer, that will help you keep track of, say, your city's league, your college's league, your friends' league, by inserting the teams that you want to keep stats of, and then adding Box Scores one by one, letting the program accumulate the stats and give you averages, rankings and scouting reports.

Now THAT'S effin' exciting. I'll keep you posted the following days. You guys are going to ruin my exams period. :P
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.6 (Scouting-CSV-CustomLeagu

Postby Leftos on Tue Jan 10, 2012 12:05 pm

v0.6 released!
Although not in the stable channel, as it's 4am here and I haven't had that much time to test it, v0.6 now adds "Custom Leagues" functionality, which allows you to use the tool's features for custom leagues (such as a local league, a league between friends, a college league, or just keeping track of the real NBA league), including updating by Box Score, exporting to CSV, getting averages and rankings, etc.

When you create a custom league or open a Team Stats file directly (rather than an NBA 2K12 save file), the tool goes into full custom mode, where all the stats are directly editable. This way you can easily bring your League Stats up to speed with the real league, without having to enter every box score and updating that way.

The changes you make can be injected back into an NBA 2K12 save file, although that's HIGHLY experimental and is not recommended. I still recommend the "How To Use" walkthrough if you just want to have the correct stats. This "injection" feature is only there for people in the middle of their Association that don't want to restart it, and just want to fix the Team Stats and move on.

So the way you can "fix" the Team Stats in an Association that has corrupted stats:
1. Open your NBA 2K12 save file.
2. Click on "Save Team Stats".
3. Go to File > Load Custom League...
4. Select the Team Stats file you saved in Step 2.
5. Fix each team you want to fix, clicking on Save Team before going to the next one.
6. (Optional) Click on Save To Disk to keep the fixed Team Stats file saved for later.
7. Click on Inject into NBA 2K12 Save File and select the Save file you used in Step 1.

I can't say this enough, many of these features are still experimental, so always keep a backup of your save in case something goes wrong.

I hope you'll appreciate the new version.

NOTE: I've also tried making all the tool's features compatible with Career files that are into the Playoffs.

Screenshots
Image
The main screen after having loaded a custom league.

Image
A League CSV export from the tool, while editing the custom league I created. Don't worry about the crazy stats, I was just entering them randomly to see if the feature works.


Personal note: I never expected that this workaround of a bug would grow into a generic Team/League stats tool. I'm really thankful for the people that come up with more and more ideas I can implement, and this has grown way beyond the scope of NBA 2K12. It's still a big priority to get it to be compatible with seasons after year 1, as that's the most important thing, but that may take me up to late February, when I'll have help from Vlad Zola Jr. Until then, I'll try to make this as robust a tool as possible.

zizoux, if you go through the trouble of getting the real NBA current stats into the tool, could you get a few screenshots of some scouting reports and post them here? I'm really curious to see how that turns out, and what the tool has to say for some of the real teams right now.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.6 (Scouting-CSV-CustomLeagu

Postby albidnis on Tue Jan 10, 2012 1:49 pm

Dude your kidding me right. You just did it so fast. This is awesome. Anytime you need some sort of GFX. Let me know. :bowdown:

THANKS !!!

Question, are box scores to .csv on your todo? Also, we need you to fix the U.S. Debt... :D
albidnis
 
Posts: 231
Joined: Tue Jan 27, 2009 7:54 am

Re: [Tool] Correct Team Stats v0.6 (Scouting-CSV-CustomLeagu

Postby Leftos on Tue Jan 10, 2012 5:29 pm

Fixing the U.S. debt is now on my ToDo list. Just give me a few hours to...

Ooooooh. I see what you did there. :P

Seriously though, getting Box Scores to CSV is the next step, as long as you mean the Box Scores you enter in the tool's window for that; I have no idea on how to export Box Scores from the Save Games right now, and it's another thing to look for with Vlad when the time comes. But for the tool's box scores window? It'll be out today most probably.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.6.1.1 (Scout-CSV-CustomLeag

Postby Leftos on Tue Jan 10, 2012 7:09 pm

v0.6.1.1 relased!
Now able to export Box Scores to CSV as well; you'll have to enter them yourselves though, the tool can't extract box scores from save files yet.

Screenshots
Image
Box Score CSV exported by the tool and imported into Excel.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.6.1.1 (Scout-CSV-CustomLeag

Postby Onisak on Wed Jan 11, 2012 1:47 am

You have got alot of programing talent! Your tools are amazing work! Thank you! (Y) (Y)
User avatar
Onisak
 
Posts: 999
Joined: Fri Jan 23, 2009 6:35 pm
Location: Slovenia, Kranj

Re: [Tool] Correct Team Stats v0.6.1.1 (Scout-CSV-CustomLeag

Postby albidnis on Wed Jan 11, 2012 4:13 am

Great work on the Boxscore CSV. I can't wait till it is automatic like the other stats
albidnis
 
Posts: 231
Joined: Tue Jan 27, 2009 7:54 am

Re: [Tool] Correct Team Stats v0.6.1.1 (Scout-CSV-CustomLeag

Postby Leftos on Wed Jan 11, 2012 6:55 am

v0.6.1.2 released in experimental channel.
Fixes minor bugs and regressions, such as the Box Scores window closing when a stat was inputted wrong instead of returning the user to the window to correct it; also fixes the check for compatible TST and Career files when updating using Box Scores, which would previously always report a problem.

=======================

v0.6.1.3 released in experimental channel.
Improvements on Scouting Report algorithm, added more checks, lines and detail, and tried to fix some scenarios where different lines of the report of the same team would contradict each other. I'll try to constantly add more stuff as I think of it.

If you have any recommendations or ideas on how to improve the Scouting Reports, please tell me.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.6.1.3 (Scout-CSV-CustomLeag

Postby jrlocke on Wed Jan 11, 2012 12:46 pm

Leftos you are the man! Donation coming your way this weekend.
2013 is the year?
Thanks to Vl@d, Leftos and all the other patchers for their hard work.
User avatar
jrlocke
 
Posts: 386
Joined: Sat Sep 28, 2002 6:42 am
Location: Cleveland, Ohio

Re: [Tool] Correct Team Stats v0.6.1.3 (Scout-CSV-CustomLeag

Postby Vl@d Zola Jr. on Wed Jan 11, 2012 8:58 pm

jrlocke wrote:Leftos you are the man! Donation coming your way this weekend.

Great to hear! Thank you, my friend, for your constant programmers support! (Y)
User avatar
Vl@d Zola Jr.
Contributor
Contributor
 
Posts: 1026
Joined: Wed Apr 04, 2007 1:31 am
Location: Binaryland

Re: [Tool] Correct Team Stats v0.6.1.3 (Scout-CSV-CustomLeag

Postby Leftos on Wed Jan 11, 2012 10:26 pm

jrlocke wrote:Leftos you are the man! Donation coming your way this weekend.


Thanks man both for the support and your ideas on new features. It means a lot, really.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.6.1.3 (Scout-CSV-CustomLeag

Postby sasha104 on Thu Jan 12, 2012 10:43 pm

Am I the stupid one? :eh:
I just can't run it^ the window always appears with some bullshit 'bout missing MSVCR100_CLR0400.DLL.
I updated evrth, downloaded file separately and pu it to WINDOWS/System32 (in this case nothing happens, no windows, no tool running), but i can't make it run... :evil: :evil: :evil:
Sooooo, can u help me?
Check out my dornas for NBA 2K13
User avatar
sasha104
 
Posts: 121
Joined: Thu Oct 06, 2011 2:59 am
Location: Moscow, Russia

Re: [Tool] Correct Team Stats v0.6.1.3 (Scout-CSV-CustomLeag

Postby Leftos on Thu Jan 12, 2012 10:49 pm

Try downloading and installing .NET Framework 4 Client Profile.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.6.1.3 (Scout-CSV-CustomLeag

Postby sasha104 on Thu Jan 12, 2012 11:24 pm

finally it works :bowdown:
now tryin' to fix MP (Y)
Check out my dornas for NBA 2K13
User avatar
sasha104
 
Posts: 121
Joined: Thu Oct 06, 2011 2:59 am
Location: Moscow, Russia

Re: [Tool] Correct Team Stats v0.6.1.3 (Scout-CSV-CustomLeag

Postby Leftos on Thu Jan 12, 2012 11:35 pm

The installer should have automatically detected the lack of .NET Framework 4 on your system, did you use the installer package and still got that error before you installed the framework manually?

Hope you'll enjoy using the tool.

Oh, and by the way, I hope it works on My Player for you, but make sure you keep backups, because I haven't tested the tool for full compatibility. I was more bent on getting Association fully working first (season + playoffs), and adding new features, that I forgot to check My Player.

If you do get around to using the tool on your My Player, tell me how it goes.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.6.1.4 (Scout-CSV-CustomLeag

Postby Leftos on Fri Jan 13, 2012 12:23 pm

v0.6.1.4 released into stable channel!

I've been using v0.6.x during my Association a lot to know that its main features work, that is, updating via Box Scores and editing the whole Team Stats table and injecting it back, so I'm moving it to the stable channel so users can upgrade. That doesn't mean that everything is working correctly yet, there are known issues, but those are documented, and everything else seems to work fine.

This small hotfix over v0.6.1.3 fixes a bug in the tool; it wouldn't update the averages after an update using a box score, and you had to reload the save for the Averages and Scouting Reports to work properly. Now averages in the tool should be updated as soon as you get the confirmation that your save's team stats have been updated.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.6.1.4 (Scout-CSV-CustomLeag

Postby Onisak on Fri Jan 13, 2012 10:25 pm

Hey Leftos one question, after the game in association ends, do you quit the game and then click load and update stats or do you do it in postgame menu?
User avatar
Onisak
 
Posts: 999
Joined: Fri Jan 23, 2009 6:35 pm
Location: Slovenia, Kranj

Re: [Tool] Correct Team Stats v0.6.1.4 (Scout-CSV-CustomLeag

Postby Leftos on Fri Jan 13, 2012 11:36 pm

No, no, no. Don't use the post-game team stats, as the Association file won't have saved yet, and if you try to "Load & Update" before the Association saves after the game, you'll get a warning that the Team Stats you saved are incompatible with the save.

So, I do it this way:
1. From the Association Calendar...
1.1 Simulate Through Date
1.2 Play Game
2. After the "Saving Association" prompt disappears...
2.1 Alt-Tab into the tool (or just start it)
2.2 Click on Select
2.3 Pick your Association save
2.4 Make sure the team stats have loaded correctly
2.5 Click on Save Team Stats
2.6 Pick a name, such as "Association, before Game 6"
2.7 (Optional) Close the tool, you won't needed until after the game
3. Alt-tab into the game, start the game, play it, watch it, simulate it, whatever.
4. After the game ends and you're in the post-game menu, check the highlights or whatever you want, and select Quit Game.
5. As soon as the "Saving Association" prompt disappears (this is important, do NOT do anything that would make the game simulate other games, such as simulating to the next day)...
5.1 Go on the Calendar
5.2 Select the game you just played, click on View Box Score
5.3 Note down each team's stats in the order they appear (they should be in the last row of the box scores)
5.4 Alt-tab into the tool (or just start it)
5.5 Click on "Load & Update"
5.6 Select the team stats file you saved in step 2.6
5.7 Enter the box score for both teams
5.8 Click on OK
5.9 Select your Association file
5.10 Check that you get the confirmation message
5.11 Alt-tab into the game
5.12 Quit out of your association
5.13 Load it again
6. You're done!
6.1 (Optional) Go into the NBA.com > Statistics > Team Stats screen to verify.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.6.1.4 (Scout-CSV-CustomLeag

Postby Onisak on Fri Jan 13, 2012 11:45 pm

Thank you so much for the detailed explenation!! (Y) (Y)
User avatar
Onisak
 
Posts: 999
Joined: Fri Jan 23, 2009 6:35 pm
Location: Slovenia, Kranj

Re: [Tool] Correct Team Stats v0.6.1.4 (Scout-CSV-CustomLeag

Postby Onisak on Sat Jan 14, 2012 12:24 am

I did all just the way you wrote it and I still get the message that the save file is not compatible with the previous save... Don't know what could be the problem...
User avatar
Onisak
 
Posts: 999
Joined: Fri Jan 23, 2009 6:35 pm
Location: Slovenia, Kranj

Re: [Tool] Correct Team Stats v0.6.1.4 (Scout-CSV-CustomLeag

Postby Leftos on Sat Jan 14, 2012 1:27 am

Are you using v0.6.1.4? An older one gave the message even with compatible saves.

The way this message works is like this:
The tool adds the result of the game you played to the stats in the Team Stats file you saved. If the wins and losses of both teams aren't the same in both the updated Team Stats in the tool and the savegame you give it to update, it shows this message.

For example, let's say I'm the Pistons, and I'm playing the Pacers.
Before the game, my record is 12-15, and theirs is 16-11. After the game, say the Pacers won, so the Association file after it gets saved should have the Pistons as 12-16, and Pacers as 17-11. The Team Stats file I saved before the game has the old records, 12-15 and 16-11, but after I load it and update it with the box score, it goes to 12-16 and 17-11 as well. So now it compares the new records with the ones on the Association file, and if they're the same, it means the updated team stats and your association file are compatible, and doesn't give you that warning.

Some things to check:
- Do you have autosave on, so that the game saves your Association automatically before and after the game? The tutorial I gave you assumes Autosave is on. Otherwise, you have to manually save right before the game, and right after it.
- Did you load your Association onto the tool (right after it saves after you select Play Game) and saved its team stats before the game?
- Did you save your Association after the game, so that the new Association save has the new win/loss totals, and the tool knows the save is compatible?
- Did you, by mistake, simulate any other games after the game ended, and overwrote your Association after doing that?

It's imperative that you have a Team Stats file saved from inside the tool right before the game starts, and an Association file saved from inside the game right after the game ends. Those are the required stuff. But that also requires that your Association is saved right before the game (so that you can extract the "before" team stats), and also saved right after (so that the tool can check the wins/losses are compatible).

You can always check if the Team Stats were saved correctly by using the File > Open Custom League... option, and selecting the Team Stats file you saved. And you can always check if your Association file was saved correctly by loading it into the tool using the "Select" button in the main window.

After you do that, you can check that the only difference in wins and losses between the Team Stats file and the Association saved after the game is the one win and loss that occured after the game you played. That would mean the two files are compatible, and that you can update your save using the team stats you saved and the box score.

EDIT: I could help tell you what's going wrong if you zipped the Team Stats file from before the game and your Association save from after the game, uploaded the zip somewhere like Mediafire, and gave me the link. I'll do the checks I told you myself, but the info I gave you should be more than enough to help you.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Correct Team Stats v0.6.1.4 (Scout-CSV-CustomLeag

Postby Onisak on Sat Jan 14, 2012 1:35 am

I cant thank you enough for the help... I will try to reinstall the program and give it one mroe try... I am shure I did all the things right and that I have autosave on... Gonna report back later...
User avatar
Onisak
 
Posts: 999
Joined: Fri Jan 23, 2009 6:35 pm
Location: Slovenia, Kranj

Re: [Tool] Correct Team Stats v0.6.1.4 (Scout-CSV-CustomLeag

Postby Onisak on Sat Jan 14, 2012 1:50 am

Could it be, that i never deleted the old nba team stats folder in my documents, that stays behind eaven after unninstall and new install of this tool? I only noticed this, maybe I had the old version?
User avatar
Onisak
 
Posts: 999
Joined: Fri Jan 23, 2009 6:35 pm
Location: Slovenia, Kranj

Re: [Tool] Correct Team Stats v0.6.1.4 (Scout-CSV-CustomLeag

Postby Leftos on Sat Jan 14, 2012 2:02 am

No, the folder staying there shouldn't affect the tool at all. If you save a new team stats file or overwrite an old one, the rest of the files in that folder don't affect the tool.

If after downloading the latest version you still have issues, send me your Team Stats and Association file, I'll check them and tell you what you didn't do right.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 5107
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Next

Return to NBA 2K12 Releases & Previews

Who is online

Users browsing this forum: No registered users and 9 guests