nadavbh12 / Retro-Learning-Environment

The Retro Learning Environment (RLE) -- a learning framework for AI
Other
185 stars 40 forks source link

Can not get SDL display to work with python example. #38

Open bmburkhardt opened 6 years ago

bmburkhardt commented 6 years ago

Hi, I'm having issues getting the SDL display to work for the python implementation. I feel I've followed steps correctly by looking at the original docs as well as a few solved solutions but I'm still not having any luck. Here is what I have done:

  1. Running Ubuntu 16.04
  2. sudo apt-get install libsdl1.2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev cmake
  3. added -DUSE_SDL=ON to the cmake args in setup.py
  4. ran "pip install ."
  5. changed "USE_SDL = False" to "USE_SDL = True" in python_example.py
  6. python doc/examples/python_example.py roms/classic_kong.smc snes
  7. Output: R.L.E: Retro Learning Environment (version 1.1.1) [Based upon the Arcade Learning Environment (A.L.E)] [Powered by LibRetro] Use -help for help screen. [inf] Frontend supports RGB565 - will use that instead of XRGB1555. Sound buffer size: 128000 (32000 samples) Core loaded [inf] No ROM file header found. Map_LoROMMap PPU.RenderSub = 1 PPU.FullClipping = 1 Settings.Transparency = 1 Settings.SpeedhackGameID = 0 PPU.SFXSpeedupHack = 0 coldata_update_screen = 1 [inf] "Classic Kong Complete0" [checksum ok] LoROM, 2Mbits, ROM, NTSC, SRAM:0Kbits, ID:SNES, CRC32:8FA368BE Running ROM file... Random seed is 123 ('Episode', 0, 'ended with score:', 200) ('Episode', 1, 'ended with score:', 500) ('Episode', 2, 'ended with score:', 1900) ('Episode', 3, 'ended with score:', 1900) ('Episode', 4, 'ended with score:', 800) ('Episode', 5, 'ended with score:', 100) ('Episode', 6, 'ended with score:', 400) ('Episode', 7, 'ended with score:', 900) ('Episode', 8, 'ended with score:', 400) ('Episode', 9, 'ended with score:', 100)

It runs just fine, however, there is no graphical display.

ewerlopes commented 6 years ago

Compile the shared library interface following the instructions in the README.md. Then, the easiest way to solve this, is to copy the 'snes9x2010_libretro.so' file into the folder 'rle_python_interface'.

Regards.