rlbot

crates.io docs Build Status

[RLBot] is a framework for creating offline Rocket League bots. This crate lets you write bots using a simple, safe interface that should feel comfortable to Rust developers.

Stability: As you might notice, we're still on version 0.x. Breaking changes are likely at this stage. Join the [Discord] to keep up-to-date!

Usage

Your code will look a little something like this:

```rust use rlbot::ffi;

fn main() -> Result<(), Box> { rlbot::run_bot(MyBot { /* ... */ }) }

struct MyBot { /* ... */ }

impl rlbot::Bot for MyBot { fn tick(&mut self, packet: &ffi::LiveDataPacket) -> ffi::PlayerInput { // ... } } ```

This library comes with plenty of examples to get you started. For a list of examples, check out the [docs].

Installing the framework

RLBot is needed to use this RLBot binding, of course. If the framework is not found in any of Windows's [DLL search locations], init() will return this error:

text Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." }

You'll need to download [these files] from RLBot:

Place them in a directory in your $PATH. Alternatively, if you don't want to pollute your system, place them in your crate's target directory, e.g. target/debug or target/release).