[Tool] NBA Stats Tracker

Release or preview patches for NBA 2K12.

Re: [Tool] NBA Stats Tracker 0.10.6.2

Postby koberulz on Thu May 10, 2012 2:13 am

Righto. I went into History>Box Scores, but it seemed to only pull up the Add Box Score dialog.

http://www.mediafire.com/?liw03ax31xab9zv

It pops up the error even upon opening the database now. Speaking of which, is there a way to have the program remember the location the open/save dialogs were last in? As is, I have to navigate to my database file every time.
User avatar
koberulz
Everything I say is false.
 
Posts: 4330
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 2:47 am

Problem is that for some reason Team C doesn't exist in Season 2, or any season for that matter. The player you created in it does exist though. Something went wrong there. Let me check more.
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: 5114
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 2:51 am

Yeah, I did notice that immediately after adding it, but figured it was because I'd forgotten to add players to the team, added a player, and that seems to have broken it.
User avatar
koberulz
Everything I say is false.
 
Posts: 4330
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 2:54 am

Maybe you forgot to save right after adding the team? I've made the tool save immediately afterwards now, so that such problems don't occur. I'm fixing some other stuff and will be back with a new version for you to try.

koberulz wrote:Righto. I went into History>Box Scores, but it seemed to only pull up the Add Box Score dialog.

The list was in a combo-box in the bottom of the window, where you could choose which box score to show. The functionality has been removed in the new version because it was causing some problems. Now you can view box scores in either of the 3 Overview windows.

Double-click on any box score and it will take you to the Box Score window with all the information filled out.
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.6.2

Postby Leftos on Thu May 10, 2012 3:01 am

v0.10.6.3 released!

  • Improvement: Database is saved immediately after adding teams
  • Improvement: Player Stats, Metric Stats and League Leaders in League Overview now feature row headers that have the ranking of each row
  • Fix: Many fixes around the League Overview and Box Score windows regarding teams being renamed and/or hidden
  • Removal: Since switching between different box scores inside the Box Score window caused too many problems, the functionality is removed; it has been more than replaced by the Box Scores tabs in Team, Player & League Overview
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.6.3

Postby AreaOfEffect on Fri May 11, 2012 1:35 pm

Hey i really like the scouting reports for every team. I always read them and i began to wonder if simulation stats of other teams matter to what could happen when you play against them? I mean does the simulation stats reflect what could happen in the actual game?
AreaOfEffect
 
Posts: 264
Joined: Thu Jan 22, 2009 2:00 pm

Re: [Tool] NBA Stats Tracker 0.10.6.3

Postby koberulz on Fri May 11, 2012 3:29 pm

