• The friendly Linux forum for all users.
Dismiss Notice
Welcome to Linux Forum! As we have just launched, please help us grow by telling your friends about us and posting in the forum. Thanks!

Linux Arcade System

Discussion in 'LF Linux Articles' started by Jarret, Dec 22, 2016.

  1. Jarret

    Jarret Moderator Staff Member

    pacman.png

    How about turning your Linux system into an arcade system? Making your computer into an arcade system can make for some interesting fun. Actual arcade games that everyone had to pump quarters into all day and get nowhere, you can now do it at home without the need for quarters.

    Debian (Linux Mint)

    To install the Multiple Machine Arcade Emulator (MAME), you need to perform the following commands:

    1. sudo add-apt-repository ppa:faco/mame
    2. sudo apt-get update
    3. duso apt-get install mame
    4. mame -createconfig

    NOTE: If Step #1 gives an error then run 'sudo apt-get install software-properties-common'. Once done, try Step #1 again.

    In a terminal when you type the command 'mame -createconfig', it creates a default configuration file in '/home/username/.mame'. MAME should be installed and ready to go with a few configuration changes and at least one game ROM for the emulator to load when it is started. Check below for the section 'Configuration Changes'.

    Redhat (CentOS 6)

    To install SDLMAME, you need to perform the following steps:

    1. download the file http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
    2. sudo rpm -Uvh rpmforge-release-0.5.3-1.el6.rf.i686.rpm
    3. sudo yum install sdlmame
    4. sdlmame -createconfig

    NOTE: If you have a different OS version or even 64-bit, go to http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/ and then follow the folders pertaining to your OS and architecture. The file name in Step #2 will change according to the file you download.

    SDLMAME should be installed now and will require a few configuration tweaks to make it run properly as well as a game ROM to load when started. Set #4 creates the config file called 'sdlmame.ini' in the HOME folder. Continue on with the section 'Configuration Changes'.

    Configuration Changes

    Once installed, the default configuration settings must be changed to allow for better play.
    Let's start with setting up the folders needed. In your users HOME folder, create a folder called 'mame'. Inside the 'mame' and the '.mame' folder create the following folders:

    cfg
    nvram
    memcard
    inp
    sta
    snap
    diff
    comments
    roms
    samples
    artwork
    ctrlr

    Inside the mame.ini file is the Core Search Path Options. These can all stay the same, but the 'rompath' needs to be set to '/home/username/mame/roms'. Also, make sure the path to the INI file is correct. About half way down the INI file is a section for 'OSD VIDEO OPTIONS' or 'VIDEO OPTIONS'. A setting here for 'video' has an option set for 'opengl'. Change 'opengl' to 'soft'. Without this setting any ROM using vector graphics will not display correctly.
    Once all edits have been made to the INI file, make sure it is saved and then exit the text editor. Figure 1 shows the MAME.INI for MAME and Figure 2 shows the SDLMAME.INI for SDLMAME.

    Figure 01.jpg
    FIGURE 1

    Figure 02.jpg
    FIGURE 2


    NOTE: Remember that id SDLMAME generates errors about files missing it is most likely due to an incorrect ROMPATH.

    ROMS

    Hopefully everything has been set up correctly so far. If it has been then all you need is a ROM. A ROM is the Read-Only Memory, or the chip, inside the original arcade game. The ROM chip held the commands that made the game. Most of these have been copied to ROM files and can now be played on a MAME system – which includes SDLMAME. Before we start into the ROMs themselves, you will need a few BIOS files. Certain games relied on the code present on separate chips. The links to the BIOS chips are as follows:

    Namco50 http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/namco50/143852
    Namco51 http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/namco51/143853
    Namco52 http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/namco52/143854
    Namco53 http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/namco53/143855
    Namco54 http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/namco54/143856
    Namco62 http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/namco62/143857
    MAME BIOS Pack http://www.emuparadise.me/biosfiles/MAMEBIOS.rar (includes Neo Geo)
    NeoGeo http://fantasyanime.com/files/emulators/neogeo.zip

    Download all of these and place them in your 'roms' folder. You do not have to uncompress them, except for the MAME BIOS Pack. The MAME BIOS Pack is a compressed collection of BIOS files which each are in their own zip file.
    Once you have the BIOS files, you are ready to start getting ROMS. To download a ROM, you must have the legal right to use it. The ROM must be either free or you have some claim of ownership or right to use it. I compiled a collection of ROMs from the top 10 Arcade Games, Top 10 Classic Arcade Games and the Top 10 Grossing Arcade Games. Since some are on multiple lists, there are only a total of 18 Arcade Game ROMs. The game and a link are as follows:

    1. Star Wars (rev 2) http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/Star_Wars_(rev_2)/17100
    2. Tempest (rev 3) http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/Tempest_(rev_3)/17374
    3. Pac-Man http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/Pac-Man_(Midway)/15250
    4. Ms. Pac-Man http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/Ms._Pac-Man/14862
    5. Galaga http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/Galaga_(Namco_rev._B)/13051
    6. Donkey Kong (both files are needed)
    Donkey Kong (Set 1) http://www.emuparadise.me/M.A.M.E._...ne_Emulator_ROMs/Donkey_Kong_(US_set_1)/12499
    Donkey Kong (Set 2) http://www.emuparadise.me/M.A.M.E._...ne_Emulator_ROMs/Donkey_Kong_(US_set_2)/12498
    7. Dig Dug http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/Dig_Dug_(rev_2)/12456
    8. Asteroids http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/Asteroids_(rev_2)/11207
    9. Defender (Red Label) http://www.emuparadise.me/M.A.M.E._...hine_Emulator_ROMs/Defender_(Red_label)/12398
    10. Tron (all four files are needed)
    Tron (8/9) http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/Tron_(8--9)/17669
    Tron (6/25) http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/Tron_(6--25)/17666
    Tron (6/17) http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/Tron_(6--17)/17667
    Tron (6/15) http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/Tron_(6--15)/17668
    11. Centipede http://www.emuparadise.me/M.A.M.E._...ne_Emulator_ROMs/Centipede_(revision_3)/11807
    12. Space Invaders http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/Space_Invaders_--_Space_Invaders_M/13774
    13. Street Fighter II – Champion Edition http://www.emuparadise.me/M.A.M.E._...r_II'_-_Champion_Edition_(World_920313)/16389
    14. NBA Jam http://www.emuparadise.me/M.A.M.E._...ator_ROMs/NBA_Jam_(rev_3.01_04--07--93)/15001
    15. Mortal Kombat http://www.emuparadise.me/M.A.M.E._...rtal_Kombat_(rev_5.0_T-Unit_03--19--93)/14703
    16. Mortal Kombat II http://www.emuparadise.me/M.A.M.E._...ulator_ROMs/Mortal_Kombat_II_(rev_L3.1)/14687
    17. Street Fighter II – World Warrior http://www.emuparadise.me/M.A.M.E._...r_II_-_The_World_Warrior_(World_910522)/16419
    18. Gauntlet http://www.emuparadise.me/M.A.M.E._-_Multiple_Arcade_Machine_Emulator_ROMs/Gauntlet_(rev_14)/13138

    The list contains the 18 popular games and BIOS files to run them. There are many more ROMS around the Internet. Some ROM files can be less than a megabyte (which run fine). Some ROMs are more than a megabyte, like the Mortal Kombat and Street Fighter games, which can run a little slow.

    Controls

    The basic controls to get you started with MAME and SDLMAME are as follows:

    5, 6, 7, 8 Insert coin (can be for each player 1-4)
    1. 1, 2, 3, 4 Start button for Players 1-4
    F3 Game reset
    F7 Load saved game from slot 1-10
    Left Shift + F7 Save game to slot 1-10
    F10 Speed throttle to speed up game
    F12 Saves image of game to snapshot folder
    ESC Exit game
    Arrow keys Move Player 1
    Left CTRL Fire 1 (Player 1)
    Left ALT Fire 2 (Player 1)
    SPACE Fire 3 (Player 1)
    Left SHIFT Fire 4 (Player 1)
    Z Fire 5 (Player 1)
    X Fire 6 (Player 1)
    R, F, G, D Move Player 2
    A Fire 1 (Player 2)
    S Fire 2 (Player 2)
    Q Fire 3 (Player 2)
    W Fire 4 (Player 2)
    TAB Menu for specific game

    By pressing the TAB key after a ROM is loaded you can change the Input for MAME and SDLMAME or just for the loaded game.

    Starting the Emulator

    MAME is started by typing 'mame' in a terminal and pressing enter. You will be taken into a menu system where you can use the arrow keys to find a ROM or you can type the ROM name. The ROM name is the name before the '.zip' on the ROM you downloaded.
    SDLMAME is started by typing 'sdlmame ROM-name' from a terminal. The ROM-name is the name before the '.zip' in the filename. For example, to load Tron you would type 'sdlmame tron'. Since SDLMAME is completely command line you can download a front-end Graphical User Interface (GUI) to make it easier to load ROMs.
    I hope you enjoy the classic arcade games. Happy Gaming!
     

Share This Page