tallbl0nde / NX-Activity-Log

Homebrew application for the Nintendo Switch which displays play activity with more accuracy
MIT License
403 stars 26 forks source link

Update for FW 15.0 #61

Open tatundria opened 2 years ago

tatundria commented 2 years ago

Titles are showing a ? with no image after updating Switch FW to 15.0. Is it possible to update this app to make it compatible with the new FW?

Brandon98SE commented 1 year ago

Hello I have the same issue.

Issue:

Software Versions:

ForMyCats commented 1 year ago

I'm having this issue too. I really hope it gets fixed because I would be so lost without this app!

tallbl0nde commented 1 year ago

I'm not too deep into homebrew anymore (haven't booted my switch for months), but having a quick glance at libnx shows that the API the app uses was changed in 15.0.0. So it may be a case that I (or someone) needs to use a new API, or wait until libnx adds the relevant API. I'll try to keep an eye on things.

shae23 commented 1 year ago

Same issue, but since the developer explained the situation, I guess it's a moot point. I'd just like to say it was a niftly feature to have, so if you ever get around to fixing it, that would be awesome.

m4st3rP commented 1 year ago

This seems to be the only invocation of the removed function that causes this problem: https://github.com/tallbl0nde/NX-Activity-Log/blob/09b55e72152525187d1eba15e952f39c41a6ca31/Application/source/utils/NX.cpp#L154

profucius commented 1 year ago

@tallbl0nde I love this homebrew app. I actually depend upon it heavily. I and it seems others would very much appreciate your effort in fixing this issue, for games/time to show correctly in the app, and to be exportable to JSON properly again. If you could find the time for this, please and thank you!

pixeltester commented 1 year ago

I exported and imported a json on 15.0.0 for a factory reset, without noticing before it was too late. Is it likely I'll be able to correct the data later? If I check manually in NX-Activity-Log the correct data still seems to be there at least.

nx_actlog

m4st3rP commented 1 year ago

Here's an example on how to get app playstats on 15.0.0: https://github.com/switchbrew/switch-examples/blob/master/applet/app-playstats/source/main.c

canope-25 commented 1 year ago

Here's an example on how to get app playstats on 15.0.0: https://github.com/switchbrew/switch-examples/blob/master/applet/app-playstats/source/main.c

Hi,

check the content , Yellow8 only removed code ( using the deprecated functions for HOS 15.0.0) . So , basically , this didn’t solve the issue . He simply removed the output :

https://github.com/switchbrew/switch-examples/commit/73960d720c2376fd0eea0edb72a8d56b59db05cd

hotpotatoes11 commented 1 year ago

I have the same issue too.. :/ I really miss being able to see my playactivity.. Would have a mini-celebration if it was able to come back.. :)

This is the error I get.

image

m4st3rP commented 1 year ago

Here's an example on how to get app playstats on 15.0.0: https://github.com/switchbrew/switch-examples/blob/master/applet/app-playstats/source/main.c

Hi,

check the content , Yellow8 only removed code ( using the deprecated functions for HOS 15.0.0) . So , basically , this didn’t solve the issue . He simply removed the output :

switchbrew/switch-examples@73960d7

It shows how to get playstats for a title nontheless.

monstrosities commented 1 year ago

Here's an example on how to get app playstats on 15.0.0: https://github.com/switchbrew/switch-examples/blob/master/applet/app-playstats/source/main.c

Hi, check the content , Yellow8 only removed code ( using the deprecated functions for HOS 15.0.0) . So , basically , this didn’t solve the issue . He simply removed the output : switchbrew/switch-examples@73960d7

It shows how to get playstats for a title nontheless.

I believe you're correct on this one, there won't be an alternative in libnx but rather the other APIs will have to be used on 15.0.0 and above.

There were similar breakages in temperature and wlan on 14.0.0 and 15.0.0 where the same happened and homebrew had to work around those.

zdm65477730 commented 1 year ago

See my PR, just fixed the issue: https://github.com/tallbl0nde/NX-Activity-Log/pull/66

rashevskyv commented 1 year ago

Works perfectly. Thanx a lot.

Built with @zdm65477730's changes switch.zip

shae23 commented 1 year ago

Works perfectly. Thanx a lot.

Built with @zdm65477730's changes switch.zip

Thank you for the compiled file, it works perfectly.

tallbl0nde commented 1 year ago

Seeing as @zdm65477730 has fixed the problem, I'll close this issue. A release will be up shortly with their changes :)