Trying to view the box score for a deactivated team causes a crash:
Code: Select all
System.Exception: Requested team that is hidden: Team Three
   at NBA_Stats_Tracker.boxScoreW.GetDisplayNameFromTeam(String p) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\boxScoreW.xaml.cs:line 89
   at NBA_Stats_Tracker.boxScoreW.cbHistory_SelectionChanged(Object sender, SelectionChangedEventArgs e) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\boxScoreW.xaml.cs:line 889
   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.OnSelectedIndexChanged(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 NBA_Stats_Tracker.leagueOverviewW.dgvBoxScores_MouseDoubleClick(Object sender, MouseButtonEventArgs e) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\leagueOverviewW.xaml.cs:line 611
   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.RaiseEvent(RoutedEventArgs e)
   at System.Windows.Controls.Control.OnMouseDoubleClick(MouseButtonEventArgs e)
   at System.Windows.Controls.Control.HandleDoubleClick(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.OnMouseDownThunk(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: Also, on the 'top players' screen, the content appears to be longer than the area it displays in:
Image

Also, could you make the "Current season: x/y" display on the main window a dropdown to allow selecting a season? The only way to do it at the moment is to go into one of the overview screens and change it there. I thought Team C had disappeared on me again, but it turned out I'd ended up in season one without noticing.
Last edited by koberulz on Fri May 11, 2012 8:11 pm, edited 1 time in total.
User avatar
koberulz
Everything I say is false.
 
Posts: 4330
Joined: Sat Jun 04, 2005 11:46 pm
Location: Perth, Australia

Re: [Tool] NBA Stats Tracker 0.10.6.3

Postby Leftos on Fri May 11, 2012 7:19 pm

Don't make me edit your post again, man. I told you to put error logs in code tags! :P

The first is a case I just didn't worry about. I thought people would be deactivating teams before they started inputting box scores. I mean a team doesn't just drop off the league in the middle of it. But I shall handle this more gracefully.

About the best performers, okay, sure, would you prefer 4 stats for everyone else or a slightly larger window? Works fine for me in Windows XP, but I guess Windows 7 handles WPF controls differently.

And yes, I'll make the Main Window have a season drop-down as well.
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.6.3

Postby koberulz on Fri May 11, 2012 8:17 pm

Leftos wrote:Don't make me edit your post again, man. I told you to put error logs in code tags! :P

I had no idea you'd even edited my post until you mentioned it here.

The first is a case I just didn't worry about. I thought people would be deactivating teams before they started inputting box scores. I mean a team doesn't just drop off the league in the middle of it. But I shall handle this more gracefully.

It's not about inputting them, it's about viewing them. To take a real-life example:
The Brisbane Bullets debuted in 1979, the first year of the NBL.
In 2008, they collapsed, and no longer had the money to continue.
If I were to enter all the stats up to 2008, then deactivate the Bullets due to their no longer being in the league, I then wouldn't be able to view the box scores for any games in which the Bullets participated, which I might want to do for any number of reasons.
User avatar
koberulz
Everything I say is false.
 
Posts: 4330
Joined: Sat Jun 04, 2005 11:46 pm
Location: Perth, Australia

Re: [Tool] NBA Stats Tracker 0.10.6.3

Postby Leftos on Fri May 11, 2012 8:41 pm

AreaOfEffect wrote:Hey i really like the scouting reports for every team. I always read them and i began to wonder if simulation stats of other teams matter to what could happen when you play against them? I mean does the simulation stats reflect what could happen in the actual game?

Scouting reports are pretty basic right now. Only thing they take into consideration is the team's ranking in the league in each stat. So, even if the whole league is terrible at 3PT shooting, if a team is the best of the terrible, it'll still get high praise from the Scouting Report on that stat. Still, I don't think that getting the NBA's averages as a rule will help me here, because different leagues tend to have different averages, and thus different opinions on what's great and what's not.

Now, more specifically to your question. The answer is, maybe. Is it a good measure of whether a team is dangerous from the 3PT line if they've been scoring well all season? Yes. Does that mean they'll be dangerous in their next game too? Most possibly, but not definitely. This is what applies to real-life, and if you ask me, the Scouting Reports have been pretty accurate on judging my 2K12 opponents for me. So I'm guessing that yeah, simulation averages CAN give you a pretty good summary of what you're going to encounter. Unless your sliders are completely messed-up, in which one of the team's gets an unfair advantage or that the player abilities end up being ignored. But with good sliders and a good roster, I'm pretty sure the Scouting Report is a good, if not absolutely accurate, report most of the times. But do remember, upsets happen, bad days happen, extremely lucky days happen, so take the info with a grain of salt, just like a real coach or GM would. :)


koberulz wrote:
The first is a case I just didn't worry about. I thought people would be deactivating teams before they started inputting box scores. I mean a team doesn't just drop off the league in the middle of it. But I shall handle this more gracefully.

It's not about inputting them, it's about viewing them. To take a real-life example:
The Brisbane Bullets debuted in 1979, the first year of the NBL.
In 2008, they collapsed, and no longer had the money to continue.
If I were to enter all the stats up to 2008, then deactivate the Bullets due to their no longer being in the league, I then wouldn't be able to view the box scores for any games in which the Bullets participated, which I might want to do for any number of reasons.


That wasn't my intention. It's a bug. You SHOULD be able to see box scores of teams enabled in the current season but disabled in another one if the box score is from a year the team was enabled. I've fixed that for the next release. What you shouldn't do is disable teams for a season after you've inputted box scores for them that particular season.

To put it in simple words, if Team A has played Season 1 and Season 2 but is disabled in Season 3, Season 1 and 2 box scores SHOULD be available, as well as all other stats. The fact that the tool crashed was a bug that got fixed and the new release will be up shortly.
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.6.3

Postby Leftos on Sat May 12, 2012 1:44 am

v0.10.6.4 released!

  • Addition: Current Season can now be changed from the Main Window as well
  • Addition: Box Scores can now be deleted (Miscellaneous > Delete Box Scores...)
  • Fix: Fixed bug that in some cases didn't allow users to view box scores of teams disabled in some seasons but enabled in others
  • Fix: The tool would crash whenever you tried to view a box score that included a team that's disabled for that season; now it shows a message informing you of the fact
  • Improvement: When disabling teams, you're warned if you're about to disable a team that has box scores for that season
  • Fix: Various minor fixes around the program


koberulz, you may need to immediately use Save As after first loading your database because some of your players' positions were set to null instead of " " that's the special "No Position". That should correct any of those faulty positions. Again, thanks for all your efforts. Your help has been invaluable.

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

v0.10.6.5 released!

  • Fix: Fixes a recent bug which messed up 3P stats

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

v0.10.7 released!

  • Addition: Added Advanced Player Search

Image

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

v0.10.7.2 released!

  • Fix: Advanced Player Search options Active, Injured, All Star and Champion now have three settings: true, false and none; setting any of them to none will search for both players that are for example injured and not injured
  • Fixed bugs regarding inactive player handling
  • Fix: Fixed recent bug that made all displayed team names blank when importing stats from a 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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.2

Postby koberulz on Sat May 12, 2012 10:19 pm

The Player of the Game is listed as playing for the wrong team. The other top performers are correctly designated home/away.

EDIT: Is it possible to edit the date of a game? I've tried to, and it'll let me select a new date when viewing the box score, but it doesn't change the date it's listed as.
User avatar
koberulz
Everything I say is false.
 
Posts: 4330
Joined: Sat Jun 04, 2005 11:46 pm
Location: Perth, Australia

Re: [Tool] NBA Stats Tracker 0.10.7.2

Postby Leftos on Sun May 13, 2012 1:46 am

What would I do without you... :P

v0.10.7.3 released!
- Fix: Fixed some wrong averages and rankings in the Team Overview screen
- Fix: Fixed wrong team name for the Player of the Game if they were from the home team
- Fix: Fixed recent bug that broke editing & saving a Box Score you had previously inserted
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.2

Postby koberulz on Sun May 13, 2012 3:27 am

I'm not sure what the hell is going on anymore, but I just entered another box score, after editing the dates of the prior three, and:
It doesn't show up in Team, Player or League Overview.
Despite this, Team and League Overview both show the two teams involved as having the correct number of games played.

Additionally:
In League Overview>League Leaders and Team Overview>Player Stats, everyone's PPG is either Infinity or NaN.
In League Overview>Player Stats, Player Overview>Overview, and Team Overview>Player Stats, everyone's Games Played is zero (which is probably what's causing the infinite per-game numbers).

EDIT: If I enter a player as having played zero minutes, does he still count as having played? That could be causing the 0 games played issue, since I don't have minutes numbers for the first seven or eight years.
User avatar
koberulz
Everything I say is false.
 
Posts: 4330
Joined: Sat Jun 04, 2005 11:46 pm
Location: Perth, Australia

Re: [Tool] NBA Stats Tracker 0.10.7.2

Postby Leftos on Sun May 13, 2012 4:13 am

I'm not sure what the hell is going on anymore, but I just entered another box score, after editing the dates of the prior three, and:
It doesn't show up in Team, Player or League Overview.
Despite this, Team and League Overview both show the two teams involved as having the correct number of games played.


I can't reproduce this. I just entered a new box score using the Update With Box Score button and everything went well. If you want, give me your database and tell me what I have to do to reproduce this.

Additionally:
In League Overview>League Leaders and Team Overview>Player Stats, everyone's PPG is either Infinity or NaN.
In League Overview>Player Stats, Player Overview>Overview, and Team Overview>Player Stats, everyone's Games Played is zero (which is probably what's causing the infinite per-game numbers).

