Skip to content

Pausing Agent Not Supported in v2? #212

@lonely-neutrino

Description

@lonely-neutrino

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions