Synchronization and backups

From Gladiabots Wiki
Revision as of 14:48, 14 October 2017 by LuBeNo (Talk | contribs) (Created page with "{{Information|This page needs improvement, you are welcome to contribute.}} <span style="color:red">mcompany: start sync</span> == Synced accounts == Currently, Gladiabots...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Information.png This page needs improvement, you are welcome to contribute.

mcompany: start sync

Synced accounts

Currently, Gladiabots automatically makes a backup of all of your AIs online. Because of which, the developer has made it so that multiple devices could sync up to the same account. However, it must be done manually by creating a new account in career mode and replying in the cross-device sync temporary solution topic on the forum with the name of the two accounts saying which account you want to keep. Afterwards, you will get a data sync message next time you open the game

Resolving data sync conflict messages

Data sync conflict message

Sometimes, you may get a data snyc conflict message when playing. This happens when the data on the server is different from the data on your device. This can also happen if you sync two accounts (since the data updated from one device does not automatically carry over to the next device). If you have used multiple devices for one account then you should usually choose server data. Otherwise, this usually is just an error with updating your AI and choosing server data could leave you before you made any changes, so you should choose local data instead

Warning.png If there is no backup to the accounts, your choice can become irreversible. Even with a backup, picking the wrong option could make you lose some of your work

Multiple accounts and backup

Currently Windows is the only known device that it is possible to play with multiple accounts on one device or backup an account. All save data for gladiabots (including your career account) is saved in the registry. Since the accounts are saved to the registry, each account is tied to the user that you logged into your computer with, so if you want to use multiple accounts you must create multiple users for your computer, then hold shift while right clicking gladiabots, and choose "run as a different user".

mcompany: end sync Lubeno: start sync

Sync accounts

It's possible to create a cloud sync connection between two or more accounts on one or more devices. Currently the developer creates this cloud sync connection manually. The following steps are required to use this connection:

  1. Make sure that each account has a valid player name.
    • To create the player name open career mode for each account and choose the player name.
    • To determine the current player name check the leaderboard or the Gladiabots stats page from ingame.
  2. Reply to the cross-device sync temporary solution topic at the forum with all the needed information:
    • Provide all player names of each account that should be synced.
    • Specify the main player name. The player name, AI programs and settings of this account is used for every other account.
  3. After the developer answered your post at the forum and told you that it's ready, you need to launch the game on every synced account. Always choose use server data when the data sync conflict message appears.

Working with synced accounts

Data sync conflict message

If the first account changes some nodes, the changes are automatically pushed to the server. The following steps are required to sync this changes with the second account:

  1. Close the game on the first account.
  2. Upon opening the second account the data sync conflict message should appear:
    • Choose use server data.
    • The changes should be synced.

Resolving data sync conflict messages

Warning.png Sometimes there is a data sync conflict message and it's not clear which of the accounts is up to date. If the wrong option is selected all changes could be reverted.

The following steps are recommended to solve this conflict:

  1. Launch the game on every synced account and choose keep local data for now.
  2. Try to determine the account that is up to date by checking the recently changed nodes on the different accounts.
  3. Close the game on every synced account.
  4. Launch the game on the account that is up to date.
    • When the data sync conflict message appears choose keep local data.
  5. Launch the game on all other accounts.
    • When the data sync conflict message appears choose use server data.

Lubeno: end sync mcompany: removed headline

Windows: Multiple accounts and backup

mcompany: start comment

Creating multiple accounts on the same device

Warning.png The following actions could harm your system, especially when done wrong. Create a backup of all your data before trying any of this. Proceed at your own risk.

If the windows system contains several users, it's possible to login to any of them and start Gladiabots. Each one will have its own account. In single user environments it's possible to create more users to use as additional accounts by:

  1. Opening Computer Management by either searching for Computer Management in the start menu or by pressing Windows key+r and inserting the command compmgmt.msc into the run window.
  2. Add a user by browsing to the System Tools > Local Users and Groups > User folder, right click it and select New User... from the menu. Specify a username and a password.

Playing with a different account

Warning.png The following actions could harm your system, especially when done wrong. Create a backup of all your data before trying any of this. Proceed at your own risk.

To start the game with a different account either logout your current user and login with the other user or run Gladiabots using the other user by:

  1. Pressing Windows key+r and inserting the command Runas /user:MyComputer\Gladiatest /savecred "C:\Gladiabots\Gladiabots.exe" into the run window. It's also possible to create a shortcut or a batch file with this command.

mcompany: end comment

Creating and restoring backups

Warning.png The following actions could harm your system, especially when done wrong. Create a backup of all your data before trying any of this. Proceed at your own risk.

A backup is useful if the game data is lost due to a system crash or failed sync. Under windows it seems like Gladiabots is storing all the game data under the folder HKEY_CURRENT_USER\Software\GFX47\Gladiabots] of the registry. Create a backup of this registry key by:

  1. Pressing Windows key+r and inserting the command reg export HKEY_CURRENT_USER\Software\GFX47\Gladiabots "C:\Gladiabots\Backup.reg" into the run window. It's also possible to create a shortcut or a batch file with this command.

Create a backup of this registry key for another account by:

  1. Pressing Windows key+r and inserting the command Runas /user:MyComputer\Gladiatest /savecred "reg export HKEY_CURRENT_USER\Software\GFX47\Gladiabots \"C:\Gladiabots\Backup Gladiatest.reg\"" into the run window. It's also possible to create a shortcut or a batch file with this command.

mcompany: Can someone please change this to either use regedit, or link back to here

To restore the backup all one needs to do is executing the exported registry file The AI programs and settings are restored. It's not possible to restore a single AI sub tree this way.