EDIT: If I enter a player as having played zero minutes, does he still count as having played? That could be causing the 0 games played issue, since I don't have minutes numbers for the first seven or eight years.


Players must have some minutes in their box score for their GP count to go up (such things will be clear when I create the manual for the tool). I should handle this better, putting up a warning if a player has 0 minutes but has some other stat not 0. The reason this happens is to let users put a player in the box-score and note them as injured or out for the game (will be important for Players' Scouting Reports in the future, which shall note how many games the player has missed with injury, and how many games the player was "Did Not Play - Coach's Decision". I need to be able to distinguish between them, that's why this happens. Only the players completely out of the rotation for the game (the max 3 out of 15 in the NBA) should not be entered in the box score at all.

Sorry for the confusion.

P.S. I've corrected a bug that crashes the tool when it tries to calculate the metrics for a player that is inactive. It's going to be in the next release once we track down what's going wrong with the box score problem you mentioned.
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.5

Postby Leftos on Mon May 14, 2012 8:51 pm

v0.10.7.5 released!

v0.10.7.5
- Fix: If after saving an edited box score you tried to update the database with a new one, the new one would overwrite the just edited box score instead of creating a new entry for itself
- Improvement: Improved saving speed related to player box scores
- Fix: Some box scores would not get imported correctly when using the Import Box Scores feature

v0.10.7.4
- Fix: Metric Stats tables in Team & League Overview wouldn't copy to clipboard correctly
- Fix: Fixed a crash when the tool tried to calculate the metrics of a player that is currently inactive
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.5

Postby LGFuad on Thu May 17, 2012 10:30 am

I downloaded the latest version of the tool (0.10.7.5). When I hover over the buttons in the main menu, they look like this:

Image

Is this a gfx thing gone bad, or am I seeing an error?
LGFuad
 
Posts: 4
Joined: Thu May 17, 2012 10:22 am

Re: [Tool] NBA Stats Tracker 0.10.7.5

Postby koberulz on Fri May 18, 2012 11:27 pm

I got this trying to activate a deactivated player:
Code: Select all
System.Exception: Team not found: - Inactive -
   at NBA_Stats_Tracker.Windows.playerOverviewW.GetCurTeamFromDisplayName(String p) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\Windows\playerOverviewW.xaml.cs:line 120
   at NBA_Stats_Tracker.Windows.playerOverviewW.CreatePlayerStatsFromCurrent() in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\Windows\playerOverviewW.xaml.cs:line 936
   at NBA_Stats_Tracker.Windows.playerOverviewW.btnSavePlayer_Click(Object sender, RoutedEventArgs e) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\Windows\playerOverviewW.xaml.cs:line 908
   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

User avatar
koberulz
Everything I say is false.
 
Posts: 4330
Joined: Sat Jun 04, 2005 11:46 pm
Location: Perth, Australia

Re: [Tool] NBA Stats Tracker 0.10.7.5

Postby Leftos on Sat May 19, 2012 7:52 am

Keep the reports coming people. I'm on vacation right now until Sunday, but when I return to my work PC, I'll be able to check and fix all the issues you mention. Until then, keep replying/editing your posts with as many issues as you can find, so I can release a new version Sunday night.
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.5

Postby Leftos on Mon May 21, 2012 1:02 am

LGFuad wrote:I downloaded the latest version of the tool (0.10.7.5). When I hover over the buttons in the main menu, they look like this:

Is this a gfx thing gone bad, or am I seeing an error?

First time I've ever seen anything like that. Your computer shouldn't be weirding up that much. Try reinstalling/repairing .NET Framework 4.

Also, fixed the crash when trying to activate a deactivated player for the next release. Any other bugs I should know about?
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.5

Postby LGFuad on Mon May 21, 2012 10:25 am

Leftos wrote:
LGFuad wrote:I downloaded the latest version of the tool (0.10.7.5). When I hover over the buttons in the main menu, they look like this:

Is this a gfx thing gone bad, or am I seeing an error?

First time I've ever seen anything like that. Your computer shouldn't be weirding up that much. Try reinstalling/repairing .NET Framework 4.

Also, fixed the crash when trying to activate a deactivated player for the next release. Any other bugs I should know about?


Reinstalled .NET Framework 4, fixed the problem. Gracias.
LGFuad
 
Posts: 4
Joined: Thu May 17, 2012 10:22 am

Re: [Tool] NBA Stats Tracker 0.10.7.5

Postby koberulz on Mon May 21, 2012 2:02 pm

Leftos wrote:
LGFuad wrote:I downloaded the latest version of the tool (0.10.7.5). When I hover over the buttons in the main menu, they look like this:

Is this a gfx thing gone bad, or am I seeing an error?

First time I've ever seen anything like that. Your computer shouldn't be weirding up that much. Try reinstalling/repairing .NET Framework 4.

Also, fixed the crash when trying to activate a deactivated player for the next release. Any other bugs I should know about?

As I said before, FTM/FGA is screwed up. If FTM is less than FGA, it displays as zero, eg "11/20 (0.000)" instead of "11/20 (0.550)".
User avatar
koberulz
Everything I say is false.
 
Posts: 4330
Joined: Sat Jun 04, 2005 11:46 pm
Location: Perth, Australia

Re: [Tool] NBA Stats Tracker 0.10.7.5

Postby Leftos on Mon May 21, 2012 9:30 pm

v0.10.7.6 released!

- Fix: Tool would crash when reactivating an inactive player
- Fix: FTM/FGA percentage wouldn't show correctly in Best Performers tab in the Box Score window
- Addition: Now you can reset all player/team stats for a season (Miscellaneous menu)
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.6

Postby koberulz on Tue May 22, 2012 12:21 am

Can you sort players alphabetically, by either first or last name, rather than numerically by player ID (which is what I assume you're doing)? I'm part of the way through sorting out player movements between season 1 and season 2, and the lists are already getting really difficult to look through.
User avatar
koberulz
Everything I say is false.
 
Posts: 4330
Joined: Sat Jun 04, 2005 11:46 pm
Location: Perth, Australia

Re: [Tool] NBA Stats Tracker 0.10.7.6

Postby Leftos on Tue May 22, 2012 12:29 am

You mean the upper-right list box in the Player Overview screen?

EDIT: I just changed this to fill the lists with the players ordered by last name. Should I also have their last name show up first? (Like "Prince, Tayshaun (SF)" rather than "Tayshaun Prince (SF)") The way the names show up determines whether you're searching first by first name or last name when typing with the keyboard. So if the list has focus, would you rather type "Tay" for Tayshaun, or "Pri" for Prince to quickly get to the player you're looking for?
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.6

Postby koberulz on Tue May 22, 2012 2:56 am

Leftos wrote:You mean the upper-right list box in the Player Overview screen?

That, and the drop-down when adding/editing a box score.

I just changed this to fill the lists with the players ordered by last name. Should I also have their last name show up first? (Like "Prince, Tayshaun (SF)" rather than "Tayshaun Prince (SF)") The way the names show up determines whether you're searching first by first name or last name when typing with the keyboard. So if the list has focus, would you rather type "Tay" for Tayshaun, or "Pri" for Prince to quickly get to the player you're looking for?

If you're ordering by last name, the last name showing up first is probably best.
User avatar
koberulz
Everything I say is false.
 
Posts: 4330
Joined: Sat Jun 04, 2005 11:46 pm
Location: Perth, Australia

Re: [Tool] NBA Stats Tracker 0.10.7.6

Postby Leftos on Tue May 22, 2012 3:18 am

v0.10.7.7 released!

- Addition: Check For Updates on start can now be disabled (Options Menu)
- Addition: You can manually check for updates after the tool starts (About window)
- Improvement: Players in the list-boxes in the Player Overview & Box Score windows are now sorted by last name for easier discovery
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.7

Postby LGFuad on Wed May 23, 2012 12:10 am

I get the following error when I try to get real NBA stats.

Code: Select all
System.ArgumentNullException: Value cannot be null.
Parameter name: key
   at System.Collections.Generic.SortedDictionary`2.get_Item(TKey key)
   at NBA_Stats_Tracker.Data.SQLiteIO.SaveTeamsToDatabase(String file, TeamStats[] tstToSave, TeamStats[] tstoppToSave, Int32 season, Int32 maxSeason) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\Data\NST.Data.SQLiteIO.cs:line 245
   at NBA_Stats_Tracker.Data.SQLiteIO.saveSeasonToDatabase(String file, TeamStats[] tstToSave, TeamStats[] tstoppToSave, Dictionary`2 pstToSave, Int32 season, Int32 maxSeason, Boolean doNotSaveBoxScores) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\Data\NST.Data.SQLiteIO.cs:line 61
   at NBA_Stats_Tracker.Windows.MainWindow.<>c__DisplayClassd.<mnuFileGetRealStats_Click>b__c(Object , RunWorkerCompletedEventArgs ) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\Windows\MainWindow.xaml.cs:line 1112
   at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
   at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)
   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

