Skip to content

Commit 9449d43

Browse files
committed
Add gamemode toml examples
1 parent 94cc06e commit 9449d43

32 files changed

+363
-18
lines changed

rlbot/managers/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def initialize_agent(self):
196196
def retire(self):
197197
"""Called after the game ends"""
198198

199-
def get_output(self, game_tick_packet: flat.GameTickPacket) -> flat.ControllerState:
199+
def get_output(self, packet: flat.GameTickPacket) -> flat.ControllerState:
200200
"""
201201
Where all the logic of your bot gets its input and returns its output.
202202
"""

rlbot/managers/hivemind.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def retire(self):
203203
"""Called after the game ends"""
204204

205205
def get_outputs(
206-
self, game_tick_packet: flat.GameTickPacket
206+
self, packet: flat.GameTickPacket
207207
) -> dict[int, flat.ControllerState]:
208208
"""
209209
Where all the logic of your bot gets its input and returns its output.

rlbot/managers/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,5 +151,5 @@ def initialize_agent(self):
151151
def retire(self):
152152
"""Called after the game ends"""
153153

154-
def handle_packet(self, game_tick_packet: flat.GameTickPacket):
154+
def handle_packet(self, packet: flat.GameTickPacket):
155155
pass

tests/default.toml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[rlbot]
2-
# rocket_league_exe_path = "epicgames/path/to/rocketleague.exe"
3-
# "Steam", "Epic"
2+
# "Steam", "Epic", "Custom"
43
launcher = "steam"
54
# Should RLBot start the bot processes automatically, or will a separate script start them
65
auto_start_bots = true
@@ -11,7 +10,7 @@ num_cars = 0
1110
# Number of scripts which will be spawned.
1211
num_scripts = 0
1312
# What game mode the game should load.
14-
# Accepted values are "Soccer", "Hoops", "Dropshot", "Hockey", "Rumble", "Heatseeker", "Gridiron"
13+
# Accepted values are "Soccer", "Hoops", "Dropshot", "Hockey", "Rumble", "Heatseeker", "Gridiron", "Knockout"
1514
game_mode = "Soccer"
1615
# Which map the game should load into
1716
game_map_upk = "Stadium_P"
@@ -41,27 +40,29 @@ overtime = "Unlimited"
4140
game_speed = "Default"
4241
# "Default", "Slow", "Fast", "Super_Fast"
4342
ball_max_speed = "Default"
44-
# "Default", "Cube", "Puck", "Basketball", "Beachball", "Anniversary", "Haunted"
43+
# "Default", "Cube", "Puck", "Basketball", "Beachball", "Anniversary", "Haunted", "Ekin"
4544
ball_type = "Default"
46-
# "Default", "Light", "Heavy", "Super_Light", "Curve_Ball", "Beach_Ball_Curve"
45+
# "Default", "Light", "Heavy", "Super_Light", "Curve_Ball", "Beach_Ball_Curve", "Magnus_FutBall"
4746
ball_weight = "Default"
48-
# "Default", "Small", "Large", "Gigantic"
47+
# "Default", "Small", "Medium", "Large", "Gigantic"
4948
ball_size = "Default"
50-
# "Default", "Low", "High", "Super_High"
49+
# "Default", "Low", "LowishBounciness", "High", "Super_High"
5150
ball_bounciness = "Default"
5251
# "Normal_Boost", "Unlimited_Boost", "Slow_Recharge", "Rapid_Recharge", "No_Boost"
5352
boost_amount = "Normal_Boost"
54-
# "No_Rumble", "Default", "Slow", "Civilized", "Destruction_Derby", "Spring_Loaded", "Spikes_Only", "Spike_Rush", "Haunted_Ball_Beam", "Tactical"
53+
# "No_Rumble", "Default", "Slow", "Civilized", "Destruction_Derby", "Spring_Loaded", "Spikes_Only", "Spike_Rush", "Haunted_Ball_Beam", "Tactical", "BatmanRumble"
5554
rumble = "No_Rumble"
56-
# "One", "OneAndAHalf", "Two", "Ten"
55+
# "One", "OneAndAHalf", "Two", "Five", "Ten"
5756
boost_strength = "One"
5857
# "Default", "Low", "High", "Super_High", "Reverse"
5958
gravity = "Default"
6059
# "Default", "Disabled", "Friendly_Fire", "On_Contact", "On_Contact_FF"
6160
demolish = "Default"
62-
# "Three_Seconds", "Two_Seconds", "One_Seconds", "Disable_Goal_Reset"
61+
# "Three_Seconds", "Two_Seconds", "One_Second", "Disable_Goal_Reset"
6362
respawn_time = "Three_Seconds"
64-
65-
[[cars]]
66-
type = "human"
67-
team = 0
63+
# "Default", "Eleven_Minutes"
64+
max_time = "Default"
65+
# "Default", "Haunted", "Rugby"
66+
game_event = "Default"
67+
# "Default", "Haunted"
68+
audio = "Default"

tests/gamemodes/beach_ball.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[match]
2+
num_cars = 1
3+
game_mode = "Soccer"
4+
# Map set currently unknown
5+
game_map_upk = "Stadium_P"
6+
7+
[mutators]
8+
ball_max_speed = "Fast"
9+
ball_type = "Beachball"
10+
ball_weight = "Beach_Ball_Curve"
11+
ball_size = "Medium"
12+
ball_bounciness = "High"
13+
14+
[[cars]]
15+
type = "human"
16+
team = 0

tests/gamemodes/boomer_ball.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[match]
2+
num_cars = 1
3+
game_mode = "Soccer"
4+
5+
[mutators]
6+
boost_amount = "Unlimited_Boost"
7+
boost_strength = "OneAndAHalf"
8+
ball_max_speed = "Super_Fast"
9+
ball_bounciness = "High"
10+
ball_weight = "Super_Light"
11+
12+
[[cars]]
13+
type = "human"
14+
team = 0

tests/gamemodes/default.toml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
[match]
3+
num_cars = 1
4+
# What game mode the game should load.
5+
# Accepted values are "Soccer", "Hoops", "Dropshot", "Hockey", "Rumble", "Heatseeker", "Gridiron", "Knockout"
6+
game_mode = "Soccer"
7+
# Which map the game should load into
8+
game_map_upk = "Stadium_P"
9+
10+
[mutators]
11+
# "Five_Minutes", "Ten_Minutes", "Twenty_Minutes", "Unlimited"
12+
match_length = "Five_Minutes"
13+
# "Default", "One_Goal", "Three_Goals", "Five_Goals", "Seven Goals", "Unlimited"
14+
max_score = "Default"
15+
# "One", "Two", "Four", "Six"
16+
multi_ball = "One"
17+
# "Unlimited", "Five_Max_First_Score", "Five_Max_Random_Team"
18+
overtime = "Unlimited"
19+
# "Default", "Slo_Mo", "Time_Warp"
20+
game_speed = "Default"
21+
# "Default", "Slow", "Fast", "Super_Fast"
22+
ball_max_speed = "Default"
23+
# "Default", "Cube", "Puck", "Basketball", "Beachball", "Anniversary", "Haunted", "Ekin"
24+
ball_type = "Default"
25+
# "Default", "Light", "Heavy", "Super_Light", "Curve_Ball", "Beach_Ball_Curve", "Magnus_FutBall"
26+
ball_weight = "Default"
27+
# "Default", "Small", "Medium", "Large", "Gigantic"
28+
ball_size = "Default"
29+
# "Default", "Low", "LowishBounciness", "High", "Super_High"
30+
ball_bounciness = "Default"
31+
# "Normal_Boost", "Unlimited_Boost", "Slow_Recharge", "Rapid_Recharge", "No_Boost"
32+
boost_amount = "Normal_Boost"
33+
# "No_Rumble", "Default", "Slow", "Civilized", "Destruction_Derby", "Spring_Loaded", "Spikes_Only", "Spike_Rush", "Haunted_Ball_Beam", "Tactical", "BatmanRumble"
34+
rumble = "No_Rumble"
35+
# "One", "OneAndAHalf", "Two", "Five", "Ten"
36+
boost_strength = "One"
37+
# "Default", "Low", "High", "Super_High", "Reverse"
38+
gravity = "Default"
39+
# "Default", "Disabled", "Friendly_Fire", "On_Contact", "On_Contact_FF"
40+
demolish = "Default"
41+
# "Three_Seconds", "Two_Seconds", "One_Second", "Disable_Goal_Reset"
42+
respawn_time = "Three_Seconds"
43+
# "Default", "Eleven_Minutes"
44+
max_time = "Default"
45+
# "Default", "Haunted", "Rugby"
46+
game_event = "Default"
47+
# "Default", "Haunted"
48+
audio = "Default"
49+
50+
[[cars]]
51+
type = "human"
52+
team = 0

tests/gamemodes/dropshot.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[match]
2+
num_cars = 1
3+
game_mode = "Dropshot"
4+
game_map_upk = "ShatterShot_P"
5+
6+
[[cars]]
7+
type = "human"
8+
team = 0
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[match]
2+
num_cars = 1
3+
game_mode = "Dropshot"
4+
game_map_upk = "ShatterShot_P"
5+
6+
[mutators]
7+
rumble = "Default"
8+
9+
[[cars]]
10+
type = "human"
11+
team = 0

tests/gamemodes/gforce_frenzy.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
[match]
3+
num_cars = 1
4+
game_mode = "Soccer"
5+
6+
[mutators]
7+
boost_amount = "Unlimited_Boost"
8+
boost_strength = "Five"
9+
gravity = "Low"
10+
11+
[[cars]]
12+
type = "human"
13+
team = 0

0 commit comments

Comments
 (0)