Skip to content

Commit fd3757f

Browse files
committed
Fix ball pred always being None
1 parent 6151bca commit fd3757f

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

pyproject.toml

+1-1
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.3",
11+
"rlbot_flatbuffers~=0.14.4",
1212
"psutil==7.*",
1313
]
1414
readme = "README.md"

rlbot/interface.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,9 @@ def handle_incoming_message(
342342
handler(match_comm)
343343
case SocketDataType.BALL_PREDICTION:
344344
if len(self.ball_prediction_handlers) > 0:
345-
ball_prediction = self._ball_pred.unpack_with(incoming_message.data)
345+
self._ball_pred.unpack_with(incoming_message.data)
346346
for handler in self.ball_prediction_handlers:
347-
handler(ball_prediction)
347+
handler(self._ball_pred)
348348
case SocketDataType.CONTROLLABLE_TEAM_INFO:
349349
if len(self.controllable_team_info_handlers) > 0:
350350
player_mappings = flat.ControllableTeamInfo.unpack(

rlbot/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.0.0-beta.32"
1+
__version__ = "2.0.0-beta.33"

tests/fashion/bot.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66

77

88
class Fashion(Bot):
9+
standard_loadout: flat.PlayerLoadout
10+
911
def initialize(self):
10-
self.set_loadout(load_player_loadout("../necto/loadout.toml", self.team))
12+
self.standard_loadout = load_player_loadout("../necto/loadout.toml", self.team)
13+
self.set_loadout(self.standard_loadout)
1114

1215
def get_output(self, packet: flat.GamePacket) -> flat.ControllerState:
1316
return flat.ControllerState()

0 commit comments

Comments
 (0)