Skip to main content

A framework for writing training for Rocket League bots.

Project description

RLBotTraining

Customizable training for Rocket Leage bots of any language.

Installation

  • Install RLBot
  • Clone this repo (RLBot/RLBotTraining)
  • Run the file run_exercises.bat

Features at a glance

  • Uses RLBot config files to support bots in any programming language
  • Reproducable training setups with randomness
  • Customizable Pass/Fail criteria
  • Importing of shots/playlists from BakkesMod training

Architecture

  • At the entry point (run_exercises.py) we decide which GraderExercise should be run and the config_paths define the RLBot setup to be used (which bots, which mode).
  • Each GraderExercise composes together the initial game state and how the bot is judged. The responsibility of judging the bot is handled by Graders
  • A Grader decides whether to continue the exercise or to Pass/Fail the exercise by looking at each tick. A Grader may optionally gather metrics (e.g. "time until goal") to help track bot performance as the bot is improved.
  • Separation of responsiblity: This repository is designed to make it nice to define new exercises whereas the training API of the RLBot framework provides the minimum features for any training to occur.

Tips for writing your own exercises:

  • Always subclass GraderExercise rather than Exercise. Using Graders will allows you to share termination conditions, safely store state across ticks and provide metrics.
  • Compose your Graders. For instance, by using CompoundGrader
  • Provide meaningful error messages in your Graders by subclassing Fail

Future direction

  • Provide playlists
  • Provide an example of striker vs goalie
  • Changes in exercise/grader source files automatically restarts the tests
  • Allow imports from RocketLeague Training
  • Put metrics (Grader.get_metrics()) into a database
  • A way of browsing past runs, including metrics
  • Reproducing failed exercises
  • Visualization of metrics
  • Continous integration of different bots

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rlbottraining-0.1.5.tar.gz (26.3 kB view details)

Uploaded Source

File details

Details for the file rlbottraining-0.1.5.tar.gz.

File metadata

  • Download URL: rlbottraining-0.1.5.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for rlbottraining-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f6c9e7c21b946e7e7dc970e97aa0c3d4ee6f0bf3e1e8a573651853ddcb85f8bb
MD5 d51af55c1bcb163d1ea19f57032ef681
BLAKE2b-256 d4ee66b2e622b654c11e2d64dd47d81e3972c6b9a0d61ae90f388a8d976e046c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page