File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -220,4 +220,5 @@ def update_controls(self, action: np.ndarray):
220
220
221
221
222
222
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)
Original file line number Diff line number Diff line change
1
+ import sys
1
2
from pathlib import Path
2
3
3
4
from rlbot .managers import MatchManager
8
9
RLBOT_SERVER_FOLDER = DIR / "../"
9
10
10
11
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
+
11
17
# start the match
12
18
match_manager = MatchManager (RLBOT_SERVER_FOLDER )
13
- match_manager .start_match (MATCH_CONFIG_PATH , False )
19
+ match_manager .start_match (match_config_path , False )
14
20
15
21
# wait
16
22
input ("\n Press enter to end the match: " )
You can’t perform that action at this time.
0 commit comments