-
Notifications
You must be signed in to change notification settings - Fork 752
Description
Is the functionality of pausing the agent by changing "yes" to "no" in "agent_enabled.txt" no longer supported in v2, and if so is there a strong reason why? When I try making this change I get the following error:
Traceback (most recent call last):
File "\PokemonRedExperiments\v2\run_pretrained_interactive.py", line 83, in
obs, rewards, terminated, truncated, info = env.step(action)
File "\PokemonRedExperiments\v2\red_gym_env_v2.py", line 206, in step
self.run_action_on_emulator(action)
File "\PokemonRedExperiments\v2\red_gym_env_v2.py", line 251, in run_action_on_emulator
self.pyboy.send_input(self.valid_actions[action])
IndexError: list index out of range
This makes sense since the pass action is 7 (at line 75 of "run_pretrained_interactive" we have "action = 7 # pass action") and the list of actions is only 7 long. It seems that in "baselines" there were two extra actions added to make this work, but I'm wondering why that doesn't show up in the v2 code. Mostly just curious about this, but if have other thoughts I'd love to hear them. Thanks!