Skip to content

Commit ef8005a

Browse files
committed
Update to newest spec
1 parent aa43e8c commit ef8005a

24 files changed

+47
-39
lines changed

rlbot/config.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ def load_match_config(config_path: Path | str) -> flat.MatchConfiguration:
9999
load_player_config(abs_config_path, team, name, loadout_file)
100100
)
101101
case "psyonix":
102-
abs_config_path = (config_path.parent / car_config).resolve()
102+
abs_config_path = (
103+
(config_path.parent / car_config).resolve() if car_config else None
104+
)
103105
players.append(
104106
load_psyonix_config(
105107
team,
@@ -153,6 +155,17 @@ def load_match_config(config_path: Path | str) -> flat.MatchConfiguration:
153155
audio=__enum(mutator_table, "audio", flat.AudioMutator),
154156
)
155157

158+
try:
159+
enable_rendering = (
160+
flat.DebugRendering.OnByDefault
161+
if __bool(match_table, "enable_rendering")
162+
else flat.DebugRendering.OffByDefault
163+
)
164+
except ConfigParsingException:
165+
enable_rendering = __enum(
166+
match_table, "enable_rendering", flat.DebugRendering.AlwaysOff
167+
)
168+
156169
return flat.MatchConfiguration(
157170
launcher=__enum(rlbot_table, "launcher", flat.Launcher),
158171
launcher_arg=__str(rlbot_table, "launcher_arg"),
@@ -168,9 +181,7 @@ def load_match_config(config_path: Path | str) -> flat.MatchConfiguration:
168181
existing_match_behavior=__enum(
169182
match_table, "existing_match_behavior", flat.ExistingMatchBehavior
170183
),
171-
enable_rendering=__enum(
172-
match_table, "enable_rendering", flat.DebugRendering.OffByDefault
173-
),
184+
enable_rendering=enable_rendering,
174185
enable_state_setting=__bool(match_table, "enable_state_setting"),
175186
freeplay=__bool(match_table, "freeplay"),
176187
)

rlbot/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.0.0-beta.44"
1+
__version__ = "2.0.0-beta.46"

tests/default.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ wait_for_agents = true
1111

1212
[match]
1313
# What game mode the game should load.
14-
# Accepted values are "Soccer", "Hoops", "Dropshot", "Hockey", "Rumble", "Heatseeker", "Gridiron", "Knockout"
15-
game_mode = "Soccer"
14+
# Accepted values are "Soccar", "Hoops", "Dropshot", "Snowday", "Rumble", "Heatseeker", "Gridiron", "Knockout"
15+
game_mode = "Soccar"
1616
# Which map the game should load into. Ensure the map doesn't end in '.upk'.
1717
game_map_upk = "Stadium_P"
1818
# Automatically skip replays after a goal. Also stops match replays from being saved.

tests/gamemodes/beach_ball.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[match]
2-
game_mode = "Soccer"
2+
game_mode = "Soccar"
33
# Map set currently unknown
44
game_map_upk = "Stadium_P"
55

tests/gamemodes/boomer_ball.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[match]
2-
game_mode = "Soccer"
2+
game_mode = "Soccar"
33

44
[mutators]
55
boost_amount = "UnlimitedBoost"

tests/gamemodes/gforce_frenzy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[match]
2-
game_mode = "Soccer"
2+
game_mode = "Soccar"
33

44
[mutators]
55
boost_amount = "UnlimitedBoost"

tests/gamemodes/ghost_hunt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
launcher = "Steam"
33

44
[match]
5-
game_mode = "Soccer"
5+
game_mode = "Soccar"
66
game_map_upk = "Haunted_TrainStation_P"
77

88
[mutators]

tests/gamemodes/gotham_city_rumble.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
launcher = "Steam"
33

44
[match]
5-
game_mode = "Soccer"
5+
game_mode = "Soccar"
66
game_map_upk = "Park_Bman_P"
77

88
[mutators]

tests/gamemodes/nike_fc_showdown.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[match]
2-
game_mode = "Soccer"
2+
game_mode = "Soccar"
33
game_map_upk = "swoosh_p"
44

55
[mutators]

tests/gamemodes/speed_demon.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[match]
2-
game_mode = "Soccer"
2+
game_mode = "Soccar"
33

44
[mutators]
55
boost_amount = "UnlimitedBoost"

0 commit comments

Comments
 (0)