From 98e2ae5fcfc911c3c94dc47826ea1d8de781267d Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Sat, 8 Jun 2024 00:38:35 -0400 Subject: [PATCH] Uncomment action ignore --- pokemonred_puffer/environment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pokemonred_puffer/environment.py b/pokemonred_puffer/environment.py index 88e4fcc..3f4fa5e 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -630,8 +630,8 @@ def run_action_on_emulator(self, action): self.action_hist[action] += 1 # press button then release after some steps # TODO: Add video saving logic - # self.pyboy.send_input(VALID_ACTIONS[action]) - # self.pyboy.send_input(VALID_RELEASE_ACTIONS[action], delay=8) + self.pyboy.send_input(VALID_ACTIONS[action]) + self.pyboy.send_input(VALID_RELEASE_ACTIONS[action], delay=8) self.pyboy.tick(self.action_freq, render=True) if self.read_bit(0xD803, 0):