tallbl0nde commented 1 year ago

Can someone check if this version works alright? It has @zdm65477730's fix and a couple behind the scenes changes. I'd test it myself however my Switch isn't exactly ready for that at the moment.

If it works fine I'll bump the version and make the release. switch.zip

tatundria commented 1 year ago

Can someone check if this version works alright? It has @zdm65477730's fix and a couple behind the scenes changes. I'd test it myself however my Switch isn't exactly ready for that at the moment.

If it works fine I'll bump the version and make the release. switch.zip

This version and the previous one from @zdm65477730 both give me error after selecting my user. Even if I delete the config files, I get that error.

tallbl0nde commented 1 year ago

What's the error?

shae23 commented 1 year ago

Can someone check if this version works alright? It has @zdm65477730's fix and a couple behind the scenes changes. I'd test it myself however my Switch isn't exactly ready for that at the moment.

If it works fine I'll bump the version and make the release. switch.zip

It works on my end.

tatundria commented 1 year ago

What's the error?

The error is "The software was closes because an error ocurred" after selecting my user. On the other side, Version 1.4.0 works but shows no game activity now

zdm65477730 commented 1 year ago

The APP built by me (the latest baseline on @tallblOnde) has been published to a game forum, and no feedback on failure has been received so far. @tatundria, how many user account you created? How many games you installed? Did you install any other sysmodules?

pixeltester commented 1 year ago

The new version works great for me and even better my data that I exported and imported on 15.0.0 looks fine again!

Thanks to @zdm65477730 and @tallbl0nde !

tatundria commented 1 year ago

ilt by me (the latest baseline on @tallblonde) has been published to a game forum, and no feedback on failure has been received so far. @tatundria, how many user account you created? How many games you installed? Did you install any other sysmodu

It works now. I deleted the previous import.json and no problem so far! Thank you!

canope-25 commented 1 year ago

Can someone check if this version works alright? It has @zdm65477730's fix and a couple behind the scenes changes. I'd test it myself however my Switch isn't exactly ready for that at the moment.

If it works fine I'll bump the version and make the release. switch.zip

Hi,

i also encountered crashes with this version . I will provide more elements when I will be back home . Usually the crash ( the Atmosphere one leading to full reboot ) append when trying to access the global statistics part . The accounts have hundreds of hours of playing time and thousands of sessions

canope-25 commented 1 year ago

Do you plan to update the playeventparser ? https://github.com/tallbl0nde/PlayEventParser/releases This can help since it generate logs ( not the case with nx activity log ). It’s quite strange , I don’t understand why but something is not ok, the entries of the games i bought after the 15.0.0 release are not reported ( the play time is visible in the chart but nothing about the game in the detail ). The standard NX Profil page report them .

hotpotatoes11 commented 1 year ago

Do you plan to update the playeventparser ? https://github.com/tallbl0nde/PlayEventParser/releases This can help since it generate logs ( not the case with nx activity log ). It’s quite strange , I don’t understand why but something is not ok, the entries of the games i bought after the 15.0.0 release are not reported ( the play time is visible in the chart but nothing about the game in the detail ). The standard NX Profil page report them .

I have the same issue. Some games are reported in the total playtime, however the data seems to be there as when I sort by most playtime on the standard nintendo 'All software', it seems to be correctly sorted when shown by 'sort by total game time'.

canope-25 commented 1 year ago

I also played with the refactored version of zelda3 (ALTTP) available on GitHub ( nro over applet and full memory mode ) with MSU deluxe audio. ( still have a genuine cardridge of the game !!! But the MSU part motivated me to play it again ). Maybe this can generate issues regarding the playing time ?

canope-25 commented 1 year ago

image

this is the content of the atmosphere log related to the crash.

The console crash with the following actions :

canope-25 commented 1 year ago

Update: The issue seems to be related to some kind of database corruption . I removed the cardridge from the console , deleted the update and all the data ( after backuping the save ) , rebooted the console and restaured all the elements . Activity logs are now ok .

image

this is a case for which the charts provide information related to the played time but nothing at the bottom and the total playtime at the top is at « 0 seconds »

Whaaooo commented 1 year ago

Hi, the version made by @zdm65477730 doesn't work well for me.

In All Activity, I can see 6 game titles out of the 100+ I have played on my Switch. The 6 games showing are consistent in the recent Activity section meaning that for some days I see no titles at all and for some other days, if I happened to play games from the 6 showing in All Activity, I will see those under my time stats.

