A set of utitilies for making rocket league bots in C#
Make sure you've installed .NET SDK 6.0 x64,
AND make sure you've installed Python 3.7 64 bit or newer. During installation:
- Select "Add Python to PATH"
- Make sure pip is included in the installation
Set up RLBotGUI
- Set up and install the RLBotGUI, by following this along with this video.
- Use Add -> Load folder in RLBotGUI on the current directory. This bot should appear in the list.
- Install Visual Studio 2019 16.8 or newer.
- Open Bot.sln in Visual Studio.
- Edit the code as you see fit, and then compile
- In RLBotGUI, put the bot on a team and start the match.
- Install Rider. If you do not have Visual Studio installed alongside Rider, follow this article to set up Rider.
- Open Bot.sln in Rider.
- Edit the code as you see fit, and then compile
- In RLBotGUI, put the bot on a team and start the match.
This project uses a package manager called NuGet to keep track of the RLBot framework. The framework will get updates periodically, and you'll probably want them, especially if you want to make sure your bot will work right in the next tournament!
- In Visual Studio, right click on the Bot C# project and choose "Manage NuGet Packages..."
- Click on the "Installed" tab. You should see a package called "RLBot.Framework".
- If an upgrade is available, it should say so and give you the option to upgrade.
- In Rider, right click on the Bot C# project and choose "Manage NuGet Packages".
- In the "Installed Packages" section, click on the package called "RLBot.Framework".
- If the "Version" dropdown contains a higher version than what your project currently has, you can select that version and click the Upgrade button next to the dropdown to upgrade.
- Bot name, description, etc, is configured by
Bot.cfg
- Bot strategy is controlled by
Bot/Bot.cs
- Bot appearance is controlled by
Loadouts/loadout_generator.py
- To make your bot run as fast as possible, build it in release mode, and then change the "executable_path" in
Bot.cfg
to./Bot/bin/Release/net6.0/Bot.exe
- See the wiki for tips to improve your programming experience.
- If you'd like to keep up with bot strategies and bot tournaments, join our Discord server. It's the heart of the RLBot community!
The C# bot executable is a server that listens for Python clients.
When python_run_file.py
is started by the RLBot framework, it connects to the C# bot server and tells it its info.
Then, the C# bot server controls the bot through the RLBot_Core_Interface
DLL.
- ddthj/GoslingUtils for inspiration on some of the structure and code (which I ported to c#)
- VirxEC/VirxERLU for the basis of my aerial code (which I ported to c#)
- Darxeal/BotimusPrime for inspiration on some of the structure and driving code (which I ported to c#)