Skip to content

Configuration files ​

This guide describes the files stored in the Robocode Tank Royale user data directory.

gui.properties ​

The gui.properties file stores GUI settings and preferences. The file is created automatically when you first launch the GUI and is updated whenever you change settings through GUI Options.

Location:

{UserDataDirectory}/gui.properties

Example content:

properties
# GUI Language
locale=en
# UI Scaling for high-DPI displays
ui-scale=1.0
# Console settings
console-max-characters=10000
# Last used window dimensions and position
window-width=1200
window-height=800
window-x=100
window-y=100
PropertyDescriptionDefault
localeGUI languageen
ui-scaleUI scaling factor for high-DPI displays1.0
console-max-charactersMaximum characters retained in bot console10000
window-widthMain window width in pixels1200
window-heightMain window height in pixels800

Edit the file manually if needed, but the GUI Options dialog is usually the safer way to change these values.

server.properties ​

The server.properties file contains local server configuration, including authentication secrets for bots and controllers. It is created automatically when you first start the local server or GUI.

Location:

{UserDataDirectory}/server.properties

Example content:

properties
# Port number for the local server
port=7654
# Bot authentication secret
bots-secrets=/zWlsdEfhNX1YPggA9DJlw
# Controller authentication secret (for GUI and recorder)
controller-secrets=Xcrw0ydtiscD7L7xAT/K4g
# Enable server secrets authentication
enable-server-secrets=false
# Allow turn-by-turn debug stepping (set false for tournaments)
# debugModeSupported=true
# Allow breakpoint mode for debugged bots (set false for tournaments)
# breakpointModeSupported=true
PropertyDescriptionDefault
portWebSocket port for the local server7654
bots-secretsSecret for bot authenticationAuto-generated
controller-secretsSecret for controller and GUI authenticationAuto-generated
enable-server-secretsEnable or disable secret authenticationfalse
debugModeSupportedAllow turn-by-turn stepping; set false for tournamentstrue
breakpointModeSupportedAllow breakpoint mode for debugged bots; set false for tournamentstrue

Security considerations:

  • the secrets are generated automatically on first run
  • keep them confidential if you expose the server publicly
  • bots can provide the bot secret through the Bot API or the SERVER_SECRET environment variable

Edit this file manually if needed, then restart the server for changes to take effect.

game-setups.properties ​

The game-setups.properties file stores custom game configurations created through the Setup Rules dialog.

Location:

{UserDataDirectory}/game-setups.properties

Example content:

properties
# Custom game setup for testing
test-setup.game-type=custom
test-setup.arena-width=800
test-setup.arena-height=600
test-setup.number-of-rounds=5
test-setup.gun-cooling-rate=0.1
test-setup.min-number-of-participants=2
test-setup.max-number-of-participants=4
test-setup.max-inactivity-turns=450
test-setup.turn-timeout=10000
test-setup.ready-timeout=1000000
# Classic melee battle
melee.game-type=melee
melee.number-of-rounds=10
melee.min-number-of-participants=4
melee.max-number-of-participants=10
PropertyDescriptionTypical Values
game-typeType of gameclassic, melee, 1v1, custom
arena-widthArena width in pixels800 to 5000
arena-heightArena height in pixels600 to 5000
number-of-roundsNumber of rounds1 to 100+
gun-cooling-rateGun cooling rate per turn0.1
min-number-of-participantsMinimum bots required2
max-number-of-participantsMaximum bots allowed4 to 16+
max-inactivity-turnsTurns before inactivity penalty450
turn-timeoutMicroseconds per turn before skip10000
ready-timeoutMicroseconds for bot ready message1000000

You can create these entries from the GUI or edit them manually.

Released under the Apache License 2.0.