LGFuad
 
Posts: 4
Joined: Thu May 17, 2012 10:22 am

Re: [Tool] NBA Stats Tracker 0.10.7.7

Postby Leftos on Wed May 23, 2012 1:22 am

Yeah, I found and fixed that problem. Basketball-Reference.com changed their layout the tiniest bit, but that broke the downloading procedure. Unfortunately, I'll have to keep up with changes made to Basketball-Reference.com until they provide all the info we need in ready-to-download CSV files.

It'll be in the next release, tonight. I'll wait and see if another bug pops up and needs fixing until then, and I'll release.
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.7

Postby Leftos on Wed May 23, 2012 4:23 am

v0.10.7.8 released!

- Improvement: Parallelized some code to improve performance
- Fix: Fixed various bugs in League Overview regarding inactive players and some tabs not updating correctly
- Fix: Adjusted Download NBA Stats to changes in Basketball-Reference.com's format
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby AreaOfEffect on Sun Jun 17, 2012 12:19 am

any update on thi sone?
AreaOfEffect
 
Posts: 264
Joined: Thu Jan 22, 2009 2:00 pm

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby Leftos on Sun Jun 17, 2012 1:54 am

Not until my exams end, mid-July. Starting then and until September (hopefully) you should see the final touches to the first stable version, including Scouting Reports for nearly all the tool's screens.
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby suirad on Mon Jul 02, 2012 8:24 am

