Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bmburkhardt opened this issue Mar 25, 2018 · 1 comment
Open

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

bmburkhardt opened this issue Mar 25, 2018 · 1 comment

Comments

@bmburkhardt
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants