Skip to content

Commit d004862

Browse files
authored
Merge pull request #20 from NicEastvillage/config_inconsistencies
Rename config to config_file and boost to boost_amount
2 parents afd114b + 9cc0407 commit d004862

9 files changed

+19
-19
lines changed

pyproject.toml

+1-1
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

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def load_match_config(config_path: Path | str) -> flat.MatchConfiguration:
7979

8080
players = []
8181
for car_table in config.get("cars", []):
82-
car_config = __str(car_table, "config")
82+
car_config = __str(car_table, "config_file")
8383
name = __str(car_table, "name")
8484
team = __team(car_table)
8585
loadout_file = __str(car_table, "loadout_file") or None
@@ -108,7 +108,7 @@ def load_match_config(config_path: Path | str) -> flat.MatchConfiguration:
108108

109109
scripts = []
110110
for script_table in config.get("scripts", []):
111-
if script_config := __str(script_table, "config"):
111+
if script_config := __str(script_table, "config_file"):
112112
abs_config_path = (config_path.parent / script_config).resolve()
113113
scripts.append(load_script_config(abs_config_path))
114114
else:
@@ -126,7 +126,7 @@ def load_match_config(config_path: Path | str) -> flat.MatchConfiguration:
126126
ball_weight=__enum(mutator_table, "ball_weight", flat.BallWeightMutator),
127127
ball_size=__enum(mutator_table, "ball_size", flat.BallSizeMutator),
128128
ball_bounciness=__enum(mutator_table, "ball_bounciness", flat.BallBouncinessMutator),
129-
boost=__enum(mutator_table, "boost_amount", flat.BoostMutator),
129+
boost_amount=__enum(mutator_table, "boost_amount", flat.BoostAmountMutator),
130130
rumble=__enum(mutator_table, "rumble", flat.RumbleMutator),
131131
boost_strength=__enum(mutator_table, "boost_strength", flat.BoostStrengthMutator),
132132
gravity=__enum(mutator_table, "gravity", flat.GravityMutator),

tests/hivemind.toml

+5-5
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ type = "human"
1515
team = 0
1616

1717
[[cars]]
18-
config = "atba/atba.bot.toml"
18+
config_file = "atba/atba.bot.toml"
1919
team = 1

tests/human_vs_necto.toml

+1-1
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

+1-1
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

+1-1
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

+4-4
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

+2-2
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)