yuzu icon indicating copy to clipboard operation
yuzu copied to clipboard

Allow changing user id

Open MillZou opened this issue 2 years ago • 9 comments

Right now, the user ID seems randomly generated, fixed, and uncontrollable. The yuzu configuration only allows changing the user name, but not IDs. This introduces great troubles when transferring the "nand" folder to another computer. Therefore, I 'd like to make a feature request for allowing changing the user IDs.

I have tried more than three times that, even if the "nand" folder is copied from one computer to another, as long as the folder's user ID is changed to match that on the new computer, the old saves and installed contents are still usable as they were.

The folder in question is usually located at: nand --> user --> save --> (the one that is not filled with zeros)

MillZou avatar Oct 13 '21 21:10 MillZou

Some games use the ID to identify the user and may refuse to load if the ID doesn't match. Like ACNH. This would also require the user to fill a rather long string with mostly random hex numbers. A better approach would be to be able to load an existing user from NAND

At the moment important changes are being done around this context. I would wait until those changes arrive before trying to fix this particular issue

german77 avatar Oct 14 '21 15:10 german77

As @german77 said, entering a long string of hexadecimal characters is not particularly user friendly, but I will be able to implement a different solution that is more user friendly, stay tuned for more details.

Morph1984 avatar Oct 14 '21 18:10 Morph1984

Is it possible to manually change the user id in the meantime by editing some configuration file? I wasn't able to find that - I assume it has to be saved somewhere?

fyr77 avatar Mar 19 '22 09:03 fyr77

I am not sure whether it is stored in a configuration file, but the folder transferring can be done manually.

  1. On the new computer, start yuzu, run some game, and save progress. After this, you should be able to find a new folder created at "yuzu --> nand --> user --> save --> 0000000000000000", a folder that is not named "00000000000000000000000000000000" (supposing it is named "bababa").
  2. Copy the folder at the same location (supposing it is named "ababab") from the old computer, and paste it to the new location.
  3. Delete the "bababa", and rename "ababab" --> "bababa".
  4. There you have it! All saves are there.

PS 1. If you copy the entire "nand" or "nand --> user" folder to the new computer, you can transfer installed contents (DLC and updates) as well. Such contents are stored in "nand --> user --> Contents". PS 2. There is another folder in "nand" beside "user", which is "system". It seems that it contains system firmware. However, yuzu is supposed to work without them, so I am now sure whether it should or can be transferred.

MillZou avatar Mar 19 '22 12:03 MillZou

Any update on this? I too am having a hard time syncing multiple computers. I use Synology Drive to sync the nand and other yuzu folders between multi computers and everything works great except the saves because the Save folder ID is different on each computer.

If I could make the profile IDs on every computer be the same, then when the files/folders sync it would use the saves.

EDIT: I just found if you copy the *\yuzu\nand\system\save\8000000000000010\su\avators\profiles.dat folder from one computer to the other, it will create a new folder ID that matches the PC it came from. This allows me to sync my saves,

therealwave avatar Sep 03 '22 10:09 therealwave

@therealwave You are a life saver. I have been searching for over an hour trying to figure this out and google made me stumble upon your comment when I noticed the user ids were different on the new device, so it wasn't recognizing the saves I copied over. Yuzu should utilize some type of optional login process to maintain user IDs across devices! I overwrote the new profiles.dat file with the earlier device's file and now it recognizes the saves. I am using syncthing to sync my windows and steam deck user save folders. Incredible, works like a charm now!

Update: While this method does work, it's best to have both devices as different user ids. I ran into issues with the Super Mario Odyssey Online mod. It would disconnect the other user when connecting to a server, as it uses the user id as the identifier, regardless of your profile name. I imagine there are similar issues using Yuzu's new multiplayer mode if you ever anticipate using both devices at once. Instead, you can use syncthing to match the yuzu\nand\user\save\0000000000000000\xxx to the other one where xxx is each user id - instead of the parent directory.

austinarchibald avatar Sep 15 '22 22:09 austinarchibald