Skip to content

Commit d091fd6

Browse files
committed
Use JPK's rlgym_compat
1 parent eabe5ef commit d091fd6

File tree

7 files changed

+3
-228
lines changed

7 files changed

+3
-228
lines changed

tests/necto/bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Necto(Bot):
5454
def initialize_agent(self):
5555
# Initialize the rlgym GameState object now that the game is active and the info is available
5656
self.obs_builder = NectoObsBuilder(self.field_info)
57-
self.game_state = GameState(self.field_info)
57+
self.game_state = GameState(self.field_info, self.tick_skip)
5858

5959
self.logger.warning(
6060
"Remember to run Necto at 120fps with vsync off! "
@@ -117,7 +117,7 @@ def get_output(self, packet: GameTickPacket) -> ControllerState:
117117
if len(packet.balls) == 0:
118118
return self.controls
119119

120-
self.game_state.decode(packet, ticks_elapsed)
120+
self.game_state.decode(packet)
121121

122122
if self.update_action == 1 and len(self.game_state.players) > self.index:
123123
self.update_action = 0

tests/necto/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
rlbot==5.*
22
numpy==1.*
3+
rlgym_compat @ git+https://github.com/JPK314/rlgym-compat@v5-rework
34
--find-links https://download.pytorch.org/whl/torch_stable.html
45
torch==2.3.1+cpu

tests/necto/rlgym_compat/__init__.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/necto/rlgym_compat/common_values.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/necto/rlgym_compat/game_state.py

Lines changed: 0 additions & 89 deletions
This file was deleted.

tests/necto/rlgym_compat/physics_object.py

Lines changed: 0 additions & 113 deletions
This file was deleted.

tests/necto/rlgym_compat/player_data.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)