Suivant Précédent Table des matières

5. Options

RealTimeBattle est configurable par une flopée d'options, regroupée en différents groupes. La philosophie est de vous donner une liberté totale pour définir le jeu comme vous le voulez. Néanmoins, certaines combinaisons d'options peuvent être mauvaise et causer des malfonctionnements du programme.

5.1 Options environmentales

Constante gravitationelle:

L'accéleration due a la gravité. Elle vaut à peu près 9.8 sur terre. Un augmentation augmentera les frottements et ralentira les robots.

Resistence de l'air:

Elle augmente avec la vitesse.

Frottement due au roulement:

Le frottement dans la direction du robot s'il ne freine pas.

Frottement de glissement:

Le frottement orthogonal à la direction du robot. C'est aussi le frottement maximum lors du freinage.

5.2 Options du robot

Acceleration maximum du robot:

Les robots ne peuvent pas accèlerer plus vite que ça et ...

Acceleration minimum du robot:

... moins vite que ça.

Rayon du Robot:

Détermine la taille du robot.

Masse du Robot:

Si la masse du robot est augmentée, les impacts lors de collisions seront plus violents.

Coefficient de rebondissement:

Affecte le rebondissement des robots. Si il est nul, les robot se cognant resteront colés, si la valeur est 1, ils agiront comme de parfaites boules de billard.

Coefficient de rigidité:

Détermine à quel point le robot sera endommagé lors d'une collision. Plus la valeur est basse, plus les matériaux seront fragiles.

Coefficient de protection:

Influence la protection du robot. Ce facteur est multiplié par l'énergie de dégas pour obtenir la reduction d'énergie du robot.

Avant du robot:

L'avant du robot est une partie faite d'un autre materiel, en général plus dur et protecteur. Ainsi les robots peuvent abimer les autres en leur rentrant dedans.

Coefficient de rebondissement du Robot:

voir les 4 parties précédentes.

Coefficient de dureté du Robot:

Même chose...

Coefficient de protection du Robot:

Pareil...

Energie de départ:

The amount of energy the robots will have at the beginning of each game.

Robot max energy:

By eating a cookie, the robot can increase its energy; not more than this, though.

Robot max rotate speed:

How fast the robot itself may rotate. Unit: radians/s .

Robot cannon max rotate speed:

Maximum cannon rotate speed. Note that the cannon and the radar move relative to the robot, so the actual rotation speed may be higher.

Robot radar max rotate speed:

Maximum radar rotate speed. See note above.

Robot energy levels:

The robot will only know its energy approximately. This will decide how many discretation levels will be used.

5.3 Shot options

Shot radius:

Size of shots. Should be less than robot radius.

Shot speed:

Shots are moving with this speed in the direction of the cannon plus the velocity of the robot.

Shooting penalty:

When shooting the robot itself gets damaged. This is the factor, by which the shot energy is multiplied, to get the damaging energy. If the number of robots is large, this number is reduced, so that you never lose in average by shooting (if you hit).

Shot min energy:

The lowest shot energy allowed. A robot trying to shoot with less energy will fail to shoot.

Shot max potential energy:

The robots have a shot energy, which increases with time, but will never exceed this value.

Shot potential energy increase speed:

Determines how fast the robots shot energy noted above, will increase. Unit: energy/s .

5.4 Extras options

Cookie max energy:

The cookie energy is a random number between cookie max energy and cookie min energy.

Cookie min energy:

See above.

Cookie frequency:

The number of cookie per second that will appear in average.

Cookie radius:

Size of cookie.

Mine max energy:

The mine energy is a random number between mine max energy and mine min energy.

Mine min energy:

See above.

Mine frequency:

The number of mine per second that will appear in average.

Mine radius:

Size of mine.

Cookie colour:

Cookie colour in hexadecimal red-green-blue form.

Mine colour:

As above.

5.5 Time options

Timeout:

This is the longest time a game will take. When the time is up all remaining robots are killed, without getting any more points.

Max timestep:

If the computer is temporarily slowed down, the time between updates can be to long. Setting this option will make the program artificially slow down the clock in those cases and therefore violate the realtimeness.

Time scale:

Increasing time scale to more than one means that the game clock will go faster than an ordinary clock. Changing this value can be usefull if you either want to give the robots more time or if you have a fast computer you may want to speed the game up.

Update interval:

This option determines the time between robot updates, i.e., how often the robot states are changed. It is not influenced by the 'Time Scale' and cannot be altered when the program is running. The accuracy is 1/100 s (depending of the precision of the system that RealTimeBattle is running on).

Robot startup time:

Determines the time between the robot processes are executed and the sequence begins. If robots are black and have no name, you may need to increase the startup time from the default of one second. This can happen if, for example, the robots are many, large or you are running on a slow or remote computer.

Start CPU time:

In competition-mode a robot's CPU usage is limited. At the beginning of a sequence a robot will get this amount of CPU time to spend.

Extra CPU time:

When the start CPU time is spent, the robot will get this amount of extra CPU time.

Extra CPU period:

The extra CPU time must last an entire CPU period, otherwise the robot will die in the current game.

CPU warning percentage:

When the robot has used up this amount of its CPU time it will receive a warning message.

Process check interval:

In competition-mode this will decide how often the program will check for CPU usage.

Logging frequency:

To reduce the size of log files you can increase this option. With this option, robot position info are only logged every n:th update interval.

5.6 Window sizes

Here you can set the initial sizes for some windows, namely the arena window, the message window, the score window and the statistics window. You can also set the position for the first three and the control window.

5.7 Miscellaneous options

Arena scale:

Overall scale of the arena. A value of 2 gives double sidelength, i.e., a four times larger area.

Fast forward factor:

Determines, when replaying, the speed when the fast forward button or the rewind button is pressed.

Max robots allowed simultaneously:

Allows the user to change the maximum amount of robots allowed in a sequence. If there are too many, the system might complain (how many depends on the system).

Background colour:

Background colour and ...

Foreground colour:

... foreground colour for the arena.

Colour for RTB messages:

Colour for the text when RTB sends messages.

Robot search path:

This is a colon-separated list of directories which will be searched for robots when a new tournament is started. The subdirectory Robots in the rtb install directory (default: /usr/local/games/RealTimeBattle) is always searched.

Arena search path:

Same as above, but for arena files instead of robots. Here the subdirectory is Arenas.


Next Previous Contents