Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for FW 15.0 #61

Open
tatundria opened this issue Oct 15, 2022 · 117 comments
Open

Update for FW 15.0 #61

tatundria opened this issue Oct 15, 2022 · 117 comments

Comments

@tatundria
Copy link

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
Copy link

Hello I have the same issue.

Issue:

  • No games show up.
  • Playtime still shows up but games do not.
  • Same behaviour in SysCFW and EmuMMC.
  • Same behaviour on NX-Activity-Log-NPE.

Software Versions:

  • Nintendo Switch System Version 15.0.0
  • Atmosphere 1.4.0
  • Tested NX-Activity-Log (and NPE version) 1.3.2 and 1.4.0.
  • SysMMC / EmuMMC

@ForMyCats
Copy link

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

@tallbl0nde
Copy link
Owner

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
Copy link

shae23 commented Oct 22, 2022

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
Copy link

m4st3rP commented Oct 22, 2022

This seems to be the only invocation of the removed function that causes this problem:

pdmqryQueryRecentlyPlayedApplication(u[i]->ID(), false, tmpIDs, MAX_TITLES, &playedTotal);

@profucius
Copy link

@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
Copy link

pixeltester commented Oct 25, 2022

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
Copy link

m4st3rP commented Oct 25, 2022

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
Copy link

canope-25 commented Oct 26, 2022

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

@hotpotatoes11
Copy link

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
Copy link

m4st3rP commented Oct 26, 2022

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
Copy link

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
Copy link
Contributor

zdm65477730 commented Oct 30, 2022

See my PR, just fixed the issue:
#66

@rashevskyv
Copy link

rashevskyv commented Oct 30, 2022

Works perfectly. Thanx a lot.

Built with @zdm65477730's changes
switch.zip

@shae23
Copy link

shae23 commented Oct 30, 2022

Works perfectly. Thanx a lot.

Built with @zdm65477730's changes switch.zip

Thank you for the compiled file, it works perfectly.

@tallbl0nde
Copy link
Owner

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

@tallbl0nde
Copy link
Owner

tallbl0nde commented Oct 31, 2022

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
Copy link
Author

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 tallbl0nde reopened this Oct 31, 2022
@tallbl0nde
Copy link
Owner

What's the error?

@shae23
Copy link

shae23 commented Oct 31, 2022

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
Copy link
Author

tatundria commented Oct 31, 2022

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
Copy link
Contributor

zdm65477730 commented Oct 31, 2022

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
Copy link

pixeltester commented Oct 31, 2022

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
Copy link
Author

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
Copy link

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
Copy link

canope-25 commented Oct 31, 2022

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
Copy link

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
Copy link

canope-25 commented Oct 31, 2022

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 ?

@Satfoun
Copy link

Satfoun commented Dec 18, 2022

Is there any link for a tutorial on how to use Playevent dumper ?

@zdm65477730
Copy link
Contributor

Is there any link for a tutorial on how to use Playevent dumper ?

Just put the PlayerEventDumper.nro under your sdmc:/switch/PlayerEventDumper folder, and run it, after then, it will create a log file. You can attach the file here.

@Satfoun
Copy link

Satfoun commented Dec 18, 2022

playlog.txt

Here is the Play log, i hope this helps.
If you need anything else, inform me and i will see what i can do

@zdm65477730
Copy link
Contributor

zdm65477730 commented Dec 18, 2022

playlog.txt

Here is the Play log, i hope this helps. If you need anything else, inform me and i will see what i can do

I have checked your log file, it seems there is strange data:

Here one login without logout:
ACCOUNT: 316574090436279706938790433338404174444 Login 13 December 2022 07:20 PM 55627537
APPLET: 100317013770000 Out Focus 13 December 2022 07:40 PM 55628755
APPLET: 100317013770000 Launch 13 December 2022 07:56 PM 55629740
APPLET: 100317013770000 In Focus 13 December 2022 07:56 PM 55629742
ACCOUNT: 316574090436279706938790433338404174444 Login 13 December 2022 07:56 PM 55629742

And the login date is later than logout:
ACCOUNT: 316574090436279706938790433338404174444 Login 02 December 2022 12:46 AM 54610304
ACCOUNT: 316574090436279706938790433338404174444 Logout 02 December 2022 01:26 AM 54612754

