Skip to content

Commit 154904d

Browse files
Rename config to config_file and boost to boost_amount
1 parent d049371 commit 154904d

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description = "A high performance Python interface for communicating with RLBot
88
dynamic = ["version"]
99
requires-python = ">= 3.11"
1010
dependencies = [
11-
"rlbot_flatbuffers~=0.13.0",
11+
"rlbot_flatbuffers~=0.14.0",
1212
"psutil==6.*",
1313
]
1414
readme = "README.md"

rlbot/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def load_match_config(config_path: Path | str) -> flat.MatchConfiguration:
3333

3434
players = []
3535
for car_table in config.get("cars", []):
36-
car_config = car_table.get("config")
36+
car_config = car_table.get("config_file")
3737
name = car_table.get("name", "")
3838
team = car_table.get("team", 0)
3939
try:
@@ -67,7 +67,7 @@ def load_match_config(config_path: Path | str) -> flat.MatchConfiguration:
6767

6868
scripts = []
6969
for script_table in config.get("scripts", []):
70-
if script_config := script_table.get("config"):
70+
if script_config := script_table.get("config_file"):
7171
abs_config_path = (config_path.parent / script_config).resolve()
7272
scripts.append(load_script_config(abs_config_path))
7373
else:
@@ -85,7 +85,7 @@ def load_match_config(config_path: Path | str) -> flat.MatchConfiguration:
8585
ball_weight=__parse_enum(mutator_table, "ball_weight", flat.BallWeightMutator),
8686
ball_size=__parse_enum(mutator_table, "ball_size", flat.BallSizeMutator),
8787
ball_bounciness=__parse_enum(mutator_table, "ball_bounciness", flat.BallBouncinessMutator),
88-
boost=__parse_enum(mutator_table, "boost_amount", flat.BoostMutator),
88+
boost_amount=__parse_enum(mutator_table, "boost_amount", flat.BoostMutator),
8989
rumble=__parse_enum(mutator_table, "rumble", flat.RumbleMutator),
9090
boost_strength=__parse_enum(mutator_table, "boost_strength", flat.BoostStrengthMutator),
9191
gravity=__parse_enum(mutator_table, "gravity", flat.GravityMutator),

tests/hivemind.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ type = "human"
1313
team = 0
1414

1515
[[cars]]
16-
config = "hivemind/bot.toml"
16+
config_file = "hivemind/bot.toml"
1717
team = 0
1818

1919
[[cars]]
20-
config = "hivemind/bot.toml"
20+
config_file = "hivemind/bot.toml"
2121
team = 0
2222

2323
[[cars]]
24-
config = "hivemind/bot.toml"
24+
config_file = "hivemind/bot.toml"
2525
team = 1
2626

2727
[[cars]]
28-
config = "hivemind/bot.toml"
28+
config_file = "hivemind/bot.toml"
2929
team = 1
3030

3131
[[cars]]
32-
config = "hivemind/bot.toml"
32+
config_file = "hivemind/bot.toml"
3333
team = 1

tests/human_vs_atba.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ type = "human"
1414
team = 0
1515

1616
[[cars]]
17-
config = "atba/atba.bot.toml"
17+
config_file = "atba/atba.bot.toml"
1818
team = 1

tests/human_vs_necto.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ type = "human"
1414
team = 0
1515

1616
[[cars]]
17-
config = "necto/bot.toml"
17+
config_file = "necto/bot.toml"
1818
team = 1

tests/psy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ game_map_upk = "Stadium_P"
88

99
[[cars]]
1010
team = 0
11-
config = "psy/bot.toml"
11+
config_file = "psy/bot.toml"
1212
type = "psyonix"
1313
skill = "beginner"
1414

tests/render_test.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ type = "human"
1111
team = 0
1212

1313
[[scripts]]
14-
config = "render_test/script.toml"
14+
config_file = "render_test/script.toml"

tests/rlbot.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ auto_save_replay = false
1515
[[cars]]
1616
# The location of the configuration file for your agent here
1717
# The path is always relative to the folder that this file is in
18-
config = "atba/atba.bot.toml"
18+
config_file = "atba/atba.bot.toml"
1919
# Which team the player should be on:
2020
# team 0 (blue) shoots on positive goal, team 1 (orange) shoots on negative goal
2121
team = 0
@@ -27,12 +27,12 @@ team = 0
2727
type = "rlbot"
2828

2929
[[cars]]
30-
config = "atba/atba.bot.toml"
30+
config_file = "atba/atba.bot.toml"
3131
team = 1
3232
# you don't have to specify type/skill for rlbots
3333

3434
[[cars]]
35-
config = "necto/bot.toml"
35+
config_file = "necto/bot.toml"
3636
team = 0
3737

3838
[[cars]]
@@ -58,4 +58,4 @@ ball_bounciness = "SuperHigh"
5858
boost_amount = "UnlimitedBoost"
5959
rumble = "SpikesOnly"
6060
boost_strength = "OneAndAHalf"
61-
respawn_time = "OneSecond"
61+
respawn_time = "OneSecond"

tests/series.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ existing_match_behavior = "ContinueAndSpawn"
1010
skip_replays = true
1111

1212
[[cars]]
13-
config = "necto/bot.toml"
13+
config_file = "necto/bot.toml"
1414
team = 1
1515

1616
[[cars]]
17-
config = "necto/bot.toml"
17+
config_file = "necto/bot.toml"
1818
team = 0

0 commit comments

Comments
 (0)