We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
self.rlbot_server_port
1 parent fd3757f commit 5c428b1Copy full SHA for 5c428b1
rlbot/interface.py
@@ -214,7 +214,9 @@ def connect(
214
if time.time() > begin_time + next_warning:
215
next_warning *= 2
216
self.logger.warning(
217
- "Connection is being refused/aborted. Trying again ..."
+ "Connection is being refused/aborted on %s:%s. Trying again ...",
218
+ rlbot_server_ip,
219
+ rlbot_server_port,
220
)
221
if not self.is_connected:
222
raise ConnectionRefusedError(
rlbot/managers/match.py
@@ -70,7 +70,7 @@ def connect(
70
wants_ball_predictions: bool,
71
close_between_matches: bool = True,
72
rlbot_server_ip: str = RLBOT_SERVER_IP,
73
- rlbot_server_port: int = RLBOT_SERVER_PORT,
+ rlbot_server_port: Optional[int] = None,
74
):
75
"""
76
Connects to the RLBot server specifying the given settings.
@@ -85,7 +85,7 @@ def connect(
85
wants_ball_predictions=wants_ball_predictions,
86
close_between_matches=close_between_matches,
87
rlbot_server_ip=rlbot_server_ip,
88
- rlbot_server_port=rlbot_server_port,
+ rlbot_server_port=rlbot_server_port or self.rlbot_server_port,
89
90
91
def wait_for_first_packet(self):
@@ -107,7 +107,7 @@ def start_match(
107
self.ensure_server_started()
108
109
if not self.rlbot_interface.is_connected:
110
- self.rlbot_interface.connect(
+ self.connect(
111
wants_match_communications=False,
112
wants_ball_predictions=False,
113
close_between_matches=False,
rlbot/version.py
@@ -1 +1 @@
1
-__version__ = "2.0.0-beta.33"
+__version__ = "2.0.0-beta.34"
0 commit comments