If the data is correct, the local time may be changed.

@Satfoun
Copy link

Satfoun commented Dec 18, 2022

So this helped you to find the root of the Ghost title problem ?

@bookdragon143
Copy link

I've tried the various versions on this thread with no luck getting anything to show for games played on the daily screens. Is there anyone who can tell me exactly what on my sd card to delete to help me get this working?

@profucius
Copy link

Hi all. Can anyone confirm if any of the fixes in this thread for OS v15+ are working successfully for playtime export? Personally I am alright if the interface does not show accurate data, but I depend on exporting the json to my computer for parsing into my game manager Playnite. I've been holding off updating to OS v15 (still on v14) because of this, but I've noticed more and more games are requiring v15, which makes me nervous about staying behind much longer.

If there is a working version for at least the exporting, that would be so great.

@Vinfall
Copy link

Vinfall commented Jan 8, 2023

I'm using this one under applet mode (not docked) in v15.0.1: https://github.com/zdm65477730/NX-Activity-Log/releases/download/test/NX-Activity-Log.zip, and it can export the data to JSON.

The exported file is located in /sdcard/switch/NX-Activity-Log/export.json (the same folder as NX-Activity-Log.nro). If anything goes wrong, delete the config at /sdcard/config/NX-Activity-Log and try again.

@profucius
Copy link

Thank you, I'm aware how the export works and I use it regularly. What I'm asking is that I haven't seen anything in this thread about the accuracy of the export data on v15.

I already upgraded to 15 and then downgraded to 14 again months ago, as this feature is important enough to me that I preserve its full functionality. I would rather not go through the trouble again before I know if there are any inconsistencies or errors in the json data.

@Vinfall
Copy link

Vinfall commented Jan 8, 2023

How can I validate the exported data then (does Playnite include the json parser itself?), I'm willing to help but I only started using this after upgrading HOS to v15+ so there is no legacy json file I can make a diff.

@profucius
Copy link

How can I validate the exported data then (does Playnite include the json parser itself?), I'm willing to help but I only started using this after upgrading HOS to v15+ so there is no legacy json file I can make a diff.

The way to validate the json data yourself would be to transfer it to a PC and open it with any json reading software. If you already have Notepad++ there is a plugin called JSON viewer I believe. Or you can upload the json file to a JSON parsing website, if you Google "JSON viewer" there are many results, such as this one.

You can view the json as a tree and other view types. The goal is to look at some recent games you've played and see if the data looks correct, such as playtime. The playtime is stored as UNIX time which is a long string of numbers, copy a value and paste it in this website to see the real date and time.

If you see that the past, say 10 or so games, are all accurate in their data (names, play order, play date time, etc) then I think we can probably assume it is all working fine enough to proceed.

@Vinfall
Copy link

Vinfall commented Jan 9, 2023

If you see that the past, say 10 or so games, are all accurate in their data (names, play order, play date time, etc) then I think we can probably assume it is all working fine enough to proceed.

I compare exported.json with playlog.txt from https://github.com/zdm65477730/PlayEventParser and the data seems to be valid. Launches, playtime and the detailed event timestamps are all correct. You may safely upgrade if you only use export feature.

@profucius
Copy link

That is good to hear, thank you for verifying!

@bookdragon143
Copy link

I'm finding that, disregarding the ghost data issue, the recent activity section works fine ONCE. Then I have to delete my config folder in order to get that section to load without crashing the app. All activity crashes AMS no matter what. Thoughts?

@Vinfall
Copy link

Vinfall commented Jan 16, 2023

No idea if this would help the developers, but you can find the crash report / dump under /sdcard/atmosphere. Check fatal_errors or fatal_reports and attach them here or in GitHub Gist like this.

BTW, as #61 (comment) suggests, I think the ghost title issue is indeed caused by local time change (like many do in ACNH?). I don't have a physical copy of that so cannot confirm/reproduce it myself. Hopefully anyone would show up and give some hints on this.

@Brandon98SE
Copy link

Brandon98SE commented Jan 31, 2023

