This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new Linux.com!

Linux.com

Feature: Games

Play Pac-man (and more!) on your PC

By Federico Kereki on November 22, 2007 (9:00:00 AM)

Share    Print    Comments   

If you have a fondness for old arcade games and want to play them again, try the Multiple Arcade Machine Emulator (MAME), a free emulator that lets you recreate the look and feel of old arcade game systems in software. While it's written for Windows, you can run this open source application under Linux.

MAME produces highly accurate video and audio emulation of every component of the original arcade games. Since the emulated games are usually older ones, which originally ran on 8- or 16-bit CPUs at (by today's standards) slow speeds, a 1GHz Pentium is fast enough to run MAME, though you'll want a faster machine for more recent games.

MAME was first released in February 1997 and is currently up to version 0.121, released not under the General Public License (GPL) but rather a special license. It's getting close to being able to run 4,000 different games and is in active development.

Run MAME on Linux

Several projects existed for porting MAME to Linux, but only one is still active. SDLMAME, based on the Windows code, aims to run MAME with as few changes as possible so it can follow new MAME releases more quickly. It runs on Linux (32- and 64-bit), FreeBSD, and Mac OS X. It even supports Windows, though it would make little sense to run SDLMAME instead of the original MAME.

To install SDLMAME, download the latest version. You must have installed the SDL and SDL-devel packages; get them with Smart, YaST, yum, or whatever package manager your distribution uses. Unzip the archive file and change to the directory it creates. Edit the makefile file to set the right option for your CPU type, then run make to create a mame executable file.

If downloading ROM images is legal in your country, a simple search will provide the files. Store the images (don't unzip them!) in the $HOME/bin/sdmame0121/roms directory. To play a game, enter ./mame theRomYouWantToPlay. (For Athlon processors, the command is mameat.) Everything from there on is automatic.

If you want to set up specific options, such as full screen or windowed game play, you can use ./mame -showusage to learn the possible parameters, and then create a mame.ini file with them, so you won't have to type them each time you play.

Certain keystrokes have special meaning under MAME:

  • Tab: Invoke the MAME menu.
  • Escape: Go back or end the game.
  • 5: Insert a quarter.
  • 1: Start a one-player game.

But is it legal?

Is it legal to play games with MAME? The authors say, "It is not our intention to infringe on any copyrights or patents on the original games," and provide advice on how users can avoid aggravated assault on the game developers' legal rights. But ROM and CD images are usually copyrighted material, which you cannot distribute without explicit permission from the owner of the copyright. Although you can use some games without a problem, most are still protected, and the copyright owners don't want to release the games in the open, because they're still producing income.

One myth about old games is that they've become "abandonware" and can be played at will. However, this is fiction: Unless a game is placed in the public domain, you cannot distribute or copy it without the permission of the owner until either 70 years have passed since his death or 95 years have passed since the first publication, if the copyright is held by a company.

To further muddy things up, remember that companies can merge, go broke, or just stop doing business, and the rights to their products may be transferred to a different company or reverted to the original authors. The mere fact that the original copyright owner or company doesn't exist anymore isn't good enough. (Some games can become "orphan works," which adds another whole slew of problems.)

If you want to get ROM images to play, you must be able to prove that the software is really free (as in freedom, not as in free beer) or you'll risk running afoul of the law.

Practically speaking, not all old copyrights are defended. The owners might realize that their games are old or obsolete, or they might have gone out of business without transferring ownership of the games, giving no one the right to defend the copyright. If a game isn't sold anymore and the hardware is obsolete, defending the copyright could end up costing more than what the copyright holder would be awarded in court. Nevertheless, copying the software might still be unlawful.

Some people think there is a loophole in the Digital Millennium Copyright Act that allows copying and playing exemptions, at least until 2009; the second out of six possible exemptions reads (italics added):

Computer programs and video games distributed in formats that have become obsolete and that require the original media or hardware as a condition of access, when circumvention is accomplished for the purpose of preservation or archival reproduction of published digital works by a library or archive. A format shall be considered obsolete if the machine or system necessary to render perceptible a work stored in that format is no longer manufactured or is no longer reasonably available in the commercial marketplace.

However, it's unlikely you'll be able to prove that your PC qualifies as a library or archive. Even if you do manage to qualify, you should legally own the game first before being allowed to do anything with it, so just downloading it from a Web site is a "no go."

All the laws mentioned here apply only in the United States. If you live abroad, laws may be radically different, and distributing or downloading old games might be allowed. In many countries, copyright laws are limited to cases in which the copyright owners suffer harm; an old game that is no longer manufactured could be played safely.

Conclusion

If you're hankering for some nostalgic video game time, try SDLMAME. Shoot those aliens, kill that boss, and advance to the next stage!

Federico Kereki is an Uruguayan systems engineer with more than 20 years' experience developing systems, doing consulting work, and teaching at universities.

Share    Print    Comments   

Comments

on Play Pac-man (and more!) on your PC

Note: Comments are owned by the poster. We are not responsible for their content.

Play Pac-man on Linux

Posted by: Anonymous [ip: 129.20.79.76] on November 22, 2007 09:24 AM

Play Pac-man (and more!) on your PC

Posted by: Anonymous [ip: 202.169.224.221] on November 24, 2007 05:29 AM
this is a very good playing games on PC, because this is very interest for me

#

Play Pac-man (and more!) on your PC

Posted by: Anonymous [ip: 122.164.2.119] on November 24, 2007 08:54 AM
Where is the download link , I am being redirected to Google

#

List of Emulator

Posted by: Anonymous [ip: 127.0.0.1] on November 25, 2007 05:48 PM
Here there is a <a href="http://linguistico.sf.net/wiki/doku.php?id=software_libero:emulatori">emulator list</a> (in that page there are some Italian language comments)



#

MAME is not open source

Posted by: Anonymous [ip: 193.11.245.228] on November 29, 2007 08:48 AM
Just wanted to point out that MAME is not open source.

From the article
"you can run this open source application under Linux."

From http://en.wikipedia.org/wiki/MAME#Legal_status_of_MAME
"While MAME is available at no cost, including its source code,
it is not open-source software or free software because commercial
use and redistribution are prohibited."

#

Play Pac-man (and more!) on your PC

Posted by: toronto on November 30, 2007 06:23 PM
Thanks for article. Lots of old school vid fans out there.

#

Play Pac-man (and more!) on your PC

Posted by: Anonymous [ip: 71.229.144.52] on December 02, 2007 03:00 PM
Old news!

#

Play Pac-man (and more!) on your PC

Posted by: Anonymous [ip: 165.155.208.82] on February 12, 2008 09:29 PM
cool

#

Play Pac-man (and more!) on your PC

Posted by: Anonymous [ip: 201.130.130.7] on February 19, 2008 05:28 PM
ok

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya