Farama-Foundation / Arcade-Learning-Environment

The Arcade Learning Environment (ALE) -- a platform for AI research.
GNU General Public License v2.0
2.12k stars 420 forks source link

BattleZone #444

Closed slerman12 closed 2 years ago

slerman12 commented 2 years ago

I am getting this:

RuntimeError: Invalid game mode requested

For ALE/BattleZone-v5.

slerman12 commented 2 years ago

Other games work, just this one is a choke point for some reason

JesseFarebro commented 2 years ago

Hi @slerman12,

I'm unable to reproduce this issue. Could you give me more information on your setup? This error probably stems from passing the mode kwarg to the gym.make constructor. If you are doing this you should note that there is no universal default mode, i.e., mode 0 won't be available on every game. You should pass mode=None if you want the default game mode.

Edit: I realize the confusion might stem from copying and pasting the v5 initialization from my blog post. I apologize for this and I'll update the blog post to reflect the proper default of mode=None, difficulty=None.

slerman12 commented 2 years ago

Thanks, I removed the gym mode parameter. Hopefully that's equivalent to setting it to None