EDIT: ⚠ Ignore my post! ⚠ (Wrong Version)

  • Whoops I was using the version that doesn't support applet mode, I have now ran the latest version, and it now is working perfectly. :) YAY!!

Information: (Important info in codeblocks)

  • I played quite alot of Super Mario Galaxy on Super Mario 3D All-Stars the other day on my EmuMMC and none of that data is showing up in the fixed version of NX-Activity-Log, posted by @zdm65477730.
  • My switch is an Unpatched V1 (2017) running Firmware 15.0.1 | Atmosphere 1.4.0|E if that helps.
  • Also I have had NX-Activity-Log cause an entire OS crash recently, I can dump logs if needed. I have just checked the system logs and it was the Homebrew menu that caused an OS crash, not NX-Activity-Log.

Here is a screenshot:

  • the bars are filled, but no titles show underneath the graph, and I played quite alot of SM3DAS that day:
    2023013123263800_s

@one-piece19
Copy link

https://github.com/zdm65477730/NX-Activity-Log/releases/download/test/NX-Activity-Log.zip

If most of you have no issues with above version, I think the author could pull the changes and make a release for this version.

This is the Only Working version right now with FW 15, Thanks 👍. @tallbl0nde Should merge this and release it as version 1.5

@ForMyCats
Copy link

https://github.com/zdm65477730/NX-Activity-Log/releases/download/test/NX-Activity-Log.zip

If most of you have no issues with above version, I think the author could pull the changes and make a release for this version.

This is the Only Working version right now with FW 15, Thanks 👍. @tallbl0nde Should merge this and release it as version 1.5

Agreed. I wanted to thank you @zdm65477730. I've been using it extensively the past couple of months and it works great. Thank you for fixing this homebrew! :)

@Peter-Fy
Copy link

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.

I have the same problem, when I select my main account, the program reports an error and quits. But when creating a new account and selecting it, the new account does not report an error. Can you tell me in detail how you solved this problem?

@brlala
Copy link

brlala commented Feb 26, 2023

https://github.com/zdm65477730/NX-Activity-Log/releases/download/test/NX-Activity-Log.zip

If most of you have no issues with above version, I think the author could pull the changes and make a release for this version.

This is the Only Working version right now with FW 15, Thanks 👍. @tallbl0nde Should merge this and release it as version 1.5

For anyone that comes to this issue, this is the only one that works for FW 15, not sure if it needs to be recompiled for FW16.0.0

@v1993
Copy link

v1993 commented Feb 26, 2023

@brlala Some code changes are probably in order to get this working on 16.0+ due to differences in font APIs compared to older FW versions.

@brlala brlala mentioned this issue Feb 26, 2023
@czerwinski76
Copy link

NX-Activity-Log doesn't work anymore on CFW 15.0 .

@yingang
Copy link

yingang commented Mar 11, 2023

Have used all the versions in this thread, still get some crashes here or there.

For the latest one (https://github.com/zdm65477730/NX-Activity-Log/releases/download/test/NX-Activity-Log.zip), it will cause 2349-0004 (0x95d) error when I enter Recent Activity while it looks okay if it's All Activity.

The attached is the output of PlayEventParser, hope it helps.

playlog.txt

@czerwinski76
Copy link

I find a package who is working for me :

https://github.com/zdm65477730/NX-Activity-Log/releases/download/hos16.0.0/NX-Activity-Log.zip

#73 (comment)

image
The only issue is a blank line on the log.

@Vinfall
Copy link

Vinfall commented Oct 25, 2023

In case anyone is wondering, I can confirm the fork at zdm65477730/NX-Activity-Log also works on 17.0.0.

@czerwinski76
Copy link

czerwinski76 commented Oct 25, 2023

In case anyone is wondering, I can confirm the fork at zdm65477730/NX-Activity-Log also works on 17.0.0.

What about the blank line ?
Is it present on the fork version ?
Is it the lastest changelog line "Fix ghost record issue in all views(All, Recent and Hidden view)." ?

Edit :
Yes, the ghost line is gone in latest version.

@Vinfall
Copy link

Vinfall commented Oct 26, 2023

Yes, that should be solved. The only issue I have is if I scroll in all activity too fast, Atmosphere would panic... And there are some issues in recent activity IIRC but I haven't used that ever since then so YMMV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests