Author Topic: MAME setup in Ubuntu Desktop 14.04 LTS (32bit)  (Read 717 times)

Offline Saturn

  • Global Moderator
  • Hero Member
  • *
  • Posts: 2546
  • Karma: 17
    • View Profile
    • http://jaysmith2000.ipbhost.com/index.php?s=c827a7b611daaaf555722b332b1b9a2c&act=idx
MAME setup in Ubuntu Desktop 14.04 LTS (32bit)
« on: October 31, 2015, 16:49:42 PM »
I'm writing this out as a noob guide, hopefully so there's question as to exactly what needs to be done to get up and running. Especially for anyone new to Linux (such as myself) :113:

Open Terminal (ctrl+alt+t) and type in:
sudo add-apt-repository ppa:c.falco/mame
Press [Enter]

When complete, type in:
sudo apt-get update
Press [Enter]

When complete, type in:
sudo apt-get install mame
Press [Enter]

When complete, type in:
mame
Press [Enter]

(can press alt + Enter to exit full screen)
exit MAME by hitting [esc]

Back in the Terminal window type:
cd ~/.mame && mame -cc
Press [Enter]

To change any paths, in Terminal this would be the time to do it (not recommended):
gedit ~/.mame/mame.ini
Press [Enter]
(Paths can be changed to accommodate hard drive space but changes can also render MAME inoperable. Before doing anything, it's recommended to back up mame.ini to replace as needed)

Open a new Terminal and type:
cd ~/.mame
Press [Enter]
Next, type:
mkdir  ~/.mame/nvram memcard roms inp comments sta snap diff
Press [Enter]

To access the default folder to copy roms to, open a new Terminal and type:
sudo nautilus /usr/local/share/games/mame/roms
Press [Enter]-Type in your password if required and Press [Enter] again.

To add cheats:
Download here and unzip.
Move the cheat.7z file to Home/.mame
Ref
Navigate to /home/yourname/.mame and open mame.ini with gedit
Search for cheatpath (Line 17) and it'll look like:
cheatpath                 $HOME/mame/cheat;/usr/local/share/games/mame/cheat;/usr/share/games/mame/cheat
Change it to:
cheatpath                 $HOME/.mame/cheat
Search cheat (Line 161) and change its value from 0 to 1
Quick save and exit gedit
During game, press tab to see the new menu entry

To play, open Terminal and type:
mame gamename
Press [Enter]

For Sokoban L.E., extract the files then rezip only b96-07.ic9, b96-08.ic8, ic10 and a 0 bytes (user) created gal16v8-b86-04.bin and place in /usr/local/share/games/mame/roms. When loaded, an error will appear about missing CHD files, etc. Disregard by pressing Enter and play.

A good rule of thumb to prevent the Enter key from failing to function is to re-map it immediately after installation. Do this by running a rom, pressing tab and selecting Input (general)-User Inrface-UI Select and pressing Enter twice. Press Esc to exit MAME. Navigate to home/.mame/cfg and backup default.cfg elsewhere to restore if needed. Rebooting your system can also fix the problem.

If you want MAME to open windowed by default, navigate to /home/yourname/.mame/mame.ini and open with gedit. Under # OSD VIDEO OPTIONS-window, change the value from 0 to 1 (Line 205), quick save and close it.

Offline zapiy

  • Administrator
  • Hero Member
  • *
  • Posts: 11799
  • Karma: 41
    • View Profile
Re: MAME setup in Ubuntu Desktop 14.04 LTS (32bit)
« Reply #1 on: November 04, 2015, 05:17:28 AM »
Great info pal, not sure I will ever do this but a great resource for anyone wishing to have a crack and maybe I might one day lol.
Own: Jaguar, Lynx, Dreamcast, Saturn, MegaDrive, MegaCD, 32X, GameGear, PS3, PS, PSP, Wii, GameCube, N64, DS, GBA, GBC, GBP, GB,  Xbox, 3DO, CDi,  WonderSwan, WonderSwan Colour NGPC

Offline Saturn

  • Global Moderator
  • Hero Member
  • *
  • Posts: 2546
  • Karma: 17
    • View Profile
    • http://jaysmith2000.ipbhost.com/index.php?s=c827a7b611daaaf555722b332b1b9a2c&act=idx
Re: MAME setup in Ubuntu Desktop 14.04 LTS (32bit)
« Reply #2 on: November 11, 2015, 04:34:38 AM »
Thanks, hopefully it'll be of use someday or spare someone the trouble of finding fixes for the various minor annoyances :113:)