[Tool] NBA Stats Tracker

Release or preview patches for NBA 2K12.

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby Leftos on Sun Apr 29, 2012 7:13 pm

First of all,

viewtopic.php?p=1463729#p1463729

and

viewtopic.php?p=1467471#p1467471.

As I've said in both these posts, 2K12 compatibility is a mixed issue that will be resolved once Vlad decodes the Team Stats tables for REditor. Modes are different Team Orders for Season 1 so that you can try and see if there is one that works for your save.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby AreaOfEffect on Sun Apr 29, 2012 8:39 pm

OKay, I'll just wait then. thank you again for your awesome mod. (Y)
AreaOfEffect
 
Posts: 260
Joined: Thu Jan 22, 2009 2:00 pm

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby Leftos on Mon Apr 30, 2012 5:19 am

And to whet your appetite a bit more...

Image

As you can see, each stat has its ranking between all players in the league, players in the same team, as well as players in the same position. Eat that 2K.

(Once I import a Player Stats table from REditor this is going to make WAY much more sense. :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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby Vl@d Zola Jr. on Mon Apr 30, 2012 7:03 am

each stat has its ranking between all players in the league, players in the same team, as well as players in the same position.

Yeah, that's definitely a good idea! (Y)
User avatar
Vl@d Zola Jr.
Contributor
Contributor
 
Posts: 1025
Joined: Wed Apr 04, 2007 1:31 am
Location: Binaryland

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby Leftos on Mon Apr 30, 2012 7:43 am

I've just uploaded today's nightly (20120429-3). It has a basic implementation of Players. It will allow you to create them, edit them, make them inactive (Free Agency or no longer in the league), make them active again (like a free agency signing), edit their stats and calculate averages and rankings, as well as supports keeping multiple seasons worth of stats.

Box Scores aren't implemented yet as far as Players go, I'll start working on them next thing. So trying to limit the timeframe of the player stats won't work, only All-Time works for now. Also, I haven't implemented any tabs other than Overview in the Player Overview screen. You can, however, see all the players of a team in a glance (and batch edit them) in the Player Stats tab of the Team Overview screen.

EDIT: God I need to go to sleep. Nightly 20120429-4 uploaded. Now when you switch seasons while in Player Overview, the tool tries to find the player in the team they were in that season (or in the inactive list). If it finds them, it switches correctly to show the player in their new team. If it doesn't find them, it shows nothing. This is really useful as players tend to switch teams between seasons, and also you may have created a player or two during seasons after the first one, that weren't there in the first one. (In 2K, for example, players being created in later seasons from Draft Classes.) Or, you may have switched them to inactive, due to them being a free agent or retiring.

EDIT 2: It's possible to "trade" a player, it's just not that obvious (once I write the documentation, it will be). You just have to select them in the Player Overview screen, make them inactive, save, make them active, save again, and you'll be asked to pick a team to sign the player to.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby AreaOfEffect on Mon Apr 30, 2012 9:37 pm

I already got it to work on my first game but after importing the stats from 2nd game, it stopped working.
AreaOfEffect
 
Posts: 260
Joined: Thu Jan 22, 2009 2:00 pm

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby Leftos on Mon Apr 30, 2012 10:18 pm

Can you explain what you mean by that exactly? It "stopped working"?
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby Leftos on Tue May 01, 2012 6:03 am

Tonight's nightly (20120430-2) is out.

Image

  • Box Scores have been updated to include player stats. I know it takes a lot of time to enter it all, but in the end it should provide much deeper analysis for each Player and the whole league. Also, this means that whenever you view a saved box score, the player stats from that game are loaded as well. Everything, both team and player stats can be edited in the Box Score screen and the box score updated.
  • With the above feature introduced, now you can automatically calculate the team box scores from the player box scores.
  • Note that it is NOT required to enter any player stats from the box score. You can still keep track of only Team box scores, or just a few players that you want to watch (like your team's players for example, or favorite players around the league). You can always go back and add or edit any information in a previously saved box score if you didn't enter everything. However, the feature that automatically adds the box score to the stats only works the first time you enter that box score, not when you edit it later.
  • Double-clicking on a player in the Player Stats tab in Team Overview now takes you to their Player Overview screen.
  • The arrows in the Team & Player switchers in the Player Overview window should now work as intended.

Trust me, it's not as simple as it sounds. Yesterday I worked on NST for 12 hours, while today it's been about 9 to 10 hours worth of programming.

As always, you can download the nightly and try the features out, and come back to report any bugs.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby AreaOfEffect on Tue May 01, 2012 7:34 am

I appreciate your work man. Thanks. I just want to know if this is already compatible to any new save?
AreaOfEffect
 
Posts: 260
Joined: Thu Jan 22, 2009 2:00 pm

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby Leftos on Tue May 01, 2012 10:04 am

AreaOfEffect wrote:I appreciate your work man. Thanks. I just want to know if this is already compatible to any new save?


Trust me, it'll be BIG news when full 2K12 compatibility hits, and you'll know it. I'll make it EXTREMELY obvious. Right now, I can't give you any ETA. I can only tell you that Vlad himself confirmed in the REditor thread that he's working on Team Stats, and we have plans for a special cooperation between NST and REditor.

What you're seeing right now is me working on NST as a tool independently of NBA 2K. However, every feature is designed and thought through to be compatible with NBA 2K when the time comes. Once NST is done, we'll have a much better tool to analyze our Associations and favorite leagues we want to keep track of. And it'll work for 2K13, 2K14, 2K whatever, as soon as Vlad finishes REditor each year.

The only reason 2K compatibility is still an issue, is that Vlad never had a really good reason to actually work on decoding the Team Stats from the save files, because never before had we such a big bug in them to take care of. The mere fact is that NST began as a workaround to fixing just that specific bug. Then I got more and more ideas. I thought, hey, I've decoded the Team Stats, so why don't I do more with that? Get averages, get rankings, get scouting reports. Then people said "boy it'd be great if that worked with other leagues", and then I created the custom leagues feature. The custom league feature was an afterthought, a secondary feature. The tool's main purpose was still to handle 2K saves and fix the stats.

But then ideas just kept coming to me. Ideas of what "NBA 2K12 Correct Team Stats" could be come. A full-fledged basketball analysis tool. Where every data table could be translated into a nice scouting report if you didn't have the time to go through the numbers. Where you could keep track of opponents' stats and, using a mobile app, you could download these reports to your phone, click on an opponent's name that you need some tips on, and get his scouting report. How good he is offensively. What are his defensive weaknesses. Whether he was injured lately. How many games he missed.

And then it hit me. Our NBA 2K associations are nothing more than another "custom league" the tool has to handle. So when Vlad told me he would get on decoding the Team Stats, and that with his help I no longer had to worry about 2K compatibility (since REditor would act as an intermediate between NST and the 2K saves), I presented my idea to a university teacher of mine, and got the tool to become my thesis.

And here we are. Nearly a week after I started working on the new NBA Stats Tracker, and now we have support for Player Stats, full Box Scores including players, and there's still more to come. Players will get the full treatment Teams have, with split stats, stats before and after a trade in a year, best performances, metric stats, head-to-head comparisons with other players. Teams will get a best performers screen where you'll be able to scout your opponent's most dangerous players based on both their season stats as well as their most recent ones. Nearly every screen on NST will have a Scouting Report for it in natural language. We'll get full 2K compatibility, courtesy of Vlad. And when all this is done, if you're a real coach (or just like to show off to friends), you'll be able to upload your NST stats and reports to the cloud and download everything to your mobile.

So, the TL;DR version is this: No, 2K compatibility is not there yet, but it'll be there in its full glory soon. And along with it, will be one of the best tools you've ever used for NBA 2K, as well as a great solution to keep track of any basketball league you want.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby Bulls#1 on Tue May 01, 2012 10:08 am

Thanks for the effort that you have done for this tool man I appreciate it (Y) :wink:
Image
User avatar
Bulls#1
 
Posts: 505
Joined: Sun Apr 22, 2012 5:22 pm

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby Leftos on Tue May 01, 2012 8:40 pm

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


UPDATE: When viewing timeframe-limited player stats, you can compare the player's averages to the team's ones for the same games. Note that this doesn't take into account the games that don't have a box score for the player. Even if the player is out injured, it's recommended that you create a box score for them and check the "Out" column.

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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby AreaOfEffect on Wed May 02, 2012 12:26 am

After entering the box score, when i click ok, nothing happens.

EDIT: And the stats from my association is already bugged(69 reb/g 60 ast/g) how can i correct it ? :D
AreaOfEffect
 
Posts: 260
Joined: Thu Jan 22, 2009 2:00 pm

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby Leftos on Wed May 02, 2012 4:12 am

Today's nightly is out (20120501-2).

Player Overview now has Box Scores and Split Stats. Also the Timeframe options work now for Players as well. Fixed a bug from last night's nightly that made the OK button in the Box Scores dialog do nothing.


AreaOfEffect, fixed that bug, told you via PM. As for the messed up stats, if you followed the instructions I gave you, you should have a database saved from right before the game. So you load that database, update it with the box score of the game you just played, save the database, and click on Export to 2K12 Save. If you do this for every game from the beginning of your Association, you shouldn't have messed up stats.

If however you forgot to do this as I said, you'll need to calculate the total team stats from each box score and correct the stats yourself. You just import, save, correct via Team Overview (saving each team before switching to the next one), and export.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby AreaOfEffect on Wed May 02, 2012 6:24 am

Thanks for fixing it. But after updating it with the latest box score, it would increase my team record right(win-loss)? and by doing it for every game from the beginning of my association, it will double the real win-loss record of every team?

EDIT:tried correcting it via team overview, so after entering the total assist, then save this season stat and recalculate, export, load save, but my assist per game is still 63
Last edited by AreaOfEffect on Wed May 02, 2012 7:17 am, edited 1 time in total.
AreaOfEffect
 
Posts: 260
Joined: Thu Jan 22, 2009 2:00 pm

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby Vl@d Zola Jr. on Wed May 02, 2012 6:29 am

Huh, mate, i wish, REDitor was my thesis as well, so i wouldn't needed to share my time between it and my thesis project )))
Really amazing progress you're making from day to day! ;)
User avatar
Vl@d Zola Jr.
Contributor
Contributor
 
Posts: 1025
Joined: Wed Apr 04, 2007 1:31 am
Location: Binaryland

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby AreaOfEffect on Wed May 02, 2012 8:21 am

AreaOfEffect wrote:Thanks for fixing it. But after updating it with the latest box score, it would increase my team record right(win-loss)? and by doing it for every game from the beginning of my association, it will double the real win-loss record of every team?

EDIT:tried correcting it via team overview, so after entering the total assist, then save this season stat and recalculate, export, load save, but my assist per game is still 63


EDIT2: got it to work. by not importing the save first but exporting it right away
AreaOfEffect
 
Posts: 260
Joined: Thu Jan 22, 2009 2:00 pm

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby Leftos on Wed May 02, 2012 8:32 am

AreaOfEffect wrote:Thanks for fixing it. But after updating it with the latest box score, it would increase my team record right(win-loss)? and by doing it for every game from the beginning of my association, it will double the real win-loss record of every team?

EDIT:tried correcting it via team overview, so after entering the total assist, then save this season stat and recalculate, export, load save, but my assist per game is still 63


Box scores can either be added to the Team Stats, or just saved in the database for future reference. There's a checkbox at the bottom left corner of the Box score screen that allows you to just enter a box score but leave Team Stats untouched.

As I've said however, fixing a 2K12 save doesn't work that way. You either add the box scores yourself manually (on paper or excel or whatever) and edit the Team Overview of each team (note that not only your team, but any opponents you play against get stat corruption), or start a new Association and update with the box score after each game with the method I've told you.

I've said it time and time again, fixing an Association that's already started can't be done with just a few box scores. You need to correct all the teams that are corrupted by manually adding the box scores yourself outside of the tool, and then editing the Team Stats in the Team Overview screen. If you used the tool from Day 1 of your Association and followed my tutorial (import and save a database after saving the association before the game, update with the box score after the game, export to the save), you wouldn't have any problems.

If you follow my instructions, there's a key difference between what you're saying.
You're NOT supposed to import the stats AFTER the game ends and then update with the box score. You're supposed to have kept the stats saved BEFORE the game started, so that you can update THOSE stats with your box score. The end result is the same Win-Loss record, but correct stats.

So if you're 15-11 and you win, you go to 16-11. Now you have the saved database when you were 15-11, and the 2K12 save where you're 16-11, but with corrupted stats. So you open the saved database from the 15-11, update with the box score, so now you're 16-11 in the database too, but with correct stats. So you export THAT to your 2K12 save.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby AreaOfEffect on Wed May 02, 2012 8:50 am

Yeah thanks and i already said too that i got it too work.

edit: Im just wondering, how come the other teams that i dont played against yet also have corrupted stats?
AreaOfEffect
 
Posts: 260
Joined: Thu Jan 22, 2009 2:00 pm

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby Leftos on Wed May 02, 2012 9:01 am

Corrupted stats occur for any match you enter (that is play or watch either to the end or simulating at some part of it). If you skip a match by simulating, or if the AI simulates it without you entering it at all, it shouldn't cause the team to get corrupt stats.

If teams that you haven't played yet have corrupt stats, that means that maybe you exported a team's corrupt stats (that you didn't correct) to the wrong team. That can happen if you sent me an incorrect list via PM, or if you started a new Association instead of starting the copy of the one you made the list with after simulating a month.

All these incompatibility problems will be gone once Vlad is done. You won't have to worry about Modes or making lists for me so that I can make a mode for you or donating or whatever.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby AreaOfEffect on Wed May 02, 2012 9:10 am

I see. I also noticed that the difference is only like 2 rebs or 1 turnover, so i dont know if i should also correct that. Okay, thanks for your hardwork! (Y) (Y)
AreaOfEffect
 
Posts: 260
Joined: Thu Jan 22, 2009 2:00 pm

Re: [Tool] [Dev] NBA Stats Tracker (Watch for nightlies)

Postby Leftos on Wed May 02, 2012 9:14 am

AreaOfEffect wrote:I see. I also noticed that the difference is only like 2 rebs or 1 turnover, so i dont know if i should also correct that. Okay, thanks for your hardwork! (Y) (Y)


When adding up box scores myself, I've also noticed those kinds of small miscalculations in other teams (non-corrupted ones), but the difference was minimal, and as the season goes by, +- 10 turnovers out of 1200 won't matter that much. You can correct those as well if you want, but the difference is marginal in absolute numbers, and almost unnoticeable in the stat overlays that show averages.

Vl@d Zola Jr., thanks for your kind words as always, and thanks for all the work you're still putting into REDitor.


Tomorrow's nightly if all goes well will have Head-To-Head and Yearly Stats for Players, League Leaders for League, and I'll start work on Metric Stats, hopefully getting as many in there as I can. I'm using http://www.basketball-reference.com/about/glossary.html as a reference for the Metric Stats formulas, but if someone knows another page I can use, feel free to help.

Also, please take a moment and give me your opinion on this.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10 (First Public Beta Release

Postby Leftos on Thu May 03, 2012 8:29 am

Finally, after 9 days (or about 100 hours) of hard work, I can finally release the first public beta of the new NBA Stats Tracker. Sure, NBA 2K12 compatibility is the one thing you're most waiting for and it's not here yet, but you can try out the rest of the features so we can get the tool as stable and good as possible when 2K12 compatibility lands in its full glory.

The full changelog since v0.8 is as follows:
  • Change: The program now uses SQLite 3 databases instead of the custom binary format
  • Change: Massive UI overhaul, more details below
  • Added: Team Overview screen; all statistics can be limited to a specific timeframe if the required box scores are available
    • Overview: View and edit your team's stats; limit them to a timeframe and see your opponents' stats against you during that time
    • Split Stats: See how a team's performing when winning or losing, at home or away, during the regular season or the playoffs, as well as its monthly progress
    • Player Stats: See an overview of the stats of all the team's players
    • Box Scores: View any team's box scores in an easy to search table
    • Head-To-Head: Compare your team to any other team; compare stats against the league, as well as each other
    • Yearly Report: Compare the team's averages over multiple seasons
  • Added: Player Overview screen
    • Overview: View and edit a player's stats and other info
    • Split Stats: Player performance on wins and losses, home and away, season and playoffs, monthly progress, as well as on each team they played (before/after trade)
    • Box Scores: View all box scores that this player is in
    • Head-To-Head: Compare any two players in their games against the league, as well as against each other
  • Added: League Overview screen
    • Team Stats: Similar to the 2K Team Stats table, a full overview of the league team averages in a sortable table
    • Playoff Stats: As above, but limited to teams in the playoffs
    • League Leaders: See the leading players in the league and their averages (uses NBA rules on whether a player is eligible for inclusion)
    • Player Stats: All players, all stats, no rules
    • Box Scores: An overview of all box scores saved around the league
  • Added: Box Scores can now be edited after the initial creation
  • Added: Box Scores now require a Season number as well as the date the game took place; you can also differentiate between regular season and playoff games for the split stats
  • Added: Double-clicking on a team, player or box-score in any table in the tool takes you to the respective screen for further analysis and edits
  • Added: Tool now keeps track of stats over multiple seasons; Team Stats, Playoff Stats, Player Stats and Box Scores are all preserved between seasons, and you can switch to any season's stats easily

Still to come
  • Full NBA 2K12 compatibility, courtesy of Vlad Zola Jr.
  • Metric Stats (Team Overview, League Overview)
  • Best Performers in Team Overview
  • Best Performers Head-To-Head in Team Overview
  • Scouting Reports for nearly every screen in NST
  • Customisable League Leaders rules
  • Mobile app for Windows Phone 7 with cloud syncing, to have your stats and scouting reports on the go

As always, don't hesitate to give me your suggestions and bug reports.

Thanks for all your support.


UPDATE: Great news. I've found a way that will allow you to copy ANY of the tool's tables (in Team/Player/League Overview & Box Scores) WITH the column headers. That way you can easily create a spreadsheet out of the data, save it to CSV or any format, and include it in your Association blogs. Then, you can easily present your Association's Box Scores, Stats/Averages/Rankings, Split Stats, Head-To-Head comparisons, everything.

I think I've just made your life that much more easier, Association bloggers. ;) :D


UPDATE 2: If you previously followed the beta download link for the New NST, you were led to an older nightly. The link is now fixed to point to the v0.10 installer. Make sure you're downloading "[Leftos] NBA Stats Tracker 0.10.exe".
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.1

Postby Leftos on Fri May 04, 2012 6:32 am

v0.10.1 beta is released!

The changes:
  • All the tables in the tool (Team/Player/League Overview & Box Scores) support copying to the clipboard; when you do, the table's column names (headers) are included as well.

    Box Scores in particular, have a special Copy button in their window, which copies both Player (if any) & Team Stats to the clipboard.

    The resulting text is in Tab-Separated Values format, supported by Excel and many other spreadsheet editors for pasting into.

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

v0.10.1.2 beta is released!

The changes:
  • Various improvements and fixes in the Box Score dialog regarding stat calculation as well as copying to clipboard.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.1.2

Postby aguifs on Fri May 04, 2012 8:41 am

So fast! :bowdown:
aguifs
 
Posts: 209
Joined: Fri Aug 31, 2007 7:26 am

Re: [Tool] NBA Stats Tracker 0.10.1.2

Postby Leftos on Fri May 04, 2012 10:07 am

A piece of warning:
The tool, although in public beta, is not in its final form, and its database structure may change, meaning databases you create with the current version may not work with later versions. When I decide my work is done and the tool goes final, you won't have to worry about any of this, but until then, don't put too much work into your databases. :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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.1.2

Postby albidnis on Fri May 04, 2012 11:55 pm

Wow I hadn't been around for a while. This is awesome stuff. Going to try it out right now..
albidnis
 
Posts: 231
Joined: Tue Jan 27, 2009 7:54 am

Re: [Tool] NBA Stats Tracker 0.10.1.2

Postby Leftos on Sat May 05, 2012 12:00 am

Well, I think I'll be stopping development until the after the Spring semester exams (exam schedule is out), so I'd love your bug reports and feature suggestions until then.

The only point at which I'll pause my studying for the exams to continue development is when Vlad finishes with the Team Stats decoding. I'll work on making NST completely 2K12 compatible in cooperation with REditor, and then pause again. The rest of the to-do list (Metric Stats, Best Performers, Scouting Reports for other tables, Mobile app) will have to wait until the Summer.

Again, please do try the tool and give me your feedback. I'd really appreciate it.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.1.2

Postby albidnis on Sat May 05, 2012 12:25 am

Are these the steps I need to follow to try it out. I don't manually import boxscores:

1. Create a new database, or load the one you used previously for your 2K12 save
2. Import your 2K12 save stats right before the game you're going to play starts
3. Save the database
4. Play the game, let it end, let it save your association
5. Go back to the tool, open the database you saved in 3 if you closed it.
6. Click update with box score, enter the box score, click OK.
7. Click on save to 2k12 save.
8. Click on Save Team Stats in the tool's main window so that you keep your box score saved in the database.
9. Reload your save in NBA 2K12.
10. You're done.

Thanks...
albidnis
 
Posts: 231
Joined: Tue Jan 27, 2009 7:54 am

Re: [Tool] NBA Stats Tracker 0.10.1.2

Postby Leftos on Sat May 05, 2012 12:55 am

Well, to try it out you can do either of the following after creating a new database.
- Add Teams & their Players yourself. Not concurrently though, add teams, save, add players, save. You can then either edit the stats directly (via the overview screens) or update them using Box Scores.
- Download the real NBA Team Stats. It is a start, and I will implement downloading player & playoff stats as well later on.
- Import stats from your 2K12 save. You'll have to find out which (if any) Mode is compatible with your save so that the Team Stats match up with those in-game; if not, some teams may have another team's stats, for the reasons I explain here. This problem, as I've said many times, will soon be over, as soon as Vlad decodes Team Stats, and the tool will be able to then import both Team AND Player Stats from any 2K12 save.

It's important that until full 2K12 compatibility gets done, you DO NOT export stats to your save that haven't been previously imported from the same Association or Career, or you could corrupt your save.

It's in the Disclaimer but I'll write it here again. ALWAYS KEEP BACKUPS OF YOUR SAVES.



albidnis, I just noticed that you were the first one to come up with the idea to Export to CSV, so you may be thrilled to know that as I've said a few posts above, EVERY SINGLE TABLE in the tool can be copied along with the table headers by just selecting the rows you want or the whole table, pressing Ctrl-C, and pasting in your favorite spreadsheet (or not) editor. Try it out. I'd love your feedback.


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

v0.10.2 released!
- Once again, database structure has been updated to add Minutes to Team Stats and Box Scores (they'll be required for Metric Stats). I hope that this is the last change to the database structure, although I can't promise anything.
- Various other minor fixes.

As I said, further feature development is paused until the Summer. I'll only work on bug-fixes and 2K12 compatibility.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.2

Postby jrlocke on Sun May 06, 2012 1:08 am

Great work Leftos. Glad to see you are progressing so fast. Hopefully with Vlad's help we can get the tool we have been waiting for!
2013 is the year?
Thanks to Vl@d, Leftos and all the other patchers for their hard work.
User avatar
jrlocke
 
Posts: 376
Joined: Sat Sep 28, 2002 6:42 am
Location: Cleveland, Ohio

Re: [Tool] NBA Stats Tracker 0.10.2

Postby Leftos on Sun May 06, 2012 10:47 am

Metric stats are slowly being implemented. All the calculating functions are in, and I've already got them in Team Overview, just need to add them to League Overview and Box Scores.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.3

Postby Leftos on Mon May 07, 2012 3:04 am

v0.10.3 is now released!

  • Fix: Tool wouldn't save the 2K12 Compatibility Mode correctly, leading to mixed Team Stats in many occasions
  • Added: Metric Stats have been implemented; there's a table for them in Team Overview, League Overview & Box Scores
  • Added: Each team now has "Opponents" stats as well, which can either be directly edited or accumulated via box score updating
  • Added: You can now import Box Scores from other database files
  • Improvement: Various performance improvements
  • Fix: Nearly all BPG and TPG columns were reversed; that is, BPG were in the TPG column, and TPG in the BPG one
  • Fix: Various other minor bug fixes

Image

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

v0.10.4.1 released!

  • Added: Best Performers tab added to Box Score window, showing you the key stats from the key players of the game
  • Added: FTR (Free Throw Rate) metric added to Metric Stats
  • Added: New edition of NBA Stats Tracker gets its own release channel, with update notifications

Image

Note that the above screen normally shows 2 players per team beside the Player of the Game, as long as you have entered enough box scores for the players.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.4.1

Postby koberulz on Mon May 07, 2012 3:33 pm

Code: Select all
---------------------------

---------------------------
SQLite error

near "Keefe": syntax error

Query: insert into Players( ID, LastName, FirstName, Position1, Position2, isActive, isInjured, TeamFin, TeamSta, GP, GS, MINS, PTS, FGM, FGA, TPM, TPA, FTM, FTA, OREB, DREB, STL, TOS, BLK, AST, FOUL, isAllStar, isNBAChampion) values( '107', 'O'Keefe', 'Pat', '', '', 'True', 'False', 'Glenelg Tigers', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'False', 'False');
---------------------------
OK   
---------------------------


Got that after adding a bunch of players, then trying to save.

Also, when pressing the tab key at the end of the last line on the player creation screen, it adds a new line but highlights the 'OK' button, instead of the 'Last Name' cell of the new line.

EDIT: I only get that error trying 'save all seasons', 'save current season' worked fine.

Another thing: I'm trying to input NBL stats from 1979, which include only FGA, FGM, FTA, FTM, PTS, and FLS. It won't let me do this, insisting I check to make sure all information is entered.
User avatar
koberulz
Everything I say is false.
 
Posts: 4283
Joined: Sat Jun 04, 2005 11:46 pm
Location: Perth, Australia

Re: [Tool] NBA Stats Tracker 0.10.4.1

Postby Leftos on Mon May 07, 2012 11:57 pm

koberulz wrote:
Code: Select all
---------------------------

---------------------------
SQLite error

near "Keefe": syntax error

Query: insert into Players( ID, LastName, FirstName, Position1, Position2, isActive, isInjured, TeamFin, TeamSta, GP, GS, MINS, PTS, FGM, FGA, TPM, TPA, FTM, FTA, OREB, DREB, STL, TOS, BLK, AST, FOUL, isAllStar, isNBAChampion) values( '107', 'O'Keefe', 'Pat', '', '', 'True', 'False', 'Glenelg Tigers', '', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'False', 'False');
---------------------------
OK   
---------------------------


Got that after adding a bunch of players, then trying to save.


The clue is in the player's last name. It has an apostrophe in it that the program doesn't parse correctly, and the database thinks that the last name is just "O" and there's some other weird stuff after it, which causes it to throw an error. It's fixed in the next version that'll be released, and the only way you're going to get that error again is if you use a double-quote in the name. :P

Also, when pressing the tab key at the end of the last line on the player creation screen, it adds a new line but highlights the 'OK' button, instead of the 'Last Name' cell of the new line.


Also fixed. Some weird default behavior that I needed to hack around.

EDIT: I only get that error trying 'save all seasons', 'save current season' worked fine.


Nothing to do with it. The problem was in that player. Note that when you're adding players, you're only adding them to the current season, not all seasons. Players created in one season will carry on to the next when started via the Miscellanous > Start New Season. But any players created in Season 2 aren't automatically created in Season 1 or Season 3 (if it already exists) as well. I may add an option to add them to all seasons, besides the current one.

Another thing: I'm trying to input NBL stats from 1979, which include only FGA, FGM, FTA, FTM, PTS, and FLS. It won't let me do this, insisting I check to make sure all information is entered.


That's a fail-safe that is currently needed, or else I have to do a lot of different scenario handling which I don't want to go through. Just enter 0 in all other columns.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.4.2

Postby Leftos on Tue May 08, 2012 1:47 am

v0.10.4.2 released!

  • Improvement: Best Peformers calculations now take player position into account; should be able to pick the most significant stats better
  • Fix: Players with apostrophes in their name (such as O'Neal) caused SQlite errors and weren't being added to the database
  • Fix: Tool wouldn't make any checks in the Add Players window, meaning you could add players with no names, no position, no team.
  • Fix: When in a table that automatically inserts a new row after the current one, pressing Tab while in the last column of the last row would make the table lose focus; it now correctly moves to the first column of the newly inserted row
  • Removal: Removed Defensive Rebounds from the Best Performers screen as a possibly significant stat; Offensive and Total Rebounds remain
  • Change: Best Performers tab in Box Scores window now shows Player of the Game plus 3 best players from each team
  • Fix: Fixed bug (probably since v0.10.3) that broke the Export to 2K12 Save feature
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.4.1

Postby koberulz on Tue May 08, 2012 1:57 am

Leftos wrote:The clue is in the player's last name. It has an apostrophe in it that the program doesn't parse correctly, and the database thinks that the last name is just "O" and there's some other weird stuff after it, which causes it to throw an error. It's fixed in the next version that'll be released, and the only way you're going to get that error again is if you use a double-quote in the name.

Yeah, I figured that'd be the reason. I just really don't get why 'save all seasons' produced an error and 'save current season' didn't, given that I only have the one season.

That's a fail-safe that is currently needed, or else I have to do a lot of different scenario handling which I don't want to go through. Just enter 0 in all other columns.

All columns default to zero, so it's not as though any of them are blank. I'd suggest it's either that everyone is listed as playing 0 minutes or none of the 'starter' boxes are checked.

Is there a way to rename a team between seasons, as would be done in the case of the Hornets moving from Charlotte to New Orleans, or the Bullets becoming the Wizards? There were quite a few such changes in the NBL (Coburg became North Melbourne, Nunawading became Eastside, St. Kilda became Westside Melbourne, Westate became Perth, the Suns became the Crocodiles, etc.). What happens if a team drops out of the league (happened to the NBL over 30 times)? And how does it handle game length? The NBA has 48 minute games, but most other leagues around the world play 40. The NBL, because nobody can make up their damn mind, played 40 mins from '79-'82 then 48 mins until 2009, at which point they reverted back to 40 mins.

EDIT: Is having players with no position going to break anything? I don't have that info, so I can only add it for players I know, or who played in a season for which I have game programmes that list that information.
User avatar
koberulz
Everything I say is false.
 
Posts: 4283
Joined: Sat Jun 04, 2005 11:46 pm
Location: Perth, Australia

Re: [Tool] NBA Stats Tracker 0.10.4.2

Postby Leftos on Tue May 08, 2012 3:05 am

Q: All columns default to zero, so it's not as though any of them are blank. I'd suggest it's either that everyone is listed as playing 0 minutes or none of the 'starter' boxes are checked.
A: I'll need to know what information you're entering so that I can debug and see which fail-safe is firing. Get some screenshots on postimage.org so that I can take a look.

Q: Is there a way to rename a team between seasons, as would be done in the case of the Hornets moving from Charlotte to New Orleans, or the Bullets becoming the Wizards?
A: Currently no, there isn't. And unfortunately I hadn't thought of that, so there's some code that relies on Team Name rather than Team ID. I'll get that on my to-do list before the final release, but don't expect it to be implemented soon. For city name changes, just don't enter the city as part of the name. :P I know it's not a solution, but I can't work on that right now.

Q: What happens if a team drops out of the league (happened to the NBL over 30 times)?
A: There's no way to remove a team right now, although I'm guessing there should be. Again, this gets on my to-do list along with team renaming, but won't be done soon. Actually, I'm guessing that the program in its current state can't really handle a team being in one season but not in another. It's going to require a lot of work, and I won't work on anything like that before the summer of even the fall (have to pass the last 9 subjects for my degree, and also get NST to a good presentable state until September, as it is my thesis).

Q: And how does it handle game length? The NBA has 48 minute games, but most other leagues around the world play 40. The NBL, because nobody can make up their damn mind, played 40 mins from '79-'82 then 48 mins until 2009, at which point they reverted back to 40 mins.
A: Shouldn't matter. Minutes only matter on a per-game basis, and are accumulated. There's no need for teams to have the same minutes played (nor can it be so, some overtimes are due to happen), not in the same season, neither between seasons.

Q: Is having players with no position going to break anything? I don't have that info, so I can only add it for players I know, or who played in a season for which I have game programmes that list that information.
A: Actually, right now it does. Position is used in player rankings, best performers calculations, and is displayed along with the player's name in some cases. I might make it optional in the future, and hide the according information for that player. Right now, if it doesn't matter, just pick any position.

Thanks for all your suggestions, questions and feedback. Keep them coming.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.5

Postby Leftos on Tue May 08, 2012 9:06 am

v0.10.5 has been released!

  • Improvement: Download NBA Stats now downloads both team and player stats (season & playoffs)
  • Fix: Fixed a recent bug which caused Team Overview to show incorrect playoff stats for all teams
  • Improvement: A lot of performance improvements to the League Overview window

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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.4.2

Postby koberulz on Tue May 08, 2012 2:57 pm

Leftos wrote:Q: All columns default to zero, so it's not as though any of them are blank. I'd suggest it's either that everyone is listed as playing 0 minutes or none of the 'starter' boxes are checked.
A: I'll need to know what information you're entering so that I can debug and see which fail-safe is firing. Get some screenshots on postimage.org so that I can take a look.

All I'm filling out is FGA, FGM, FTA, FTM, and FLS. Points is filled in automatically based on field goal numbers.
User avatar
koberulz
Everything I say is false.
 
Posts: 4283
Joined: Sat Jun 04, 2005 11:46 pm
Location: Perth, Australia

Re: [Tool] NBA Stats Tracker 0.10.5

Postby Leftos on Tue May 08, 2012 7:48 pm

Yes, but are you filling the rest of the team-total box scores? Those are empty, not 0 by default. I can't know what fail-safe is firing if you don't show me a screenshot of your input.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.5

Postby koberulz on Wed May 09, 2012 12:37 am

They're calculated as zero if you press 'calculate', minutes is the only one that remains blank. So yeah, I'd guess it's the minutes.

Add Players appears to be broken. I started a new database, with the aim of tracking the NBL's stats from 2011 to this year and then next year once the season starts (as the league has been at the same number of teams since 2011 and will remain at that number next season, it's the best I can really do given the team handling), and after spending half an hour or so adding players, none of them showed up in box score entry, or player overview, or anything. I just got empty drop-down boxes.

Speaking of players: are they handled by name anywhere? If they are, two players with the same name could cause problems.
User avatar
koberulz
Everything I say is false.
 
Posts: 4283
Joined: Sat Jun 04, 2005 11:46 pm
Location: Perth, Australia

Re: [Tool] NBA Stats Tracker 0.10.5

Postby Leftos on Wed May 09, 2012 2:44 am

Q: They're calculated as zero if you press 'calculate', minutes is the only one that remains blank. So yeah, I'd guess it's the minutes.
A: Yeah, there's no easy way to calculate minutes. Even 2K12 ignores the total minutes it calculates in the box score (which is incorrect because it doesn't take seconds into account so the end result isn't TMINS=5*4*QuarterLength, as it should be, but something close to that. In any case, the minutes you should enter isn't 5*4*QuarterLength, but rather AmountOfQuarters*QuarterLength, or AmountOfQuarters*QuarterLength+AmountOfOvertimes*OvertimeLength to be exact (not *5 in any case; so for the NBA it would be 48 instead of 240). Also, I should note that the tool doesn't handle games that ended in draw, if any basketball leagues have that rule. I've only coded it to handle cases where one of the teams has won.

Q: Add Players doesn't work.
A: Did you save the database IMMEDIATELLY after adding them? I should have the tool do that, it's not obvious that changes could be lost if you don't save immediatelly. -sigh- I've just been doing so much development these days that I don't think of doing even the most obvious things. I'm sorry for the time you lost, and once again thanks for helping me debug NST.
EDIT: Yeah, for some reason it's broken in 0.10.5. I'll fix it and make sure the database saves right after adding the players.

Q: Are players handled by name?
No, Players are by ID, players with the exact same characteristics shouldn't conflict in any of the tool's features.

And I think I know a way to be able to allow the users to rename teams without going through too many changes in the code. I'll just keep the current Name field as is and let the
code work off of that, but I'll add a "Display Name" field in the Teams database table, so that it ignores the name in the tool's controls and shows you the display name instead. So current code shouldn't break at all, and you'll be able to rename a team freely. It'll take very few lines of code to implement something like this.

Adding and removing teams completely however needs more work.

EDIT: Scratch that, I just thought of a way to be able to add and remove teams with not much additional work. Also, teams will be able to "return" to the league, and have their previous stats intact. For example, a team will be able to have played in Season 2 and 3, but not in Season 4, and then be back in 5 and still have its stats from 2 and 3.


On a final note, I'm really sorry for your frustration and all the problems you've encountered. I have to say I appreciate your trying to use the tool in a real-life scenario, which gives me much needed feedback on what I've done right and what wrong, as well as letting me know of any bugs. The tool is in beta so it's not really prime and ready for everyday use, but I hope that you'll stick through to the end, and hopefully with all your feedback the end result will be a lot better than I originally planned. Thanks again.

P.S. Not to play devil's advocate, but the tool has a big "BETA" in its title, so you shouldn't spend half an hour on a single feature without testing it for a bit to know that it works as you expect. So next time, before adding 1000 players altogether, try adding 2-3 at first, and seeing if it works properly. That way you won't have wasted half an hour. :P Again, I know it's not your fault that the tool doesn't work as you expect it to, but while in beta, development is still being made, decisions change and bugs may come up at any time. I appreciate your help in debugging, but I don't want you to get all too frustrated by planning on using a feature for so long only to find out it didn't work. Test it with a small sample first, always. :)
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.5.1

Postby Leftos on Wed May 09, 2012 3:16 am

v0.10.5.1 has been released!

  • Fix: Fixed a recent bug that broke the Add Players function
  • Improvement: Database is saved immediately after adding players

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

v0.10.6 has been released!

  • Added: Teams can be enabled and disabled per season (Main Window > Miscellaneous > Enable/Disable Teams For This Season); this can be used to relegate a team for a season and then have them back in another season with their other years' stats intact
  • Added: Tool is now able to handle teams that are in one season but not another; either weren't created in it or are disabled
  • Added: Teams can be renamed (Team Overview > Change Team Name)

IMPORTANT NOTE: Databases created prior to this version will have some Team-related fields missing. To make sure you can continue using them, open them with NST and then IMMEDIATELY click on File > Save Database As. It's important that you click on Save Database As under the File menu, NOT Save Current Season or Save All Seasons. If you do this, your databases will be compatible with the new version.

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

v0.10.6.1 released!

  • Fix: File > Save Database As wouldn't work when the destination file was the same as the currently open
  • Improvement: Big performance increase in saving operations; save, save as and start new season should now be much faster
  • Fix: League Overview displayed Team Stats in the Playoff Stats tab in some cases
  • Fix: When adding players to separate seasons, they could end up having the same IDs and sharing stats between seasons; now each player added, no matter the season, gets their own unique ID
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.5

Postby koberulz on Wed May 09, 2012 1:18 pm

Leftos wrote:P.S. Not to play devil's advocate, but the tool has a big "BETA" in its title, so you shouldn't spend half an hour on a single feature without testing it for a bit to know that it works as you expect.

It did. You just broke it later :P

EDIT: Is it possible to add a sixth position, "No Position", and assign that to players who aren't assigned a position? That should cover basically everything position is used for.
User avatar
koberulz
Everything I say is false.
 
Posts: 4283
Joined: Sat Jun 04, 2005 11:46 pm
Location: Perth, Australia

Re: [Tool] NBA Stats Tracker 0.10.6.1

Postby Leftos on Wed May 09, 2012 8:36 pm

Good idea. I'll do that. How are the rest of the features you asked for working out so far?
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.6.1

Postby koberulz on Wed May 09, 2012 10:17 pm

Haven't had a chance to play with it since you fixed Add Players as yet.
User avatar
koberulz
Everything I say is false.
 
Posts: 4283
Joined: Sat Jun 04, 2005 11:46 pm
Location: Perth, Australia

Re: [Tool] NBA Stats Tracker 0.10.6.2

Postby Leftos on Thu May 10, 2012 12:38 am

v0.10.6.2 released!

  • Improvement: Players are allowed to have no position set; that allows you to keep stats for leagues and years for which no such info is available
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.6.2

Postby koberulz on Thu May 10, 2012 1:11 am

What happens to players on deactivated teams? Do I need to inactivate those players, then the team, if I want the players to be accessible?

How do I view previous box scores, for either current or past seasons?

I started a season, created three teams, added two box scores (one v three, two v three), started a new season, deactivated team three, added team C, then went to add a box score and got a crash:
Code: Select all
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.Collections.Generic.SortedDictionary`2.get_Item(TKey key)
   at NBA_Stats_Tracker.NSTHelper.CalculateAllMetrics(Dictionary`2& playerStats, TeamStats[] teamStats, TeamStats[] oppStats, SortedDictionary`2 TeamOrder, Boolean leagueOv) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\StatsTracker.cs:line 60
   at NBA_Stats_Tracker.MainWindow.GetPlayersFromDatabase(String file, TeamStats[] _tst, TeamStats[] _tstopp, SortedDictionary`2 _TeamOrder, Int32 curSeason, Int32 maxSeason) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\MainWindow.xaml.cs:line 1446
   at NBA_Stats_Tracker.MainWindow.LoadSeason(String file, TeamStats[]& _tst, TeamStats[]& _tstopp, Dictionary`2& pst, SortedDictionary`2& _TeamOrder, PlayoffTree& _pt, IList`1& _bshist, Boolean updateCombo, Int32 _curSeason, Boolean doNotLoadBoxScores) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\MainWindow.xaml.cs:line 1315
   at NBA_Stats_Tracker.boxScoreW.cmbSeasonNum_SelectionChanged(Object sender, SelectionChangedEventArgs e) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\boxScoreW.xaml.cs:line 869
   at System.Windows.Controls.SelectionChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.Controls.ComboBox.OnSelectionChanged(SelectionChangedEventArgs e)
   at System.Windows.Controls.Primitives.Selector.InvokeSelectionChanged(List`1 unselectedItems, List`1 selectedItems)
   at System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
   at System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(Object item, Boolean assumeInItemsCollection)
   at System.Windows.Controls.Primitives.Selector.OnSelectedItemChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at NBA_Stats_Tracker.boxScoreW.PopulateSeasonCombo() in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\boxScoreW.xaml.cs:line 251
   at NBA_Stats_Tracker.boxScoreW.prepareWindow(Mode _curmode) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\boxScoreW.xaml.cs:line 146
   at NBA_Stats_Tracker.boxScoreW..ctor(Mode _curmode) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\boxScoreW.xaml.cs:line 49
   at NBA_Stats_Tracker.MainWindow.btnLoadUpdate_Click(Object sender, RoutedEventArgs e) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\MainWindow.xaml.cs:line 1460
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

None



EDIT by Leftos: Surround error logs in code tags, so that the page isn't flooded.
User avatar
koberulz
Everything I say is false.
 
Posts: 4283
Joined: Sat Jun 04, 2005 11:46 pm
Location: Perth, Australia

Re: [Tool] NBA Stats Tracker 0.10.6.2

Postby Leftos on Thu May 10, 2012 1:37 am

What happens to players on deactivated teams? Do I need to inactivate those players, then the team, if I want the players to be accessible?

If you want to be able to find these players and add them to other teams, then yes, the players need to be added to the inactive roster, and then the team disabled. Disabled teams by default keep their players, in order to still have them when they return or if you disable them by mistake.

How do I view previous box scores, for either current or past seasons?

Well... 4 ways, I guess.
- Team Overview > Select Team > Box Scores
- Player Overview > Select Team > Select Player > Box Scores
- League Overview > Box Scores
- History > Box Scores

I started a season, created three teams, added two box scores (one v three, two v three), started a new season, deactivated team three, added team C, then went to add a box score and got a crash:

I can't reproduce this. Mind sending me your database file? Upload it to Mediafire or something and give me the link so I can use it and get the crash, see what's going wrong.
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: 4913
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

PreviousNext

Return to NBA 2K12 Releases & Previews

Who is online

Users browsing this forum: No registered users and 2 guests