Homebrew RELEASE NX Activity Log - View (slightly) more detailed play statistics!

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,788
Trophies
1
Age
44
XP
6,520
Country
Germany
  • Like
Reactions: tallbl0nde

veekay

Well-Known Member
Member
Joined
Jan 30, 2008
Messages
227
Trophies
1
XP
806
Country
United States
Love the new update.

Now I just have to figure out the easiest way to remove all of the games I tried once and then didn't end up liking. Don't need 14 pages.
 
  • Like
Reactions: tallbl0nde

tallbl0nde

Well-Known Member
OP
Member
Joined
Jan 11, 2019
Messages
147
Trophies
0
Age
24
XP
1,538
Country
Australia
Can I backup my game playing time log and restore after initializing?
Not with this sorry. Now that I've been looking at the file that stores this information it looks possible, but I probably won't look into it (or at least not for a while).

Love the new update.

Now I just have to figure out the easiest way to remove all of the games I tried once and then didn't end up liking. Don't need 14 pages.
I could probably add some sort of exclude/blacklist at some point but having that many games should be less of hassle with a GUI.
 

pLaYeR^^

Doctor Switch
Member
Joined
Sep 18, 2014
Messages
3,151
Trophies
1
Age
27
Location
Austria
XP
3,883
Country
Austria
Very very nice tool. Since I don't have a Nintendo account linked on my emuMMC, I was never able to see the playtime of my games. A GUI version would be nice too :)
 
  • Like
Reactions: tallbl0nde

axiomjunglist

Active Member
Newcomer
Joined
Jan 7, 2019
Messages
37
Trophies
0
Age
45
XP
393
Country
United States
Nice app! I'm curious if using a particular app to load hbmenu counts towards its "playing time history" or only when the game is actively being played does it log the time. Anyone know?
 

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,788
Trophies
1
Age
44
XP
6,520
Country
Germany
Nice app! I'm curious if using a particular app to load hbmenu counts towards its "playing time history" or only when the game is actively being played does it log the time. Anyone know?
You mean holding R on a game like Zelda?
If you have to choose your Switch user before you get into hbmenu then yes, it is counted towards that game.
 
  • Like
Reactions: axiomjunglist

tallbl0nde

Well-Known Member
OP
Member
Joined
Jan 11, 2019
Messages
147
Trophies
0
Age
24
XP
1,538
Country
Australia
Is it planned/possible in the future to track unofficial NSPs like RetroArch? It shows up as 0 hours for me.
I've been working on getting it to read from PlayEvent.dat (the file which stores all this information) instead of using the available libnx calls and it appears the switch does keep track of how long you spend in unofficial NSPs, it just doesn't show up under the user page (and in the current version of my app) as they don't require you to select a user. So I could show the play time, it just would currently be for all users of the switch. If the player select request is added as @lordelan has requested then I could split the play time up per user.
 
  • Like
Reactions: lordelan

slickochet

Well-Known Member
Newcomer
Joined
Jan 3, 2010
Messages
81
Trophies
1
XP
509
Country
I've been working on getting it to read from PlayEvent.dat (the file which stores all this information) instead of using the available libnx calls and it appears the switch does keep track of how long you spend in unofficial NSPs, it just doesn't show up under the user page (and in the current version of my app) as they don't require you to select a user. So I could show the play time, it just would currently be for all users of the switch. If the player select request is added as @lordelan has requested then I could split the play time up per user.

Great news thanks for the reply!

And thanks again for making this app in the first place! It's already awesome and way better than Nintendo's very poor time tracking.
 
  • Like
Reactions: tallbl0nde

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,788
Trophies
1
Age
44
XP
6,520
Country
Germany
I've been working on getting it to read from PlayEvent.dat (the file which stores all this information) instead of using the available libnx calls and it appears the switch does keep track of how long you spend in unofficial NSPs, it just doesn't show up under the user page (and in the current version of my app) as they don't require you to select a user. So I could show the play time, it just would currently be for all users of the switch. If the player select request is added as @lordelan has requested then I could split the play time up per user.
Very nice!
 

axiomjunglist

Active Member
Newcomer
Joined
Jan 7, 2019
Messages
37
Trophies
0
Age
45
XP
393
Country
United States
You mean holding R on a game like Zelda?
If you have to choose your Switch user before you get into hbmenu then yes, it is counted towards that game.

