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

Ability to import roms to different path #472

Closed BillHuang2001 closed 1 year ago

BillHuang2001 commented 1 year ago

Currently, it automatically import roms to site-packages/ale_py/roms, however this folder many be read-only or the user simply don't have the permission to access it. It would be nice if I can import roms to places like my ~/.ale_py

JesseFarebro commented 1 year ago

Hi @BillHuang2001, you can set the environment variable ALE_PY_ROM_DIR and point to a directory where ROMs exist and the plugin should pick them up.

Also, the environment variable won't be picked up for the ale-import-roms. It'll only be picked up when the ALE is loaded and we'll look for ROMs of the form: $ALE_PY_ROM_DIR/{name}.bin that match the MD5 hash on this list: https://github.com/mgbellemare/Arcade-Learning-Environment/blob/master/md5.txt.

Hope that helps.

BillHuang2001 commented 1 year ago

Thanks, that really solves my problem.