RPCS3 / rpcs3

PS3 emulator/debugger
https://rpcs3.net/
GNU General Public License v2.0
15.29k stars 1.9k forks source link

Trophy manager crashes on mismatch between Trophy count in TROPUSR.DAT and actual trophy count #3738

Open Megamouse opened 6 years ago

Megamouse commented 6 years ago

TROPUSR.DAT needs to be regenerated or updated after a DLC was installed.

rpcs3 will crash on opening the trophy manager otherwise because the TROPUSR.DAT only contains the info for the old trophy count, ignoring the newly added trophies that are tried to be loaded into the manager nonetheless.

Maybe of interest (from ps3devwiki):

To avoid corruption when a new trophyset for the same game is installed (e.g: by installing a game patch containing new trophyes), the system renames the previous install folder by adding a BU (its a Back Up) before the name of the folder e.g: _BU_NPWR00001. Then the new trophyset is installed in the default path e.g: NPWR00001

Only 2 trophysets of the same game can be stored at any time, the older one is always inside the BU folder and the XMB only loads the one inside the default path (without BU)

Also, when Loading existing trophy data we should load the config first and add to that data from our user trophy data, in case we have old data that is missing information, which will currently only be updated by workarounds.

Zangetsu38 commented 6 years ago

oh ok, i understund why i have crash now with update game hmm

Megamouse commented 2 years ago

The same obviously.