You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-34Lines changed: 22 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,53 +7,41 @@ Example of a Rocket League bot implemented in C#
7
7
1. Make sure you've installed [Python 3.6 64 bit](https://www.python.org/ftp/python/3.6.5/python-3.6.5-amd64.exe). During installation:
8
8
- Select "Add Python to PATH"
9
9
- Make sure pip is included in the installation
10
-
2. Make sure you've installed the [.NET Framework 4.6.1](https://www.microsoft.com/en-us/download/details.aspx?id=49981) (or newer)
11
-
3. Open Rocket League
12
-
4. Double click on the bot executable (`RLBotCSharpExample/RLBotCSharpExample/bin/x64/Release/RLBotCSharpExample.exe`) and leave it running.
13
-
5. Double click on run-gui.bat
14
-
6. Click the 'Run' button
10
+
2. Install Visual Studio 2015 or newer. It should come with .NET Framework 4.6.1 or newer.
11
+
3. Open RLBotCSharpExample\RLBotCSharpExample.sln in Visual Studio.
12
+
4. In Visual Studio, click the "Start" button, which should compile and run the bot. Leave it running.
13
+
5. Open Rocket League
14
+
6. Double click on run-gui.bat
15
+
7. Click the 'Run' button
15
16
16
17
### Notes
17
18
18
19
- Bot behavior is controlled by `RLBotCSharpExample/RLBotCSharpExample/ExampleBot.cs`
19
20
- Bot appearance is controlled by `CSharpPythonAgent/appearance.cfg`
20
-
- The bot executable's folder MUST contain `FlatBuffers.dll` and `RLBotDotNet.dll`.
21
-
- The bot executable's folder MUST contain a folder called `dll` containing `RLBot_Core_Interface.dll`.
22
-
- The port given in `port.cfg` MUST match the port given to BotManager in the C# project.
23
21
24
-
##Compilation instructions
22
+
### Tournament submissions
25
23
26
-
The bot executable should work out of the box, however you'll want to recompile after making your own changes.
24
+
When submitting to a tournament, you will need to include several files.
27
25
28
-
You won't need to recompile anything other than the bot but if you want the latest and greatest, you can also recompile `FlatBuffers.dll`, `RLBotDotNet.dll`, and `RLBot_Core_Interface.dll`. If you choose to recompile the DLLs, make sure that the bot project references the new DLLs you recompiled.
26
+
Some can be found under RLBotCSharpExample/RLBotCSharpExample/bin after you compile in Visual Studio:
27
+
- RLBotCSharpExample.exe
28
+
- FlatBuffers.dll
29
+
- RLBotDotNet.dll
30
+
- port.cfg
29
31
30
-
### Bot compilation
32
+
You should also include the entire CSharpPythonAgent folder. This folder also contains a port.cfg file. *Make sure their contents are identical!*
31
33
32
-
1. Open `RLBotCSharpExample/RLBotCSharpExample.sln` in Visual Studio 2015 or newer.
33
-
2. Click Build in the menu, then click Build Solution (or press Ctrl+Shift+B).
34
-
3. The compiled executable should appear in a folder in `RLBotCSharpExample/RLBotCSharpExample/bin`.
34
+
### Upgrades
35
35
36
-
The example bot references both RLBotDotNet.dll and FlatBuffers.dll.
36
+
This project uses a package manager called NuGet to keep track of the RLBot framework.
37
+
The framework will get updates periodically, and you'll probably want them, especially if you want to make sure
38
+
your bot will work right in the next tournament! To upgrade:
37
39
38
-
### FlatBuffers DLL compilation
40
+
1. Open the project in Visual Studio.
41
+
2. Right click on the RLBotCSharpExample C# project, and choose "Manage NuGet Packages..."
42
+
3. Click on the "Installed" tab. You should see a package called "RLBot.Framework".
43
+
4. If an update is available, it should say so and give you the option to upgrade.
39
44
40
-
1. Download/clone the [FlatBuffers repository](https://github.com/google/flatbuffers).
41
-
2. Open `FlatBuffers.csproj` (located in `net/FlatBuffers`).
42
-
3. Choose your configurations and build the project.
0 commit comments