Difference between revisions of "Synchronization and backups"

From Gladiabots Wiki
Jump to: navigation, search
Line 2: Line 2:
  
 
{{Warning|Merging by LuBeNo in process.}}
 
{{Warning|Merging by LuBeNo in process.}}
 
<span style="color:red">mcompany: start sync</span>
 
  
 
== Synced accounts ==
 
== Synced accounts ==
 +
 +
''Gladiabots'' automatically creates a backup from all AI programs and settings of an account in the cloud. It's possible to create a cloud sync connection between {{#tip-text: two or more accounts | For example the first account is on an android smartphone, the second account is on a windows PC and the third account is on the same windows PC but from a different user. }}. Currently the developer creates this cloud sync connection manually. To link different accounts one needs to reply in the [https://forum.gladiabots.com/viewtopic.php?f=7&t=128 cross-device sync temporary solution] topic on the forum with the name of the accounts, specifying a {{#tip-text: main account | AI programs and settings of this account is used for every other account}}. Afterwards, each account will show a data sync conflict message the next time it is opened.
 +
 +
{{InformationCollapsed|1=Steps to create a cloud sync connection|2=The following steps are required to link accounts:
 +
# 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 [https://stats.gladiabots.com/ ''Gladiabots'' stats] page from {{#tip-text: ingame | The current player is automatically selected in this case. }}.
 +
# Reply to the [https://forum.gladiabots.com/viewtopic.php?f=7&t=128 cross-device sync temporary solution] topic on the forum:
 +
#* Provide player names of all accounts 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.
 +
# After the developer linked the accounts and answered your post, you need to launch the game on every synced account. Always choose '''use server data''' when the data sync conflict message appears.}}
 +
 +
<span style="color:red">mcompany: start sync</span>
  
  
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 on the other device and replying in the [https://forum.gladiabots.com/viewtopic.php?f=7&t=128 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 ===
 
=== Resolving data sync conflict messages ===
 
[[Image:Career data sync conflict.png|thumb|Data sync conflict message]]
 
[[Image:Career data sync conflict.png|thumb|Data sync conflict message]]
Line 18: Line 28:
 
<span style="color:red">mcompany: end sync</span>
 
<span style="color:red">mcompany: end sync</span>
 
<span style="color:red">Lubeno: start sync</span>
 
<span style="color:red">Lubeno: start sync</span>
== Sync accounts ==
 
 
It's possible to create a cloud sync connection between {{#tip-text: two or more accounts on one or more devices | For example the first account is on an android smartphone, the second account is on a windows PC and the third account is on the same windows PC but from a different user. }}. Currently the developer creates this cloud sync connection manually. The following steps are required to use this connection:
 
 
# 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 [https://stats.gladiabots.com/ ''Gladiabots'' stats] page from {{#tip-text: ingame | The current player is automatically selected in this case. }}.
 
# Reply to the [https://forum.gladiabots.com/viewtopic.php?f=7&t=128 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.
 
# 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 ===
 
=== Working with synced accounts ===

Revision as of 16:52, 14 October 2017

Information.png This page needs improvement, you are welcome to contribute.
Warning.png Merging by LuBeNo in process.

Synced accounts

Gladiabots automatically creates a backup from all AI programs and settings of an account in the cloud. It's possible to create a cloud sync connection between two or more accounts. Currently the developer creates this cloud sync connection manually. To link different accounts one needs to reply in the cross-device sync temporary solution topic on the forum with the name of the accounts, specifying a main account. Afterwards, each account will show a data sync conflict message the next time it is opened.

Information.png
Steps to create a cloud sync connection 

The following steps are required to link accounts:

  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 on the forum:
    • Provide player names of all accounts 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 linked the accounts and answered your post, you need to launch the game on every synced account. Always choose use server data when the data sync conflict message appears.

mcompany: start sync


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

mcompany: end sync Lubeno: start sync

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: start

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

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.