Skip to content

Commit d328ce9

Browse files
committed
Add ensure_server_started option to start_match
1 parent 88c2c8c commit d328ce9

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
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.14.4",
11+
"rlbot_flatbuffers~=0.14.5",
1212
"psutil==7.*",
1313
]
1414
readme = "README.md"

rlbot/managers/match.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,19 @@ def wait_for_first_packet(self):
9696
sleep(0.1)
9797

9898
def start_match(
99-
self, config: Path | flat.MatchConfiguration, wait_for_start: bool = True
99+
self,
100+
config: Path | flat.MatchConfiguration,
101+
wait_for_start: bool = True,
102+
ensure_server_started: bool = True,
100103
):
101104
"""
102105
Starts a match using the given match settings or a path to a match settings toml file.
103106
Connection is automatically established if missing. Call `connect` if you
104107
want this process to receive match communication or ball prediction messages.
105108
"""
106109

107-
self.ensure_server_started()
110+
if ensure_server_started:
111+
self.ensure_server_started()
108112

109113
if not self.rlbot_interface.is_connected:
110114
self.connect(

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.35"
1+
__version__ = "2.0.0-beta.36"

0 commit comments

Comments
 (0)