Skip to content

Commit 12c587b

Browse files
committed
Reads args for path to match toml
Add default agent it to necto
1 parent 0bfc730 commit 12c587b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

tests/necto/bot.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,5 @@ def update_controls(self, action: np.ndarray):
220220

221221

222222
if __name__ == "__main__":
223-
Necto().run(wants_match_communications=False, wants_ball_predictions=False)
223+
Necto("rlgym/necto").run(wants_match_communications=False, wants_ball_predictions=False)
224+
# Necto("rlgym/necto").run(wants_match_communications=False)

tests/run_only.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
from pathlib import Path
23

34
from rlbot.managers import MatchManager
@@ -8,9 +9,14 @@
89
RLBOT_SERVER_FOLDER = DIR / "../"
910

1011
if __name__ == "__main__":
12+
match_config_path = MATCH_CONFIG_PATH
13+
if len(sys.argv) > 1:
14+
match_config_path = Path(sys.argv[1])
15+
assert match_config_path.exists(), f"Match config not found: {match_config_path}"
16+
1117
# start the match
1218
match_manager = MatchManager(RLBOT_SERVER_FOLDER)
13-
match_manager.start_match(MATCH_CONFIG_PATH, False)
19+
match_manager.start_match(match_config_path, False)
1420

1521
# wait
1622
input("\nPress enter to end the match: ")

0 commit comments

Comments
 (0)