Backing up and resetting
This guide covers backup, migration, reset, and common troubleshooting tasks for Robocode Tank Royale user data.
Backing up your configuration
- Locate your user data directory
- Copy the entire directory to a backup location
- Store the backup somewhere safe
For the exact paths, see User data locations.
Migrating to a new computer
- Install Robocode Tank Royale on the new computer
- Locate the user data directory on the new computer
- Copy your backed-up configuration files into that directory
- Replace existing files if prompted
- Launch the GUI
Bot directories and bot files are not stored in the user data directory, so you must copy or download those separately and then reconfigure Bot Root Directories.
Resetting to defaults
- Close the GUI completely
- Locate your user data directory
- Delete or rename the directory
- Launch the GUI again
A new directory with default settings is created automatically.
Troubleshooting
Cannot find the user data directory
If you cannot locate the directory:
- Launch the GUI
- Open Help → About
- Check the runtime details and logs for the path in use
Or verify the environment-based location directly:
Windows
cmd
echo %LOCALAPPDATA%\Robocode Tank RoyalemacOS and Linux
bash
echo ~/Library/Application\ Support/Robocode\ Tank\ Royale
echo ~/.config/robocode-tank-royaleConfiguration is not being saved
Check that:
- you have write permission to the user data directory
- the directory is not read-only
- the GUI is not running in a protected location
Corrupted configuration files
If a .properties file becomes corrupted:
- Close the GUI
- Delete or rename the problematic file
- Restart the GUI
- Reconfigure the affected settings
Migrating old recordings
If you upgraded from version 0.34.1 or earlier, you might still have recordings in the old project-level recordings directory.
To migrate them:
- Locate the old
recordingsdirectory in your Robocode installation folder - Copy all
.battle.gzfiles - Paste them into the recordings directory under the user data directory