Difference between revisions of "Multiplayer Basics"

From Gladiabots Wiki
Jump to: navigation, search
(2 intermediate revisions by 2 users not shown)
Line 30: Line 30:
 
If a player wants to watch a replay he needs to press the replay button and enter the replay ID afterwards. A replay can only be watched if the {{#tip-text: version of the game resolution engine | The game resolution engine needs to change if updates change game mechanic due to new features or bugfixes. Not every new version uses a new game resolution engine. }} of the viewer matches the version of the game resolution engine of the deploying players.
 
If a player wants to watch a replay he needs to press the replay button and enter the replay ID afterwards. A replay can only be watched if the {{#tip-text: version of the game resolution engine | The game resolution engine needs to change if updates change game mechanic due to new features or bugfixes. Not every new version uses a new game resolution engine. }} of the viewer matches the version of the game resolution engine of the deploying players.
  
== Sync accounts ==
+
== Synced 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 ===
 
  
 +
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
 +
=== 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]]
  
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:
+
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
  
# Close the game on the first account.
+
{{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}}
# Upon opening the second account the data sync conflict message should appear:
+
== Multiple accounts and backup ==
#* Choose '''use server data'''.
+
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".
#* The changes should be synced.
+
 
+
=== Resolving data sync conflict messages ===
+
 
+
Sometimes there is a data sync conflict message and it's not clear which of the accounts is up to date. <span style="color:red">'''Warning:'''</span> If the wrong option is selected all changes could be reverted. The following steps are recommended to solve this conflict:
+
 
+
# 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.
+
# Close the game on every synced account.
+
# Launch the game on the account that is up to date.
+
#* When the data sync conflict message appears choose '''keep local data'''.
+
# Launch the game on all other accounts.
+
#* When the data sync conflict message appears choose '''use server data'''.
+
 
+
== Windows: Multiple accounts and backup ==
+
  
 +
<!--
 
=== Creating multiple accounts on the same device ===
 
=== Creating multiple accounts on the same device ===
  
<span style="color:red">'''Warning:'''</span> 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.}}
  
 
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:
 
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:
Line 78: Line 55:
 
=== Playing with a different account ===
 
=== Playing with a different account ===
  
<span style="color:red">'''Warning:'''</span> 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:
 
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:
  
 
# 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.
 
# 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.
 +
-->
 +
=== Creating and restoring backups ===
  
=== 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.}}
 
+
<span style="color:red">'''Warning:'''</span> 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:
 
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:
Line 95: Line 72:
  
 
# 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.
 
# 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.
 
+
<span style="color:red">'''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>
=== Restoring a backup ===
+
 
+
<span style="color:red">'''Warning:'''</span> 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 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 {{#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.

Revision as of 04:29, 10 October 2017

Playing matches

Ranked match with match details in the tooltip.

The real competition takes place in career mode. The matches between 2 players are created asynchronously according to the matchmaking rules. Both players first need to deploy a match by assigning bot classes and programs to each bot. If both players deployed the match, the match can be watched by them. After either of the players watched the full match to the very end, the reward of XP points is given to them and the league score points are exchanged between them.

Game mode League score points XP points Description
Ranked matches normal impact normal impact This is where the real competition takes place.
Unranked matches no impact small impact Playing against random players of other leagues.
Private matches no impact no impact Playing against friends or other players of the community.
Tournament matches no impact no impact This is where the official and unofficial tournaments will appear.

Leaderboard and stats

Ingame leaderboard

The ingame leaderboard shows the current league ranking, the league score points, the XP level and the victory ratio. The stats button opens the Gladiabots stats page in the web browser showing further information about the players and the leagues. Both leaderboards hide inactive players. The website can show inactive players on demand.

Sharing matches

To share a ranked, unranked, private or tournament match with friends or the community one needs to find its replay ID. The replay ID is either accessible as tooltip by hovering or tipping on the match or it can be found on the Gladiabots stats latest matches page. This replay ID can be shared with other players.

If a player wants to watch a replay he needs to press the replay button and enter the replay ID afterwards. A replay can only be watched if the version of the game resolution engine of the viewer matches the version of the game resolution engine of the deploying players.

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".

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.

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.