TCNOco / TcNo-Acc-Switcher

A Super-fast account switcher for Steam, Battle.net, Epic Games, Origin, Riot, Ubisoft and many others!
GNU General Public License v3.0
1.8k stars 120 forks source link

Only one Ubisoft account can be added #401

Open SimplexPL opened 2 months ago

SimplexPL commented 2 months ago

I try to add second ubisoft account - my first accound gets overwritten.

To Reproduce Steps to reproduce the behavior:

  1. Go to list of ubisoft accounts
  2. Click on '+ Add New.'
  3. Message says "Closing ubisoft" (ubisoft is not even opened) and then "Done"

Expected behavior When clicking "+ Add New" a new ubisoft connect should launcha allowing me to log in and save this as a separate login

Screenshots image

Desktop (please complete the following information):

Additional context It's also not possible to lauch Ubisoft Connect using TcNo - I have to do it manually. When trying to launch, it just says "closing ubisoft" (which is already closed)

TCNOco commented 2 months ago

The TcNo Account Switcher gets the currently logged in account from %ProgramFiles(x86)%\\Ubisoft\\Ubisoft Game launcher\\logs\\launcher_log.txt in the form of searching for User: which follows with a user ID of the account you're last logged into. The switcher looks for I would think the first reference of User: and uses the account ID from that.

I am able to add new accounts, save them and switch between them as usual. I would think logging out of Ubisoft Connect and signing in with a different account may have confused the account switcher if multiple UserIDs are mentioned in this log file.

Try: Add New in the TcNo Account Switcher, and Right-Clicking each user account in the account switcher and choose Forget. Log into your new account, click Save Current in the account switcher, followed by New Account and log in to save again.

Switching should then work happily. Let me know if this works ;)

SimplexPL commented 2 months ago

I tried your method. After creating the first account, same thing happens - clicking "Add new" does nothing.

TCNOco commented 2 months ago

Check the log to see if access isn't allowed to that specific file, or something similar: C:\Users\tcno\AppData\Roaming\TcNo Account Switcher\log.txt or %AppData%\TcNo Account Switcher\log.txt

I assume running the switcher as admin may help? Possibly the issue is coming from that file, or one of these files causing the issue https://github.com/TCNOco/TcNo-Acc-Switcher/blob/master/TcNo-Acc-Switcher-Server/Platforms.json#L324-L327

        "%Platform_Folder%\\logs\\launcher_log.txt": "logs\\launcher_log.txt",
        "%LocalAppData%\\Ubisoft Game Launcher\\ConnectSecureStorage.dat": "ConnectSecureStorage.dat",
        "%LocalAppData%\\Ubisoft Game Launcher\\settings.yaml": "settings.yaml",
        "%LocalAppData%\\Ubisoft Game Launcher\\user.dat": "user.dat"

Possible something is set to read only?

SimplexPL commented 2 months ago

Runnint TcNo as admin did not helpp,

My path is "H:\Ubisoft Game Launcher", if it changes anything.

I think this may be important: ConnectSecureStorage.dat and other two files are not in ubi folder - they are in AppData\Local

image

TCNOco commented 2 months ago

The path shouldn't matter, as long as it was set properly in the TcNo Acccount Switcher the first time you clicked the platform. TcNo Account Switcher > Ubisoft > Settings > under General Tools you'll find the selected install path. As long as it's the correct path for Ubisoft Connect it should work. You can use Pick Ubisoft folder underneath if it's not.

The account switcher does pull those 3 files from the %LocalAppData% folder currently as well currently. Yours appears to be the same as mine.

SimplexPL commented 2 months ago

Running as admin did not help. My path to ubi launcher was already correct in TcNo. Do you want me to send you launcher_log.txt file?

Are there TcNo logs that I can check?

TCNOco commented 2 months ago

Preferrably privately over Discord as it does contain your userid. Then I should be able to recreate it, or see if that's the issue. https://s.tcno.co/AccSwitcherDiscord

TCNOco commented 2 months ago

Otherwise deleting the launcher_log.txt, and adding your accounts, switching etc should fix it. I assume that this is the main cause of the issue as it's the file the account switcher looks for your userid to tell your accounts apart...

SimplexPL commented 2 months ago

Thanks, I sent you the file in a Discord DM