python -m virtualenv .env
<- creates default environment
.env\Scripts\activate
<- activate environment
pip install -r requirements.txt
<-- install requirements
pip install torch===1.4.0 torchvision===0.5.0 -f https://download.pytorch.org/whl/torch_stable.html
<-- install pytorch
from gym import envs; print(envs.registry.all())
<- Python code for gym
import retro; retro.data.list_games()
<- Python code for gym retro
python -m retro.import .\<path_to_roms_folder>\
Old Atari Games - AtariMania <- some free Atari games
Sega Genesis Classics - Steam <- buy games and load them into retro
Ripping Roms from Cartriges - RetroGameBoards <- how to extract games from physical cartriges
Games like SuperMarioKart are not supported by retro gym, but you can make them work yourself. All you need is the roms and to follow up the instructions bellow.
I've also provided my own files which should work if you allready have a rom.sfc file.
Step 1: Open .env\Lib\site-packages\retro\data\stable in a new window (this we call the "stable folder")
Step 2: Place your rom.sfc file into environments\SuperMarioKart-Snes
Step 3: Copy SuperMarioKart-Snes into the stable folder
Step 4: import retro; env=retro.make(game='SuperMarioKart-Snes');
OpenAI Suported Games - Github <- importing allready supported games in retro
Integrating Games in Retro - Retro.io <- official documentation for integrating new games in retro
Game Integration UI - Retro.io <- where to download the integration ui
Integration UI issues - Retro.io <- problems using the integration ui
- Add support for CPU training
- Create models folder and add mlp encoders
- Remove OpenCV dependencies
Lucas Thompson - Youtube <- retro-gym integration and general good starting point