Coder Social home page Coder Social logo

Comments (3)

nadavbh12 avatar nadavbh12 commented on July 21, 2024

Try verifying that SDL is indeed on by adding a print into an SDL ifdef.
Have you installed all SDL dependencies?

from retro-learning-environment.

piquirez avatar piquirez commented on July 21, 2024

Hi, many thanks for your reply. We've been trying to make the screen display work without success. Here is the steps we've followed:

  1. Using Virtual Box to install a fresh Ubuntu 16.04 (64-bit)

  2. Ran sudo apt-get install git

  3. Ran git clone https://github.com/nadavbh12/Retro-Learning-Environment

  4. Ran sudo apt-get install libsdl1.2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev cmake

  5. Ran the below as per instructions

mkdir build && cd build
cmake -DUSE_SDL=ON -DBUILD_EXAMPLES=ON ..
make -j 4
pip install rle-python-interface

  1. Modified doc/examples/python_example.py line 24 (this was an undocumented step in the instructions):
    USE_SDL = False
    to..
    USE_SDL = True

  2. Ran doc/examples/python python_example.py ../../roms/classic_kong.smc snes
    The game played but was only outputting the score to the console.

  3. Just to make sure we were doing it correctly, we also tried installing https://github.com/mgbellemare/Arcade-Learning-Environment

  4. We followed the instructions, repeated step 6 above (USE_SDL = True) and then ran doc/examples/python_example.py roms/space_invaders.bin
    It ran perfectly and did display the game to X windows

  5. We then thought it might be Donkey Kong, so we ran the following in RLE:

doc/examples/python_example.py roms/space_invaders.bin atari

However it said:

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.
Core loaded
Running ROM file...
Random seed is 123
ERROR: ../../roms/space_invaders.bin ROM file name is invalid.
Rename the ROM so it is underscore separated. For example: super_mario_world.sfc

Any thoughts? Your help would be greatly appreciated. We can now get started with the ALE but it would be great if we could test our AI on some SNES games.
Kind regards,
Felipe

from retro-learning-environment.

nadavbh12 avatar nadavbh12 commented on July 21, 2024

The problem is that you're installing RLE from pypi rather than from your local repository.

If you wish to work with Python and view the screen with SDL, you should edit setup.py and add the USE_SDL=ON flag, then run pip install . without the make steps.

Another, probably better, option is to use a Python image viewer or use the gym-rle repository which we recently finished creating.

from retro-learning-environment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.