Weird. Maybe it does this for you? I tested this out a few times today but using hbmenu redirect doesn't seem to be logging time towards any game I use it on whether I have the user selection screen skipped or not. Not that I'm complaining at all, I was kinda hoping this might be the case.
 

Csmrcc

Well-Known Member
Member
Joined
Sep 13, 2018
Messages
412
Trophies
0
Age
37
XP
905
Country
Spain
Hi, very interesting and new Homebrew, no one has focused on this as far as I know, I have a little question about some curious situations.
I explain it with an example: I played 100 hours Zelda with Pepe user.
Then I used kefir to get a Nintendo account link user on the banned switch (that would erase the Pepe account), let's name this account user Pepe-pro. I made a backup and restore the savegame for Zelda from Pepe to Pepe-pro using Checkpoint. Everything fine, I can continue to play Zelda for 1 more hour. Now, the Homebrew shows 1 hour played in total in Pepe-pro (user Pepe no longer exists to be selected), instead of 101 hours. Maybe because there is no record of playing as Pepe-pro?
The curious thing is that when in the switch menu I order the games by time played, Zelda appears as the most played game (for the 101 hours).
Is there something I missed? Can it be "fixed" to show on Pepe-pro the 101 hours? Maybe can be added an option in the Homebrew to see game times not only on one user but in total (and 101 hours would appear there)?
Thank you and sorry for the long text, I wanted to explain it with detail
 
Last edited by Csmrcc,

tallbl0nde

Well-Known Member
OP
Member
Joined
Jan 11, 2019
Messages
147
Trophies
0
Age
24
XP
1,538
Country
Australia
Hi, very interesting and new Homebrew, no one has focused on this as far as I know, I have a little question about some curious situations.
I explain it with an example: I played 100 hours Zelda with Pepe user.
Then I used kefir to get a Nintendo account link user on the banned switch (that would erase the Pepe account), let's name this account user Pepe-pro. I made a backup and restore the savegame for Zelda from Pepe to Pepe-pro using Checkpoint. Everything fine, I can continue to play Zelda for 1 more hour. Now, the Homebrew shows 1 hour played in total in Pepe-pro (user Pepe no longer exists to be selected), instead of 101 hours. Maybe because there is no record of playing as Pepe-pro?
The curious thing is that when in the switch menu I order the games by time played, Zelda appears as the most played game (for the 101 hours).
Is there something I missed? Can it be "fixed" to show on Pepe-pro the 101 hours? Maybe can be added an option in the Homebrew to see game times not only on one user but in total (and 101 hours would appear there)?
Thank you and sorry for the long text, I wanted to explain it with detail

I'd imagine this is what's happening:
At the moment I get a list of all users present on the system. I then read the statistics for the selected user (which is separate to save files). So, if the user has been deleted, the method I'm using doesn't know that their data still exists (which based on what you've said I'm assuming it's still sitting somewhere). I'm sure there's a way to find this data so I'll keep this in mind for further down the road.
 
  • Like
Reactions: Csmrcc

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,871
Trophies
2
XP
29,163
Country
United Kingdom
I'd imagine this is what's happening:
At the moment I get a list of all users present on the system. I then read the statistics for the selected user (which is separate to save files). So, if the user has been deleted, the method I'm using doesn't know that their data still exists (which based on what you've said I'm assuming it's still sitting somewhere). I'm sure there's a way to find this data so I'll keep this in mind for further down the road.
I see it's using user ID numbers. Do they seem to be in order starting from 0 or similar, or are they arbitrary? If the former, you could loop and check each number to see if any data is returned, either stopping at the highest still existing user number or keep going until you haven't had any hits for a while.
 
  • Like
Reactions: lordelan and Csmrcc

tallbl0nde

Well-Known Member
OP
Member
Joined
Jan 11, 2019
Messages
147
Trophies
0
Age
24
XP
1,538
Country
Australia
I see it's using user ID numbers. Do they seem to be in order starting from 0 or similar, or are they arbitrary? If the former, you could loop and check each number to see if any data is returned, either stopping at the highest still existing user number or keep going until you haven't had any hits for a while.
That's a great idea but yeah I don't think they have any proper order... I'm pretty sure it's random (at least from what I've seen in PlayEvent.dat).
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: https://www.keepretro.com/products/miyoo-a30