Difference between revisions of "Synchronization and backups"

From Gladiabots Wiki
Jump to: navigation, search
(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...")
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Information|This page needs improvement, you are welcome to contribute.}}
 
 
<span style="color:red">mcompany: start sync</span>
 
 
 
== Synced accounts ==
 
== Synced accounts ==
  
 +
''Gladiabots'' automatically creates a backup from all game data (AI programs and settings) of an account in the cloud. It's possible to create a cloud sync connection between {{Tooltip|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 {{Tooltip|main account|Game data of this account is used for every other account}}. Afterwards, each account will show a data sync conflict message the first time it is opened.
  
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 [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
+
{{InformationCollapsed|1=Steps to create a cloud sync connection|2=The following steps are required to link accounts:
=== Resolving data sync conflict messages ===
+
[[Image:Career data sync conflict.png|thumb|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|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".
+
 
+
<span style="color:red">mcompany: end 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.
 
# 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 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. }}.
+
#* To determine the current player name check the leaderboard or the [https://stats.gladiabots.com/ ''Gladiabots'' stats] page from {{Tooltip|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:
+
# Reply to the [https://forum.gladiabots.com/viewtopic.php?f=7&t=128 cross-device sync temporary solution] topic on the forum:
#* Provide all player names of each account that should be synced.
+
#* 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.
 
#* 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.
+
# After the developer linked the accounts and answered your post, you need to launch the game on every synced account. Choose '''use server data''' the first time when the data sync conflict message appears.}}
 
+
=== Working with synced accounts ===
+
 
+
[[Image:Career data sync conflict.png|thumb|Data sync conflict message]]
+
 
+
If the first account changes some nodes, the changes are {{#tip-text: automatically pushed | If an internet connection is available }} to the server. The following steps are required to sync this changes with the second account:
+
  
 +
{{InformationCollapsed|1=Working with synced accounts|2=If the first account changes some nodes, the changes are {{Tooltip|automatically pushed|If an internet connection is available}} to the server. The following steps are required to sync this changes with the second account:
 
# Close the game on the first account.
 
# Close the game on the first account.
 
# Upon opening the second account the data sync conflict message should appear:
 
# Upon opening the second account the data sync conflict message should appear:
 
#* Choose '''use server data'''.
 
#* Choose '''use server data'''.
#* The changes should be synced.
+
#* The changes should be synced.}}
  
 
=== Resolving data sync conflict messages ===
 
=== Resolving data sync conflict messages ===
  
{{Warning|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.}}
+
[[Image:Career data sync conflict.png|thumb|Data sync conflict message]]
  
The following steps are recommended to solve this conflict:
+
Each time the local game data differs from the cloud backup a data sync conflict message will appear.
  
 +
Reasons for differences between local and server data:
 +
 +
# The game data will differ if one changed AI programs or settings without internet connection.
 +
# The game data will differ in a synced account setting, if another account changed its game data and pushed the changes to the server.
 +
 +
{{Warning|Data sync conflict messages should be answered carefully, because the choices are irreversible. If the wrong option is selected it will result in data loss.}}
 +
 +
Without a synced account setting one could always choose '''keep local data''', because the differences have not yet transferred to the server. In a synced account setting one should also choose '''keep local data''' in the up to date account. On all the other accounts one should choose the '''use server data''' option to update the accounts to the recent changes.
 +
 +
{{InformationCollapsed|1=Steps to resolve uncertain conflicts|2=The following steps are recommended to solve uncertain conflicts in a synced account setting:
 
# Launch the game on every synced account and choose '''keep local data''' for now.
 
# Launch the game on every synced account and choose '''keep local data''' for now.
 
# Try to determine the account that is up to date by checking the recently changed nodes on the different accounts.
 
# Try to determine the account that is up to date by checking the recently changed nodes on the different accounts.
Line 53: Line 40:
 
#* When the data sync conflict message appears choose '''keep local data'''.
 
#* When the data sync conflict message appears choose '''keep local data'''.
 
# Launch the game on all other accounts.
 
# Launch the game on all other accounts.
#* When the data sync conflict message appears choose '''use server data'''.
+
#* When the data sync conflict message appears choose '''use server data'''.}}
  
<span style="color:red">Lubeno: end sync</span>
+
== Multiple accounts and backups ==
<span style="color:red">mcompany: removed headline</span>
+
== Windows: Multiple accounts and backup ==
+
<span style="color:red">mcompany: start comment</span>
+
=== Creating multiple accounts on the same device ===
+
  
{{Warning|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.}}
+
Currently Windows is the {{Tooltip|only known environment|Mac and Linux should work too, but there is no manual yet. Android seems to require a rooted device to backup an account.}} where it is possible to play with multiple accounts on one device or backup an account. All the game data (AI programs and settings) is saved in the Windows registry. Each Windows user stores the game data in its private part of the registry therefore multiple accounts on the same device are possible.
 +
 
 +
=== Multiple accounts ===
  
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:
+
To use multiple accounts in ''Gladiabots'' one has to create multiple Windows users and start the game with the desired user logged in. Otherwise it is possible to hold the <code>Shift</code> key while right clicking the ''Gladiabots'' shortcut and choose "run as a different user".
  
 +
{{InformationCollapsed|1=Creating multiple accounts in a Windows environment|2={{Warning|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.}}
 +
Create more users to use as additional accounts by:
 
# Opening ''Computer Management'' by either searching for <code>Computer Management</code> in the start menu or by pressing <code>Windows key+r</code> and inserting the command <code>compmgmt.msc</code> into the run window.
 
# Opening ''Computer Management'' by either searching for <code>Computer Management</code> in the start menu or by pressing <code>Windows key+r</code> and inserting the command <code>compmgmt.msc</code> into the run window.
# Add a user by browsing to the <code>System Tools</code> > <code>Local Users and Groups</code> > <code>User</code> folder, right click it and select <code>New User...</code> from the menu. Specify a {{#tip-text: username | The username is Gladiatest in this chapter. }} and a password.
+
# Add a user by browsing to the <code>System Tools</code> > <code>Local Users and Groups</code> > <code>User</code> folder, right click it and select <code>New User...</code> from the menu. Specify a username and a password.}}
  
=== Playing with a different account ===
+
{{InformationCollapsed|1=Batch command to start the game as different Windows user|2={{Warning|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 batch file or shortcut with this command starts ''Gladiabots'' using another user:
 +
* <code>Runas /user:{{Tooltip|MyComputer|Replace this with your computer name. Press <code>Windows key+Pause</code> to determine the computer name.}}\{{Tooltip|Gladiatest|Specify the username from the account you want to use.}} /savecred "{{Tooltip|C:\Gladiabots\Gladiabots.exe|This needs to be the path to your Gladiabots.exe file.}}"</code>}}
 +
 
 +
=== Creating backups ===
  
 
{{Warning|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.}}
 
{{Warning|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:
+
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 <code>HKEY_CURRENT_USER\Software\GFX47\Gladiabots]</code> of the registry.
 
+
# Pressing <code>Windows key+r</code> and inserting the command <code>Runas /user:{{#tip-text: MyComputer | Replace this with your computer name. Press <code>Windows key+Pause</code> to determine the computer name. }}\{{#tip-text: Gladiatest | Specify the username from the account you want to use. }} /savecred "{{#tip-text: C:\Gladiabots\Gladiabots.exe | This needs to be the path to your Gladiabots.exe file. }}"</code> into the run window. It's also possible to create a shortcut or a batch file with this command.
+
<span style="color:red">mcompany: end comment</span>
+
=== Creating and restoring backups ===
+
 
+
{{Warning|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 <code>HKEY_CURRENT_USER\Software\GFX47\Gladiabots]</code> of the registry. Create a backup of this registry key by:
+
Create a backup of this registry key by:
  
# Pressing <code>Windows key+r</code> and inserting the command <code>reg export HKEY_CURRENT_USER\Software\GFX47\Gladiabots "{{#tip-text: C:\Gladiabots\Backup.reg | This needs to be the path to a file where you want to store your game data. }}"</code> into the run window. It's also possible to create a shortcut or a batch file with this command.
+
# Opening ''Registry Editor'' by either searching for <code>Registry Editor</code> in the start menu or by pressing <code>Windows key+r</code> and inserting the command <code>regedit</code> into the run window.
 +
# Navigate to the folder <code>HKEY_CURRENT_USER\Software\GFX47\Gladiabots</code>, right click it and choose <code>Export</code> from the menu.
 +
# Select a backup folder, a filename and press save to create the backup.
  
Create a backup of this registry key for another account by:
+
{{InformationCollapsed|1=Batch commands to create a backup|2=A batch file or shortcut with this command creates a backup of the game data of the current user:
 +
* <code>reg export HKEY_CURRENT_USER\Software\GFX47\Gladiabots "{{Tooltip|C:\Gladiabots\Backup.reg|This needs to be the path to a file where you want to store your game data. }}"</code>
 +
A batch file or shortcut with this command creates a backup of the game data for another user:
 +
* <code>Runas /user:{{Tooltip|MyComputer|Replace this with your computer name. Press <code>Windows key+Pause</code> to determine the computer name.}}\{{Tooltip|Gladiatest|Specify the username from the account you want to use.}} /savecred "reg export HKEY_CURRENT_USER\Software\GFX47\Gladiabots \"{{Tooltip|C:\Gladiabots\Backup Gladiatest.reg|This needs to be the path to a file where you want to store your game data. }}\""</code>
 +
}}
  
# Pressing <code>Windows key+r</code> and inserting the command <code>Runas /user:{{#tip-text: MyComputer | Replace this with your computer name. Press <code>Windows key+Pause</code> to determine the computer name. }}\{{#tip-text: Gladiatest | Specify the username from the account you want to use. }} /savecred "reg export HKEY_CURRENT_USER\Software\GFX47\Gladiabots \"{{#tip-text: C:\Gladiabots\Backup Gladiatest.reg | This needs to be the path to a file where you want to store your game data. }}\""</code> into the run window. It's also possible to create a shortcut or a batch file with this command.
+
=== Restoring backups ===
<span style="color:red">mcompany: Can someone please change this to either use regedit, or link back [https://support.microsoft.com/en-us/help/322756/how-to-back-up-and-restore-the-registry-in-windows to here]</span>
+
  
To restore the backup all one needs to do is executing the exported {{#tip-text: registry file | In the example above it is <code>C:\Gladiabots\Backup.reg</code>. }} The AI programs and settings are restored. It's not possible to restore a single AI sub tree this way.
+
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.

Latest revision as of 17:42, 17 October 2017

Synced accounts

Gladiabots automatically creates a backup from all game data (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 first 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. Choose use server data the first time when the data sync conflict message appears.
Information.png
Working with synced accounts 

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

Data sync conflict message

Each time the local game data differs from the cloud backup a data sync conflict message will appear.

Reasons for differences between local and server data:

  1. The game data will differ if one changed AI programs or settings without internet connection.
  2. The game data will differ in a synced account setting, if another account changed its game data and pushed the changes to the server.
Warning.png Data sync conflict messages should be answered carefully, because the choices are irreversible. If the wrong option is selected it will result in data loss.

Without a synced account setting one could always choose keep local data, because the differences have not yet transferred to the server. In a synced account setting one should also choose keep local data in the up to date account. On all the other accounts one should choose the use server data option to update the accounts to the recent changes.

Information.png
Steps to resolve uncertain conflicts 

The following steps are recommended to solve uncertain conflicts in a synced account setting:

  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.

Multiple accounts and backups

Currently Windows is the only known environment where it is possible to play with multiple accounts on one device or backup an account. All the game data (AI programs and settings) is saved in the Windows registry. Each Windows user stores the game data in its private part of the registry therefore multiple accounts on the same device are possible.

Multiple accounts

To use multiple accounts in Gladiabots one has to create multiple Windows users and start the game with the desired user logged in. Otherwise it is possible to hold the Shift key while right clicking the Gladiabots shortcut and choose "run as a different user".

Information.png
Creating multiple accounts in a Windows environment 
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.

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.
Information.png
Batch command to start the game as different Windows user 
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 batch file or shortcut with this command starts Gladiabots using another user:

  • Runas /user:MyComputer\Gladiatest /savecred "C:\Gladiabots\Gladiabots.exe"

Creating 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. Opening Registry Editor by either searching for Registry Editor in the start menu or by pressing Windows key+r and inserting the command regedit into the run window.
  2. Navigate to the folder HKEY_CURRENT_USER\Software\GFX47\Gladiabots, right click it and choose Export from the menu.
  3. Select a backup folder, a filename and press save to create the backup.
Information.png
Batch commands to create a backup 

A batch file or shortcut with this command creates a backup of the game data of the current user:

  • reg export HKEY_CURRENT_USER\Software\GFX47\Gladiabots "C:\Gladiabots\Backup.reg"

A batch file or shortcut with this command creates a backup of the game data for another user:

  • Runas /user:MyComputer\Gladiatest /savecred "reg export HKEY_CURRENT_USER\Software\GFX47\Gladiabots \"C:\Gladiabots\Backup Gladiatest.reg\""

Restoring backups

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.