Healix / Gw2Launcher

Manages and allows for multiple Guild Wars 2 clients to be launched
MIT License
181 stars 24 forks source link

Move all my settings to another computer #141

Open Christoferthz opened 2 years ago

Christoferthz commented 2 years ago

Hello, I wanted to ask if it is possible to copy all my configurations to another computer, I have to format my computer and I remember that configuring the 50 accounts took me many hours, I would not want to have to do all the work again, could someone explain me step by step how to make a backup, thanks

Healix commented 2 years ago

If you have passwords saved in Gw2Launcher, right click any account > Settings > Security. Change the encryption to portable or unencrypted.

Close Gw2Launcher.

Open the following folder (enter the path into the address bar of any folder): %appdata%\Gw2Launcher

Copy everything in the Gw2Launcher folder except the data and temp folders. For the data folder, only copy the files inside - do not copy any folders within the data folder.

On the other computer, place the copied files as they were under %appdata%\Gw2Launcher.

Christoferthz commented 2 years ago

Hello, thanks for taking your time to help me, these are the folders I have

image

Healix commented 2 years ago

Copy everything except the data folder. In the data folder, only copy the files.

WKMEG commented 2 years ago

I followed your instructions and am getting this message: https://i.imgur.com/g056PMx.png

Healix commented 2 years ago

Right click any account > All > Update.

If that fails, switch to basic mode under Settings > Guild Wars 2 > Management.

If it still fails, then it's because GW2 can't access the file for whatever reason. First verify the file actually exists where GW2 says it does. Either something has it write-locked (you won't be able to delete the file) or GW2 doesn't have permission to access that file, likely because it was copied and doesn't have the appropriate permissions set (Windows should have fixed this automatically unless you copied it to your current account while on another account). You can fix the permissions by right clicking the data folder > Properties > Security > Advanced - change ownership (enter your username) and select to replace subcontainers and replace child permissions.

WKMEG commented 2 years ago

The file did not exist. I tried "account > All > Update". The game launches now but all the setting were lost.

Healix commented 2 years ago

If you still have the backup of the data folder, copy the .dat and .xml files to the current data folder and delete all of the # folders within it. If you don't have it anymore, those files were overwritten and can't be recovered.

WKMEG commented 2 years ago

I tried that and now I'm back to the error I originally posted. The missing file 'local.dat' was in the '1' folder, which you said to delete.

Healix commented 2 years ago

The # folders aren't important and are automatically created when you launch an account. The problem you're experiencing has to do with the link back to the real Local.dat file (the Local.dat in the # folder links back to the #.dat file in the data folder). To verify this...

Rename the data folder to data1, then right click an account > Selected > Update. This will recreate the data folder and a # folder inside. Delete the # folder, then launch the account. Gw2Launcher will prompt you about a new Local.dat file - say no. Does it still fail?

If it fails, something is deleting links made by Gw2Launcher. If Gw2Launcher was failing to create the link, it would have shown an error before launching GW2, so I'm guessing something is blocking/deleting it after the fact. Ensure it's not your anti-virus/security software. If you're emulating Windows, that could also cause it. You could also try launching Gw2Launcher as an admin just in case (right click the exe > run as administrator).

If it doesn't fail, delete the # folder, overwrite the #.dat file with the backup and try launching it. If it now fails, change the permissions on the file, as mentioned previously, and if the file said it came from another computer (under Properties > General), unblock it.

Just in case, try the beta version. I don't think it has anything related to this, but it's months ahead of the release version at this point.

WKMEG commented 2 years ago

the Local.dat in the # folder links back to the #.dat file in the data folder

After following your previous instructions yesterday there was no Local.dat in the # folder. There weren't any files, just folders. It sounds like launching an account is supposed to create a Local.dat file when it creates the # folder, but it doesn't.

If I use the Update option then a Local.dat file is created.

WKMEG commented 2 years ago

You mention the possibility of something deleting local.dat, but that doesn't happen when it is created using the Update option.

Healix commented 2 years ago

Updating or Launch (normal) will always create a Local.dat file if it doesn't exist where GW2 expects it, as that's GW2 creating its own rather than being the one attached to your account in Gw2Launcher. When you just launch the account, GW2 isn't allowed to modify Local.dat, which is why it throws the error about it.

The data\# folder created by Gw2Launcher doesn't contain any files, only links to files and some folders (there should be a link to the Documents folder for example). If no links are being created at all, something must be interfering with it, as Gw2Launcher should be failing to launch the account.

To test if your computer actually supports links, open a command prompt (search the start menu for cmd). Enter the following commands:

cd %appdata%\Gw2Launcher\data echo.>test1.txt mklink /H test2.txt test1.txt

This will create 2 linked text files, text1.txt and text2.txt in the data folder. Open text1.txt in notepad, type anything you want and save it. Open text2.txt and it should have the same text. If your computer doesn't support links, the initial command would have likely failed, but if it works as expected, I can only assume something is interfering with Gw2Launcher.

Worst case, if links aren't being allowed, you'll have to All > Update to allow GW2 to create its own Local.dat file, then manually overwrite it with your backups. However, if this was also a problem on the old computer, then the backups may not have been the files GW2 was actually using.