ok as promised here is my error. i cant create a database it gives me an error message. all i want to do is be able to play association and update my stats.

Code: Select all
System.Exception: Unable to load DLL 'SQLite.Interop.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Query: select Name from Teams;
   at SQLite_Database.SQLiteDatabase.GetDataTable(String sql) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\SQLiteDatabase\SQLiteDatabase.cs:line 91
   at NBA_Stats_Tracker.Data.SQLiteIO.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\Data\NST.Data.SQLiteIO.cs:line 879
   at NBA_Stats_Tracker.Data.SQLiteIO.LoadSeason() in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\Data\NST.Data.SQLiteIO.cs:line 851
   at NBA_Stats_Tracker.Windows.MainWindow.cmbSeasonNum_SelectionChanged(Object sender, SelectionChangedEventArgs e) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\Windows\MainWindow.xaml.cs:line 1810
   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.Windows.MainWindow.PopulateSeasonCombo() in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\Windows\MainWindow.xaml.cs:line 1245
   at NBA_Stats_Tracker.Windows.MainWindow.txtFile_TextChanged(Object sender, TextChangedEventArgs e) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\Windows\MainWindow.xaml.cs:line 1234
   at System.Windows.Controls.TextChangedEventArgs.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.Primitives.TextBoxBase.OnTextChanged(TextChangedEventArgs e)
   at System.Windows.Controls.Primitives.TextBoxBase.OnTextContainerChanged(Object sender, TextContainerChangedEventArgs e)
   at System.Windows.Controls.TextBox.OnTextContainerChanged(Object sender, TextContainerChangedEventArgs e)
   at System.Windows.Documents.TextContainerChangedEventHandler.Invoke(Object sender, TextContainerChangedEventArgs e)
   at System.Windows.Documents.TextContainer.EndChange(Boolean skipEvents)
   at System.Windows.Documents.TextContainer.System.Windows.Documents.ITextContainer.EndChange(Boolean skipEvents)
   at System.Windows.Documents.TextRangeBase.EndChange(ITextRange thisRange, Boolean disableScroll, Boolean skipEvents)
   at System.Windows.Documents.TextRange.System.Windows.Documents.ITextRange.EndChange(Boolean disableScroll, Boolean skipEvents)
   at System.Windows.Documents.TextRange.ChangeBlock.System.IDisposable.Dispose()
   at System.Windows.Controls.TextBox.OnTextPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.Controls.TextBox.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.Windows.MainWindow.mnuFileNew_Click(Object sender, RoutedEventArgs e) in C:\Users\Leftos\Documents\Visual Studio 2010\Projects\NBA Stats Tracker\NBA Stats Tracker\Windows\MainWindow.xaml.cs:line 1547
   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.MenuItem.InvokeClickAfterRender(Object arg)
   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: Use [code] tags next time you post an error.