For the games that do show, the time stats given look OK.

I also noticed that the total playtime in Recent Activity only accounts for the time played with those 6 games EVEN THOUGH that the graph is accurate.

AlbertoPetri commented 1 year ago

I've tested @tallbl0nde build and in my case is not working (AMS v1.4.0 and OFW 15.0.0.0)

I'm open to test new builds as necessary

canope-25 commented 1 year ago

Hi , Updated previous posts .

the crash still occur with HOS 15.0.1 ( released today by Nintendo )

regards

ForMyCats commented 1 year ago

Wanted to say that for me the build by @zdm65477730 that @tallbl0nde posted above works flawlessly and my initial impression is that it appears to be accurate for all my playtime. Thank you so much @zdm65477730

canope-25 commented 1 year ago

Wanted to say that for me the build by @zdm65477730 that @tallbl0nde posted above works flawlessly and my initial impression is that it appears to be accurate for all my playtime. Thank you so much @zdm65477730

Can you check the « all activity » menu and share a screenshot with us ? For us , this is working only for accounts with only a few hours of playing . Can you also check if the « title filtering » option in the settings is working ?

thank you

shae23 commented 1 year ago

Wanted to say that for me the build by @zdm65477730 that @tallbl0nde posted above works flawlessly and my initial impression is that it appears to be accurate for all my playtime. Thank you so much @zdm65477730

Can you check the « all activity » menu and share a screenshot with us ? For us , this is working only for accounts with only a few hours of playing . Can you also check if the « title filtering » option in the settings is working ?

thank you

So, that's my all activity. Running 15.0.1 at the moment.

2022110217194500-CCFA659F4857F96DDA29AFEDB2E166E6 2022110217195300-CCFA659F4857F96DDA29AFEDB2E166E6 2022110217200000-CCFA659F4857F96DDA29AFEDB2E166E6 2022110217200700-CCFA659F4857F96DDA29AFEDB2E166E6

shae23 commented 1 year ago

Wanted to say that for me the build by @zdm65477730 that @tallbl0nde posted above works flawlessly and my initial impression is that it appears to be accurate for all my playtime. Thank you so much @zdm65477730

Can you check the « all activity » menu and share a screenshot with us ? For us , this is working only for accounts with only a few hours of playing . Can you also check if the « title filtering » option in the settings is working ?

thank you

And that's it sorted by title. I'm not running I to any issues, but maybe I don't have enough playtime.

2022110217203400-CCFA659F4857F96DDA29AFEDB2E166E6 2022110217203900-CCFA659F4857F96DDA29AFEDB2E166E6

zdm65477730 commented 1 year ago

Wanted to say that for me the build by @zdm65477730 that @tallbl0nde posted above works flawlessly and my initial impression is that it appears to be accurate for all my playtime. Thank you so much @zdm65477730

Can you check the « all activity » menu and share a screenshot with us ? For us , this is working only for accounts with only a few hours of playing . Can you also check if the « title filtering » option in the settings is working ?

thank you

You can check your sysmodules/tesla overlay plugins enabled in your Switch since the Applet SW has a memory limitation. For example, the NX-Shell v4.0.0 can't run directly under Applet mode, it can be run under Application mode(press R and open a game you installed, then run the App).

The commit in my PR is just use a new libnx API to replace the old one. Please disable sysmodules in contents folder and disable the tesla overlay plugins and try again. BTW, you can also run it under application mode.

Peter-Fy commented 1 year ago

When I select Settings -> Hide Titles, the app crashes after a few seconds. I use the version made by @zdm65477730

shae23 commented 1 year ago

When I select Settings -> Hide Titles, the app crashes after a few seconds. I use the version made by @zdm65477730

I am able to hide titles just fine.

canope-25 commented 1 year ago

Wanted to say that for me the build by @zdm65477730 that @tallbl0nde posted above works flawlessly and my initial impression is that it appears to be accurate for all my playtime. Thank you so much @zdm65477730

Can you check the « all activity » menu and share a screenshot with us ? For us , this is working only for accounts with only a few hours of playing . Can you also check if the « title filtering » option in the settings is working ? thank you

You can check your sysmodules/tesla overlay plugins enabled in your Switch since the Applet SW has a memory limitation. For example, the NX-Shell v4.0.0 can't run directly under Applet mode, it can be run under Application mode(press R and open a game you installed, then run the App).

The commit in my PR is just use a new libnx API to replace the old one. Please disable sysmodules in contents folder and disable the tesla overlay plugins and try again. BTW, you can also run it under application mode.

Hi, I encountered the issues in both Applet Mode ( through the Photo viewer ) and Full Memory mode ( by holding the trigger and start a game). So, the memory shortage issue is quiet strange for the second case .

the issue seems to be caused by something else but I don’t know what . The issue was not there with HOS 14.1.2 and the previous api usage .

To complete , apps triggering memory shortage ( in applet mode or full mode ) don’t usually generate atmosphere / hos crash. The issue is quiet strange

Peter-Fy commented 1 year ago

When I select Settings -> Hide Titles, the app crashes after a few seconds. I use the version made by @zdm65477730 And it only shows some of the games I play, not all of them

canope-25 commented 1 year ago

When I select Settings -> Hide Titles, the app crashes after a few seconds. I use the version made by @zdm65477730 And it only shows some of the games I play, not all of them

This is normal, the code rely on the playstats database (through PDG:qry) , so no play means no stats and no filtering

canope-25 commented 1 year ago

I beging to thing that the issue is related to possible garbage entries that are part of the database . The previous way of collecting the title ids possibly didn’t have to deal with them ( automatically cleaned by the api ) and now something need to be done in order to check the content before populating the Title Ids list.

What to you think about this ?

zdm65477730 commented 1 year ago

I beging to thing that the issue is related to possible garbage entries that are part of the database . The previous way of collecting the title ids possibly didn’t have to deal with them ( automatically cleaned by the api ) and now something need to be done in order to check the content before populating the Title Ids list.

What to you think about this ?

Why do you say it relate to garbage entries in database? And I don't think the garbage entries will be automatically cleaned by the API. From the test result of many users in a game forum, they have no such issue, although it real exists.\

We need to find out the root cause of the issue, or make sure it is relate to the garbage entries in db.

canope-25 commented 1 year ago

Hi, The thing that make me think about garbage entries is the problem i shared previously about a game (cardridge) i own that was not reported correctly (only the charts are ok , nothing about the name of the game , the played times) and for which i have to delete all the elements (updates, savegames) and reinstall again in order to solve the issue .

zdm65477730 commented 1 year ago

OK, seems you could use @tallbl0nde 's tool to check all the play Event.

canope-25 commented 1 year ago

Do you plan to update the playeventparser ? https://github.com/tallbl0nde/PlayEventParser/releases This can help since it generate logs ( not the case with nx activity log ). It’s quite strange , I don’t understand why but something is not ok, the entries of the games i bought after the 15.0.0 release are not reported ( the play time is visible in the chart but nothing about the game in the detail ). The standard NX Profil page report them .

This is why I asked if the other tool is working .

the PlayEventParser’s release note mention the ability to:

zdm65477730 commented 1 year ago

Do you plan to update the playeventparser ? https://github.com/tallbl0nde/PlayEventParser/releases This can help since it generate logs ( not the case with nx activity log ). It’s quite strange , I don’t understand why but something is not ok, the entries of the games i bought after the 15.0.0 release are not reported ( the play time is visible in the chart but nothing about the game in the detail ). The standard NX Profil page report them .

This is why I asked if the other tool is working .

the PlayEventParser’s release note mention the ability to:

  • Now dumps any 'unknown' events

https://github.com/zdm65477730/PlayEventParser I just update it for suppoting latest libnx.

canope-25 commented 1 year ago

Do you plan to update the playeventparser ? https://github.com/tallbl0nde/PlayEventParser/releases This can help since it generate logs ( not the case with nx activity log ). It’s quite strange , I don’t understand why but something is not ok, the entries of the games i bought after the 15.0.0 release are not reported ( the play time is visible in the chart but nothing about the game in the detail ). The standard NX Profil page report them .

This is why I asked if the other tool is working . the PlayEventParser’s release note mention the ability to:

  • Now dumps any 'unknown' events

https://github.com/zdm65477730/PlayEventParser I just update it for suppoting latest libnx.

Thank you ! I just check the changes you’ve made . So basically something about the way the dump is started ( any keys vs + in the previous version ). I was not able to find a binary build version, if you can help us and share with us a version ? Have you tested it already on your side ?

I will test the binary build at home this afternoon ! ( if available ). I’m at work now and … without the NX .