Comments (3)
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.
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:
-
Using Virtual Box to install a fresh Ubuntu 16.04 (64-bit)
-
Ran sudo apt-get install git
-
Ran git clone https://github.com/nadavbh12/Retro-Learning-Environment
-
Ran sudo apt-get install libsdl1.2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev cmake
-
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
-
Modified doc/examples/python_example.py line 24 (this was an undocumented step in the instructions):
USE_SDL = False
to..
USE_SDL = True -
Ran doc/examples/python python_example.py ../../roms/classic_kong.smc snes
The game played but was only outputting the score to the console. -
Just to make sure we were doing it correctly, we also tried installing https://github.com/mgbellemare/Arcade-Learning-Environment
-
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 -
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.
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)
- deep_q_rl error HOT 5
- Problem with python installer HOT 2
- Test with DQN tensorflow version HOT 1
- Illegal instruction (core dumped) when loading the ROM HOT 19
- Trouble installing on mac osx (Yosemite, 10.10.5) HOT 1
- python_interface gives wrong game screen dimensions HOT 1
- Trouble installing on AWS HOT 1
- Issue compiling on Ubuntu HOT 13
- Install RLE on CentOS Linux release 7.2.1511 HOT 4
- ImportError: cannot import name 'RLEInterface' HOT 6
- In Street Fighter II, rle.game_over() automatically set to true in the middle of the game HOT 3
- fix setup.py HOT 1
- Snes9X HOT 1
- Python quick start HOT 4
- game_over() set to True when Mario gets a Mushroom in Super Mario World HOT 6
- [Question] What is the core_file in the python example? HOT 1
- Can not get SDL display to work with python example. HOT 1
- Python3 compatability HOT 1
- Compile error HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from retro-learning-environment.