diff --git a/config.yaml b/config.yaml index f6092a9..023bf01 100644 --- a/config.yaml +++ b/config.yaml @@ -7,7 +7,7 @@ debug: env: headless: False stream_wrapper: False - init_state: victory_road + init_state: Bulbasaur max_steps: 16 log_frequency: 1 disable_wild_encounters: True @@ -22,7 +22,7 @@ debug: num_envs: 1 envs_per_worker: 1 num_workers: 1 - env_batch_size: 32 + env_batch_size: 128 env_pool: True zero_copy: False batch_size: 128 diff --git a/pokemonred_puffer/environment.py b/pokemonred_puffer/environment.py index d9e026a..f16a332 100644 --- a/pokemonred_puffer/environment.py +++ b/pokemonred_puffer/environment.py @@ -678,9 +678,10 @@ def run_action_on_emulator(self, action): if not self.disable_ai_actions: 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) + self.pyboy.tick(self.action_freq, render=False) while self.read_m("wJoyIgnore"): - self.pyboy.tick(1, render=False) + self.pyboy.button("a", delay=8) + self.pyboy.tick(24, render=False) if self.events.get_event("EVENT_GOT_HM01"): if self.auto_teach_cut and not self.check_if_party_has_hm(0x0F):