atari-py icon indicating copy to clipboard operation
atari-py copied to clipboard

Unable to load ROMs with ale.loadROM()

Open Gregliest opened this issue 3 years ago • 2 comments

I followed the directions in the readme for downloading, unrarring/unzipping, and loading the rom files. I can see them in .local/lib/python3.8/site-packages/atari_py/atari_roms.

However, ale.loadROM() is unable to find the ROM file:

>>> import atari_py
>>> ale = atari_py.ALEInterface()
>>> ale.loadROM("pong.bin")
ROM file pong.bin not found.

My C++ is a bit rusty, but looks like this might be wanting a full path? https://github.com/openai/atari-py/blob/master/atari_py/ale_interface/src/ale_interface.cpp#L124

I wasn't able to get the solution for the gym to work for just the base library.

Gregliest avatar Sep 01 '21 04:09 Gregliest

Figure this out. The roms have to be in a folder called roms, not atari_roms. Seems like a bug with the import script.

Gregliest avatar Sep 05 '21 04:09 Gregliest

https://github.com/openai/atari-py/blob/master/atari_py/games.py#L8 should be roms instead of atari_roms for this case, but not sure where else this is used. (Also the exception should change with it, https://github.com/openai/atari-py/blob/master/atari_py/games.py#L10)

Gregliest avatar Sep 05 '21 04:09 Gregliest