File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ class SocketRelay:
66
66
is_connected = False
67
67
_running = False
68
68
"""Indicates whether a messages are being handled by the `run` loop (potentially in a background thread)"""
69
+ _ball_pred = flat .BallPrediction ()
69
70
70
71
on_connect_handlers : list [Callable [[], None ]] = []
71
72
packet_handlers : list [Callable [[flat .GamePacket ], None ]] = []
@@ -341,7 +342,7 @@ def handle_incoming_message(
341
342
handler (match_comm )
342
343
case SocketDataType .BALL_PREDICTION :
343
344
if len (self .ball_prediction_handlers ) > 0 :
344
- ball_prediction = flat . BallPrediction . unpack (incoming_message .data )
345
+ ball_prediction = self . _ball_pred . unpack_with (incoming_message .data )
345
346
for handler in self .ball_prediction_handlers :
346
347
handler (ball_prediction )
347
348
case SocketDataType .CONTROLLABLE_TEAM_INFO :
Original file line number Diff line number Diff line change 1
- __version__ = "2.0.0-beta.27 "
1
+ __version__ = "2.0.0-beta.28 "
Original file line number Diff line number Diff line change @@ -220,5 +220,6 @@ def update_controls(self, action: np.ndarray):
220
220
221
221
222
222
if __name__ == "__main__" :
223
- Necto ("rlgym/necto" ).run (wants_match_communications = False , wants_ball_predictions = False )
224
- # Necto("rlgym/necto").run(wants_match_communications=False)
223
+ Necto ("rlgym/necto" ).run (
224
+ wants_match_communications = False , wants_ball_predictions = False
225
+ )
You can’t perform that action at this time.
0 commit comments