atari-py
atari-py copied to clipboard
Unable to load ROMs with ale.loadROM()
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.
Figure this out. The roms have to be in a folder called roms
, not atari_roms
. Seems like a bug with the import script.
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)