cemu-project / Cemu

Cemu - Wii U emulator
https://cemu.info
Mozilla Public License 2.0
7.4k stars 606 forks source link

[Bug] Cemu doesn't record play time #1021

Open UsRnM44 opened 1 year ago

UsRnM44 commented 1 year ago

Last month I had suffered a big lose when my hard drive had been dead, practically all my game dumps and a lot of saves had been lost. Why am I telling this? This made me re dump Breath of the Wild. When I played it previously, Cemu had noted that I played it over 150hrs (I know, crazy. that it had been lost . . .). Now, however, it doesn't say a word. I tried refreshing the list, but it doesn't change it.

Screenshot 2023-11-14 at 17 04 57

I'm using the latest build on MacOS, Intel CPU, AMD GPU, 16gb of RAM.

JaimieVandenbergh commented 1 year ago

In Cemu 2.0 the play time is held in the play diary in mlc01 like the WiiU does. If you look in your log.txt you’ll probably see an error about writing to it. Find the two diary files and delete them, and it’ll start a fresh set.

UsRnM44 commented 1 year ago

In Cemu 2.0 the play time is held in the play diary in mlc01 like the WiiU does. If you look in your log.txt you’ll probably see an error about writing to it. Find the two diary files and delete them, and it’ll start a fresh set.

Thanks for the quick reply

I found only one play dairy though, where is the second one?

Screenshot 2023-11-14 at 17 20 08
UsRnM44 commented 1 year ago

If you look in your log.txt you’ll probably see an error about writing to it

the log actually saying

`[17:12:28.244] Failed to read valid PlayDiary header log.txt

I have no Idea why though

JaimieVandenbergh commented 1 year ago

Ah, that's okay - no second file as it wasn't writing successfully. Delete PlayDiary.dat and play a game, it should create one or two new files in that folder and record the play time.

UsRnM44 commented 1 year ago

Ok, so I deleted that file, and then played the game as I usually do (about 2-3 hours ? ), it seems that Cemu didn't reproduce that file.

Screenshot 2023-11-15 at 13 34 42

(you can see from the log.txt modification details that I did used Cemu)

JaimieVandenbergh commented 1 year ago

I guess this is a live bug report then. That used to work in the 2.0-20's

sampumon commented 9 months ago

My log said that PlayStats.dat is malformed. It was all zero bytes. Deleted it with PlayDiary.dat. Now play time is recorded for me!

Cemu 2.0-66 on macOS 14.3, M1 pro.

UsRnM44 commented 9 months ago

My log said that PlayStats.dat is malformed. It was all zero bytes. Deleted it with PlayDiary.dat. Now play time is recorded for me!

Cemu 2.0-66 on macOS 14.3, M1 pro.

I tried even that, the file doesn't regenerate. (I even tried to reset Cemu by deleting the Cemu folder)

UsRnM44 commented 9 months ago

Only today I discovered that the PlayStats.dat and PlayDairy.dat files that important aren't in the Cemu folder that located at Application Support in Mac, but in the MLC path for the save in the Usr folder. I moved both of those files (in frightened that it will affect the saves) and now Cemu does track playtime. I don't known if to consider this as fixed though, because this is more a workaround.

Screenshot 2024-02-28 at 0 10 00

I'm attaching this Image because it may help the developers understand the problem. The above files are the "original".

Screenshot 2024-02-28 at 0 09 29
JaimieVandenbergh commented 9 months ago

That's normal, intended and exactly as expected. Cemu 2.0 uses the playdiary/stats files in the same location in the mlc folder as the WiiU has them in onboard storage.

UsRnM44 commented 9 months ago

That's normal, intended and exactly as expected. Cemu 2.0 uses the playdiary/stats files in the same location in the mlc folder as the WiiU has them in onboard storage.

That's okay and all, it make sense, it was MY mistake to think it would be in the Cemu folder. The only problem is that it didn't recorded the playtime until I "messed" with the files. I'm sure THIS doesn't supposed and intended to happen from the first place.

Senor-S commented 3 months ago

I'm having similar trouble with flatpak version: I have a custom mlc01 with time played and last played information in PlayStats.dat. If I use the default mlc01-path I can copy the PlayStats.dat to that default location. The stats show up, but I see only single-file games from my rom-directory, BotW from the custom mlc01-path is missing, as it is not set. If I configure theis custom mlc01-path I see all games including BotW, but you've played is blank and doesn't record, even though the files are there.

EDIT: Solved it by installing Flatseal and allowing "All user data (filesystem=home)"