suirad
 
Posts: 964
Joined: Thu Aug 24, 2006 8:10 am

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby Leftos on Mon Jul 02, 2012 8:31 am

There seems to be something wrong with your installation. The file "SQLite.Interop.dll" should be in your installation folder. Download and install again, and check your installation folder for the file. It's "%PROGRAMFILES%\NBA Stats Tracker" by default.
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby suirad on Mon Jul 02, 2012 8:50 am

Leftos wrote:There seems to be something wrong with your installation. The file "SQLite.Interop.dll" should be in your installation folder. Download and install again, and check your installation folder for the file. It's "%PROGRAMFILES%\NBA Stats Tracker" by default.

ok will do
suirad
 
Posts: 964
Joined: Thu Aug 24, 2006 8:10 am

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby suirad on Mon Jul 02, 2012 8:56 am

still gives me the same problem
suirad
 
Posts: 964
Joined: Thu Aug 24, 2006 8:10 am

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby Leftos on Mon Jul 02, 2012 9:02 am

Well, apparently there's something going wrong with your installation, don't know why. Nobody else seems to have this problem. Try installing to a different folder, and check the folder you've installed into if all the files are there.

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

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby suirad on Mon Jul 02, 2012 9:19 am

Still no luck. Im baffled!!!!!
suirad
 
Posts: 964
Joined: Thu Aug 24, 2006 8:10 am

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby suirad on Tue Jul 03, 2012 3:13 am

For what its worth version 2.0 works for me. For some reason the versions that have the create your own database feature give me those errors
suirad
 
Posts: 964
Joined: Thu Aug 24, 2006 8:10 am

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby john26 on Tue Jul 03, 2012 10:49 am

Hi, entering the box score and other stats is done manually right? If so, I was thinking of maybe using OCR to automate the process.
john26
 
Posts: 1019
Joined: Sun Sep 14, 2008 2:09 pm

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby Leftos on Tue Jul 03, 2012 11:02 am

OCR? You won't have any luck with it. Just enter the Team Stats if you don't have the time to enter the Player Stats, and be done with it.

Unless Vlad or someone else finds some way to grab the box scores from the save or the EXE's memory, we're stuck with entering them manually. Since Box Scores ARE saved in the save, I guess it's just up to whether Vlad feels up to decoding them, if he finds the time.

What NST will soon be able to do with the help of REditor, hopefully, is grab all team & player stats correctly from any save, any season, and be able to edit it accordingly. This will finally make NST compatible with any NBA 2K12 save that REditor supports.

Box Scores, however, is another story. And as far as I'm concerned, it's not in Vlad's plans to decode them. Not yet, at least. So you'll have to enter them manually.

As I said, you don't have to enter Player Stats. Team Stats should suffice. What you're missing out on by not entering Player Stats, is getting Split Stats and otherwise timeframed ones via NST. You'll have to do with whatever stats 2K12 offers.

I only type in the Team Stats out of each Box Score for my Association. I either note them down in a notebook and type them back into NST, or switch NBA 2K12 to Windowed right before the game ends, so that I can have it open along with NST, and then switch it back to full screen. Shouldn't take more than 2 minutes.
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby john26 on Tue Jul 03, 2012 11:05 am

ok, this is what i got though using just 3 very short lines of code

Image

Image

ready to feed to a csv or text file
john26
 
Posts: 1019
Joined: Sun Sep 14, 2008 2:09 pm

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby Leftos on Tue Jul 03, 2012 11:15 am

Well, importing a box score from CSV/TSV could help for real leagues as well, if the associaton or a fansite provides the box scores in tables (just like the real NBA.com does), so let me just add that to my ToDo list for when I start work on NST again, mid-July onwards.

Thanks for the suggestion.

By the way, mind helping the others who'd be interested in that OCR "trick", by giving us a short tutorial or something? Are you using a particular tool's API? Should be helpful.
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby john26 on Tue Jul 03, 2012 11:24 am

I'll try working on this though see how far I can go, maybe if I am able to go as far as perfecting the algorithm for a box score image so that all characters are correct and save it to a text file, it can be fed through your program with one click. This is because when I take one part of the image such as:

Image

I get

Image

