This is the 0.4 release of the Arcade Learning Environment (ALE), a platform designed for AI research. ALE is based on Stella, an Atari 2600 VCS emulator.
License: GNU General Public License v2.0
C++ 46.58%C 27.19%TeX 3.34%Prolog 11.01%Makefile 0.59%SAS 0.04%CLIPS 0.12%Ada 2.10%Assembly 3.25%Pascal 1.65%C# 1.27%Perl 0.09%CMake 0.29%Batchfile 0.01%DIGITAL Command Language 0.64%HTML 0.70%Module Management System 0.04%M4 0.92%Roff 0.18%
There is an undocumented and undisplayed error in the code that should be addressed. If an improper name of the ROM is used (for example "Breakout" instead of "breakout"), the program simply crashes with a SEGFAULT leaving the user clueless of what they are doing wrong.
The problem is caused by the buildRomRLWrapper function within the games/Roms.cpp file, where the loop is looking through a list of supported ROMs. If the name isn't matched exactly, the method silently returns NULL, causing a crash down the road.
Here are a couple of proposed solutions:
Make a note in the README files about the list of supported ROMs and their proper naming convention
If possible, make the program output a warning inside the buildRomRLWrapper function before the NULL is returned. Say something like "The ROM XXX isn't supported. Please make sure the name is written correctly!"
Fix this entirely, by asking the user to provide the codename (or some kind of ID) of the game, together with the ROM file, instead of relying on the file name itself - which is a poor practice.
Use md5sum in a hashmap to determine which game ROM it is that you are trying to load
When I run $PREFIX/bin/luarocks make under /tmp/xitari, I got the following error:
CMake Error: Generator: execution of make failed. Make command was: /tmp/xitari/make "cmTryCompileExec69850377/fast"
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /tmp/xitari/CMakeFiles/CMakeTmp
Run Build Command:/tmp/xitari/make "cmTryCompileExec69850377/fast"
Permission denied
Generator: execution of make failed. Make command was: /tmp/xitari/make
"cmTryCompileExec69850377/fast"