EDIT: Regarding the OCR thing, I am using python. All the outputs are displayed on the shell.I just run the following (it's now 5 lines as I cleaned it a bit)

Code: Select all
from pytesser import *
image = Image.open('1.tif')
a = image_to_string(image)
b = a.strip()
print b


gotta have the pytesser package for python tho, plus save everything in the same directory (based on the code). The name of the image is 1.tif. Probably could use other formats but this is one used by my game screenshot software.

Some google searching could yield to adding another 3 lines of code which will save the text in a txt file.
john26
 
Posts: 1019
Joined: Sun Sep 14, 2008 2:09 pm

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby Leftos on Tue Jul 03, 2012 11:25 am

Can't the OCR program be taught to translate certain shapes and images to certain characters? So if you tell it once that 2.AN. is a W., won't it know from then on? Or is the method you're using not that interactive?

Being a programmer myself, I'm really interested in how exactly you're doing this. If there's something I can do to help, let me know.

Otherwise, I'll be waiting to hear more on whether you can perfect the OCR. Even if you don't manage to perfect it, correcting a few faults in the OCR result by hand and then pasting into NST would still take much less time than actually entering everything on your own. So even if you only achieve a near-perfect result, I guess we could live with it. :P

EDIT: Just saw your edit; I had no idea Python made OCR THAT easy and straight-forward. I've learned and used Python as part of my Computer Engineering courses, but never tried OCR with it. Is there a way we could feed Pytesser some corrections and have it learn from them, kind of like OCR suites do? You've got me curious, I'll have to look into it tomorrow and help you with this, unless you manage to perfect it by then.

Sorry I can't stay for now, it's 4.30am here, and I'm sitting an exam tomorrow. Good luck, and I'll try and help after the exam tomorrow.

EDIT 2: A quick Google search led me to a StackOverflow question which recommends Tesseract as an even better (and still free) OCR solution. See if you can get better results with it, or I'll test it tomorrow.

Here's the relevant question: http://stackoverflow.com/questions/5925 ... inaccurate
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby john26 on Tue Jul 03, 2012 11:38 am

Leftos wrote:Is there a way we could feed Pytesser some corrections and have it learn from them, kind of like OCR suites do?


You don't need the corrections. What my last post was trying to say was, that if we dissect the image properly so that we get the ff image:

Image

we get a correct reading. However, if we take a whole image, like:

Image

we don't get a correct reading. (some characters get messed up) So maybe i can take an image, create an algorithm so its cropped properly for 12 players, then it will be cleaned and fed to a text file. Then can be integrated to your program. See ff image to get an idea

Image

EDIT: I'll take a look at the other OCR package too.
john26
 
Posts: 1019
Joined: Sun Sep 14, 2008 2:09 pm

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby Leftos on Tue Jul 03, 2012 11:42 am

Wow, well, yeah, that sounds great. The only issue I find about that is that whatever image we feed your dissection tool will need to be a certain size or cropped already, because if my screenshot is 1920x1080, and yours is 1024x768, how will your tool now how far from the left edge and how far from the top edge to start cropping? Try a few resolutions, see if you can get a steady distance from the bottom edge for the Y axis and from either the left or right edge (or both) for the X axis.

I'd try Tesseract with the full box-score image before going through with creating the dissection tool, maybe you'll get even better results and won't have to go through all the trouble.
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby john26 on Tue Jul 03, 2012 11:47 am

Yeah I might send you something tomorrow or next day
john26
 
Posts: 1019
Joined: Sun Sep 14, 2008 2:09 pm

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby Leftos on Tue Jul 03, 2012 11:49 am

john26 wrote:Yeah I might send you something tomorrow or next day

Great! It's always nice to have someone that's that willing to help, especially with a big project like this. See what you get, I might do a few tests myself if I find the time.
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: 5114
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] NBA Stats Tracker 0.10.7.8

Postby icikle21 on Thu Jul 05, 2012 9:04 am

Leftos,

Great job with the tool. It fixes that annoying Team Stats bug.

However, after importing into my save I have this other problem now. Team stats and Players stats are perfect. What happens, though, is that at the League Leaders screen for Metric Stats, my players are shown as DNQs; so are the players for the team I played in my previous game - in other words, the box score that I imported, those two teams. However, when I look at Player Metric stats for each team, those are fine. So, not sure why the League Leaders tab would be showing them as DNQs then. Any idea?

Thanks


icikle21
icikle21
 
Posts: 21
Joined: Wed Jun 29, 2011 1:27 pm

PreviousNext

Return to NBA 2K12 Releases & Previews

Who is online

Users browsing this forum: No registered users and 5 guests