PDA

View Full Version : MAME Newbie Guide: SDLMAME + Frontend...



Scott00
September 7th, 2007, 09:17 AM
*Configuring and installing SDLMAME and Frontend on Ubuntu*


Just a short and basic newbie guide for setting up MAME on Ubuntu using the most up-to-date packages. After much frustration in finding up-to-date MAME ports for linux that are (fairly) easy to setup, this is what I came up with. Hopefully this guide will be of use to someone wanting to play MAME on Ubuntu, or even setting up a MAME cabinet.



PACKAGES:
download and install

SDLMAME (http://wallyweek.altervista.org/) - MAME port; Ubuntu package.
WahCade (http://www.anti-particle.com/wahcade.shtml) - Frontend. Get the .deb package

Edit 09-15-07:
added simplier frontends

Loemu (http://loemu.pegueroles.com/) - Frontend (simpliest)
QMameCat (http://www.mameworld.net/mamecat/) - Frontend



CONFIGURING:


Configuring the frontend

Open terminal and type

wahcade-setup

Switch to the Emulators tab, in the "M.A.M.E." profile, change the Application to /usr/games/sdlmame and verify application parameters, they should be set to [name]


Now lets set the directories, under List Generation select your roms folder and rom extension (zip), List generation can be kept as XML. Do the same for all of your the artwork directories (snaps, cab, marq, etc). Move to the "M.A.M.E. Only" tab and click generate next to XML field, this will generate the XML list of available games. You can also add your history.dat here.


Now File > Save. But don't close the window just yet.


Configuring SDLMAME

Open a new terminal and type

sudo gedit /etc/sdlmame/mame.ini

In WahCade Setup, copy the rom directory and replace the dir after "rompath"... You can also change any other directory you wish, otherwise save and close both.

---------------------

You can now launch Wah!Cade.. >>Applications > Games > Wah!Cade
If you get a blank screen, press Z and select emulator (press 1 to select). 2 for options.


CUSTOMIZATION / LAYOUT:

WahCade layout can be customized with the layout editor.

wahcade-layout-editor

If you are getting a white background or hard to read text you can goto screen properties and simply add a dark background image. Be sure to save any changes as a new layout file, or make a backup of the original.

CONTROLS:

WahCade keys are changed within the setup. Game controls and dips are changed in game by pressing TAB.


---------------------
Check out mameworld.net (http://www.mameworld.net/) for art and support files.

BigSilly
September 7th, 2007, 10:38 AM
Cheers for this guide. It's great for plonkers like me who are still finding their way around!

I'm having a bit of bother still though. I've followed your instructions, but I'm still getting a white background which is driving me mental. I went into the layout screen and screen properties, but it's showing that I should have a black background. I've changed it to some other colours and saved it, but I'm still getting the white background. What do you reckon I should do?

Scott00
September 7th, 2007, 10:46 PM
I'm having a bit of bother still though. I've followed your instructions, but I'm still getting a white background which is driving me mental. I went into the layout screen and screen properties, but it's showing that I should have a black background. I've changed it to some other colours and saved it, but I'm still getting the white background. What do you reckon I should do?
I haven't had a lot of time messing around with this particular frontend (or layout) yet, but I just set a background image rather than changing the color.

Scott00
September 8th, 2007, 03:33 AM
SDLMAME just released a new version today. 0.118u5

BigSilly
September 8th, 2007, 08:44 AM
Cool!

/grabs

trinireddman
September 9th, 2007, 06:53 PM
How do you install on feisty amd64?

gigaferz
September 10th, 2007, 05:12 AM
it always stops when is initializing, or decoding a 9x%.....(sdlmame)

someday...

Scott00
September 15th, 2007, 06:06 AM
I edited the original post to include a couple other frontends which are far simpler and have better UI. Also 0.119 is out.

BigSilly
September 15th, 2007, 10:27 AM
Okay, I've got this but now suddenly my Streetfighter Alpha 3 isn't working. It says I'm missing some files, but it was fine on the last release. Can you help?

Also, what is sdlmame-tools? Is it something that helps you manage your roms, and if so is there a guide anywhere on how to use it? Cheers.

i23098
September 15th, 2007, 12:37 PM
How do you install on feisty amd64?

yes, please. How :confused: on an amd64 gutsy...

BigSilly
September 16th, 2007, 12:14 PM
Okay, I've got this but now suddenly my Streetfighter Alpha 3 isn't working. It says I'm missing some files, but it was fine on the last release. Can you help?

Also, what is sdlmame-tools? Is it something that helps you manage your roms, and if so is there a guide anywhere on how to use it? Cheers.

Anyone??

:confused:

bokl
September 28th, 2007, 01:57 AM
I've gotten SDLMame and Wah!Cade running fine. Great! Now I want to create backups of the special controls I've set through the menu inside mame, so that I can import them if I reinstall or whatever.

On windows when using MAME32, a file called "default.cfg" was created in a folder called "cfg" next to the "roms" folder. In that file I could easily create complex joystick hotkeys manually. Example:

<port type="UI_CONFIGURE">
<newseq type="standard">

NOT KEYCODE_LALT NOT KEYCODE_RALT KEYCODE_TAB OR NOT JOYCODE_1_BUTTON7 JOYCODE_1_BUTTON5 JOYCODE_1_BUTTON8 OR NOT JOYCODE_2_BUTTON7 JOYCODE_2_BUTTON5 JOYCODE_2_BUTTON8
</newseq>
</port>
Is there a similar file for SDLMame and if so where do I find it? (Please describe exactly where to find it since I still have a hard time understanding the Ubuntu file system)


edit:
Never mind, I managed to find my way thanks to this http://linux.about.com/od/ubuntu_doc/a/ubudg24t2.htm file system guide...
I found the file in question at : /var/games/sdlmame/cfg/default.cfg same format as in windows it seems, so I can probably just import that file
(What i can't understand is why it doesn't show up when I do places > "search for files...", enter "default.cfg" and choose to look in "file system". Does the search skip some folders for some reason?)

nellistc
December 7th, 2007, 06:48 AM
Anyone??

:confused:

If you upgraded sdlmame, you may have to get a newer copy of the rom.

MAWS (http://mameworld.net/maws) will help you determine the last time any given rom was updated.

BigSilly
December 7th, 2007, 06:07 PM
Yeah I figured this one out thanks. I've now got MAME version 0.120 and a full set of 0.120 roms, and everything that I want works brilliantly. Including SFIII3rd Strike. What a game!

disturbedite
December 7th, 2007, 07:09 PM
i still prefer to use sdlmame with kxmame, which development has picked up on again, fwiu.

keyboardslave
January 3rd, 2008, 07:44 AM
i still prefer to use sdlmame with kxmame, which development has picked up on again, fwiu.

well after trying several of your ideas Disturbedite from many of your posts, i still cant seem to follow your directions. You seem to post a lot of "one line comments" (explaining several things about your bean count).

These directions were fantastic... WONDERFULL, if you are going to try and teach people things make sure you structure your tutorials like this one. everything is working 100% thanks you kindly.
Kindest Regards,

disturbedite
February 6th, 2008, 09:42 PM
well after trying several of your ideas Disturbedite from many of your posts, i still cant seem to follow your directions. You seem to post a lot of "one line comments" (explaining several things about your bean count).

whatever. i don't know wth you're talking about.

DoktorSeven has created an updated deb package of kxmame (from svn) with sdlmame support, you might consider adding it to the list of frontends.
its here:
http://sdcofer.googlepages.com/home

diskotek
February 11th, 2008, 05:13 PM
everything worked fine with your instructions. i can log on wah!cade, i can select the game, the game is loaded but the screen screwed up! there is sound but only glitching on the screen.

i'm using gutsy (with ati radeon x200) with 1440x900 LCD screen

diskotek
February 13th, 2008, 02:26 AM
any solution for that glitching screen?

stevetsc
February 14th, 2008, 08:27 PM
yes, please. How :confused: on an amd64 gutsy...

you need to have the amd64 version of gutsy installed on an amd64 compatible system. If you're running the i386 version of gusty on amd64 platform you won't be able to install the amd64 package.

motoperpetuo
February 15th, 2008, 07:00 AM
For what it's worth, my performance in sdlmame was awful at first, very slow, and very choppy sound. I fixed this by opening mame.ini and changing the autoframeskip parameter (under CORE PERFORMANCE OPTIONS) to 1.

Not sure what systems that would be necessary on, but it worked wonders on my six-year-old Gateway laptop. Speed is perfect now and audio is almost perfect (just a few crackles and pops here and there). Best of all, the games are now full screen size, something I could never get consistently in kxmame.

Now, does anyone know how to get games to open up in a separate window, rather than just taking over the entire screen? The version of MAME i use in Windows does this. You can even "pause" a game by right-clicking on it.

Zzzach
February 15th, 2008, 03:08 PM
left alt+enter to get it out of full screen.

I still can't get sdlmame to lower the volume

jputman
February 23rd, 2008, 02:59 AM
>> I found the file in question at : /var/games/sdlmame/cfg/default.cfg same format as in windows it seems “

For reference I think the SDLMAME config file lives at:
/etc/sdlmame/mame.ini

killstheweak
February 25th, 2008, 08:36 PM
everything worked fine with your instructions. i can log on wah!cade, i can select the game, the game is loaded but the screen screwed up! there is sound but only glitching on the screen.

i'm using gutsy (with ati radeon x200) with 1440x900 LCD screen

Same here, with gutsy radeon mobile, there is a solution tho, if you compile it from source, it runs fine, something must be enabled in the debs that ati drivers dont like, in my compile i just enabled pentiumpro optimizations. Or maybe different versions of SDL used? No idea :P

MarshallClan
March 16th, 2008, 08:03 AM
BIG THANKS...
The instructions were On The Money! Say "so long to productivity"... right down the MAME drain!

MaindotC
March 21st, 2008, 06:47 AM
I followed your directions and it worked like a charm with Wahcade, but I think Wahcade is gross so I'm testing out the other frontends. Why can I not give OP thanks?

keyboardslave don't get too bent out of shape about disturbedite - I know his directions are sometimes cryptic but I think he's helping us develop a methodology for solving a problem and that has the better interests of the open source community in mind.

fletch33
April 3rd, 2008, 11:46 PM
any chance i could get mame working on gutsy ppc? i am trying to find a way to get mame working on my xubuntu ps3 install andi have been searching for an answer for hours.

thanks

Ohwii
July 10th, 2008, 12:28 AM
everything worked fine with your instructions. i can log on wah!cade, i can select the game, the game is loaded but the screen screwed up! there is sound but only glitching on the screen.

i'm using gutsy (with ati radeon x200) with 1440x900 LCD screen

I have the same probleme can please someone help

FetalShinobi
July 23rd, 2009, 09:43 PM
I got everything installed and i even get the options of running the 2 games i have but when it loads it goes to 99% and takes me to the option screen all over again.....what do i do?

X1R1
October 9th, 2009, 12:43 AM
same problem as the guy above. everything works but as soon as it loads takes me back to the game selection.

williamts99
October 24th, 2009, 12:23 PM
I got everything installed and i even get the options of running the 2 games i have but when it loads it goes to 99% and takes me to the option screen all over again.....what do i do?


Some games need extra bios roms like neogeo and stvbios added to your roms folder.

Also I had a 99% issue because of pulseaudio, and the fix was to install libsdl1.2debian-pulseaudio

sudo apt-get install libsdl1.2debian-pulseaudio

Hope that helps.
Williamts99

WarrenSH
May 6th, 2010, 09:22 AM
*Configuring and installing SDLMAME and Frontend on Ubuntu*



Just a short and basic newbie guide for setting up MAME on Ubuntu using the most up-to-date packages. After much frustration in finding up-to-date MAME ports for linux that are (fairly) easy to setup, this is what I came up with. Hopefully this guide will be of use to someone wanting to play MAME on Ubuntu, or even setting up a MAME cabinet.



PACKAGES:
download and install

SDLMAME (http://wallyweek.altervista.org/) - MAME port; Ubuntu package.
WahCade (http://www.anti-particle.com/wahcade.shtml) - Frontend. Get the .deb package

Edit 09-15-07:
added simplier frontends

Loemu (http://loemu.pegueroles.com/) - Frontend (simpliest)
QMameCat (http://www.mameworld.net/mamecat/) - Frontend



CONFIGURING:


Configuring the frontend

Open terminal and type

wahcade-setupSwitch to the Emulators tab, in the "M.A.M.E." profile, change the Application to /usr/games/sdlmame and verify application parameters, they should be set to [name]


Now lets set the directories, under List Generation select your roms folder and rom extension (zip), List generation can be kept as XML. Do the same for all of your the artwork directories (snaps, cab, marq, etc). Move to the "M.A.M.E. Only" tab and click generate next to XML field, this will generate the XML list of available games. You can also add your history.dat here.


Now File > Save. But don't close the window just yet.


Configuring SDLMAME

Open a new terminal and type

sudo gedit /etc/sdlmame/mame.iniIn WahCade Setup, copy the rom directory and replace the dir after "rompath"... You can also change any other directory you wish, otherwise save and close both.

---------------------

You can now launch Wah!Cade.. >>Applications > Games > Wah!Cade
If you get a blank screen, press Z and select emulator (press 1 to select). 2 for options.


CUSTOMIZATION / LAYOUT:

WahCade layout can be customized with the layout editor.

wahcade-layout-editorIf you are getting a white background or hard to read text you can goto screen properties and simply add a dark background image. Be sure to save any changes as a new layout file, or make a backup of the original.

CONTROLS:

WahCade keys are changed within the setup. Game controls and dips are changed in game by pressing TAB.


---------------------
Check out mameworld.net (http://www.mameworld.net/) for art and support files.



Is this still up to date?

BigSilly
May 6th, 2010, 01:33 PM
I dunno, but GMAMEUI in the repo's does the trick brilliantly for me. Give it a go.

:)

WarrenSH
May 10th, 2010, 09:43 AM
I dunno, but GMAMEUI in the repo's does the trick brilliantly for me. Give it a go.

:)


I will b trying this out. I hope that it does what I would like it to do. I only want to play a few games when I am on break from class or work.

BigSilly
May 10th, 2010, 02:42 PM
I think you'll really like GMAMEUI. :)

However, if you don't, you could try just creating a desktop launcher to usr/games/sdlmame and just type the game in that you want when you launch it. It is quicker that way, without a front end. I used to do that before GMAMEUI turned up. :)

WarrenSH
May 11th, 2010, 10:07 AM
how do you uninstall this?

BigSilly
May 11th, 2010, 04:12 PM
Uninstall what? GMAMEUI? Just pop into Synaptic, type in gmameui, click completely remove, then apply.

No? Something else?

kai4785
August 6th, 2010, 06:07 PM
I have GMAMEUI working great, and it runs all my MAME roms fine. However, we're trying to build a cabinent for the machine, and we'd like to play old Nintendo games as well, a mouse-less UI is desirable. Wah!Cade seems to be configurable enough to make this work, but roms that require the NeoGeo bios aren't working properly.

This is my first real attempt at MAME. I haven't been able to find any good documentation on how to make sdlmame detect and load the appropriate bios.

Anybody have any help on this one? I sorely miss Marvel Vs. Capcom :(

kakyoism
August 8th, 2010, 01:11 PM
I think I should share my experience here.

Procedure:
1) Install

sudo aptitude install sdlmame
On lucid, it gives you mame 0.136. I remember adding this repo: http://sdlmame.wallyweek.org/repository/ and updated. After this sudo aptitude install sdlmame will give me an extra package "mame{a}" I think. So after this I have /etc/mame and /etc/sdlmame two folders, both having mame.ini and vector.ini in them. Plus ~/.mame/cfg/mame.ini

2) Configuration and paths
I haven't tested which mame.ini would overide the others. But it looks like ~/.mame/cfg/mame.ini will be overriden by /etc/mame/mame.ini at least. And if you delete /etc/mame/mame.ini, your ~/.mame/cfg/mame.ini will not work. So basically you should configure /etc/mame/mame.ini

type
mame -createconfig or
sdlmame -createconfig if there is no mame.ini under the specified paths.

necessary fields:
rompath
cfg_directory

3) Permission
Make your /etc/mame/mame.ini r/w instead of read-only. This would cause the game complain about errors in mame.c. The error code makes no sense if you try to understand it. All it says is about permission. REMEMBER, if any error happens, a file error.log will be generated in /etc/mame, and the initial permission is r/w. When that happens, running mame will fail the same way as well. So set that file to r/w if applicable. Usually logs are generated because you set the INI field "log" to 1.

3) Key config
Edit
~/.mame/cfg/default.cfg. I think it'll be regenerated too if you run
sdlmame -createconfig

You can set default key mapping in this file so that it becomes default key mapping to all games.

Between <mameconfig version="10"> tag pair, edit the system tag:


<system name="default">
<input>
</input>
</system>


Then under <input> tag,
Use <port> to specify your individual key-mapping
Here is mine

<port type="UI_UP">
<newseq type="standard">KEYCODE_UP OR KEYCODE_8_PAD</newseq>
</port>
<port type="UI_DOWN">
<newseq type="standard">KEYCODE_DOWN OR KEYCODE_2_PAD</newseq>
</port>
<port type="UI_LEFT">
<newseq type="standard">KEYCODE_LEFT OR KEYCODE_4_PAD</newseq>
</port>
<port type="UI_RIGHT">
<newseq type="standard">KEYCODE_RIGHT OR KEYCODE_6_PAD</newseq>
</port>
<port type="UI_SELECT">
<newseq type="standard">KEYCODE_ENTER OR KEYCODE_LCONTROL</newseq>
</port>

<port type="UI_CONFIGURE">
<newseq type="standard">KEYCODE_TAB OR KEYCODE_1 KEYCODE_3</newseq>
</port>
<port type="UI_CANCEL">
<newseq type="standard">KEYCODE_ESC OR KEYCODE_2 KEYCODE_4</newseq>
</port>

<port type="START1">
<newseq type="standard">KEYCODE_1</newseq>
</port>
<port type="START2">
<newseq type="standard">KEYCODE_2</newseq>
</port>
<port type="COIN1">
<newseq type="standard">KEYCODE_5</newseq>
</port>
<port type="COIN2">
<newseq type="standard">KEYCODE_4</newseq>
</port>
<port type="START3">
<newseq type="standard">KEYCODE_3</newseq>
</port>
<port type="START4">
<newseq type="standard">KEYCODE_6</newseq>
</port>

<port type="P1_JOYSTICK_UP">
<newseq type="standard">KEYCODE_W</newseq>
</port>
<port type="P1_JOYSTICK_DOWN">
<newseq type="standard">KEYCODE_X</newseq>
</port>
<port type="P1_JOYSTICK_LEFT">
<newseq type="standard">KEYCODE_A</newseq>
</port>
<port type="P1_JOYSTICK_RIGHT">
<newseq type="standard">KEYCODE_D</newseq>
</port>
<port type="P1_JOYSTICKRIGHT_UP">
<newseq type="standard">KEYCODE_R</newseq>
</port>
<port type="P1_JOYSTICKRIGHT_DOWN">
<newseq type="standard">KEYCODE_F</newseq>
</port>
<port type="P1_JOYSTICKRIGHT_LEFT">
<newseq type="standard">KEYCODE_D</newseq>
</port>
<port type="P1_JOYSTICKRIGHT_RIGHT">
<newseq type="standard">KEYCODE_G</newseq>
</port>
<port type="P1_JOYSTICKLEFT_UP">
<newseq type="standard">KEYCODE_8_PAD</newseq>
</port>
<port type="P1_JOYSTICKLEFT_DOWN">
<newseq type="standard">KEYCODE_2_PAD</newseq>
</port>
<port type="P1_JOYSTICKLEFT_LEFT">
<newseq type="standard">KEYCODE_4_PAD</newseq>
</port>
<port type="P1_JOYSTICKLEFT_RIGHT">
<newseq type="standard">KEYCODE_6_PAD</newseq>
</port>

<port type="P1_BUTTON1">
<newseq type="standard">KEYCODE_J</newseq>
</port>
<port type="P1_BUTTON2">
<newseq type="standard">KEYCODE_K</newseq>
</port>
<port type="P1_BUTTON3">
<newseq type="standard">KEYCODE_L</newseq>
</port>
<port type="P1_BUTTON4">
<newseq type="standard">KEYCODE_U</newseq>
</port>
<port type="P1_BUTTON5">
<newseq type="standard">KEYCODE_I</newseq>
</port>
<port type="P1_BUTTON6">
<newseq type="standard">KEYCODE_O</newseq>
</port>
<port type="P2_JOYSTICK_UP">
<newseq type="standard">KEYCODE_UP</newseq>
</port>
<port type="P2_JOYSTICK_DOWN">
<newseq type="standard">KEYCODE_DOWN</newseq>
</port>
<port type="P2_JOYSTICK_LEFT">
<newseq type="standard">KEYCODE_LEFT</newseq>
</port>
<port type="P2_JOYSTICK_RIGHT">
<newseq type="standard">KEYCODE_RIGHT</newseq>
</port>
<port type="P2_BUTTON1">
<newseq type="standard">KEYCODE_DEL OR KEYCODE_0_PAD</newseq>
</port>
<port type="P2_BUTTON2">
<newseq type="standard">KEYCODE_END OR KEYCODE_._PAD</newseq>
</port>
<port type="P2_BUTTON3">
<newseq type="standard">KEYCODE_PGDN OR KEYCODE_3_PAD</newseq>
</port>
<port type="P2_BUTTON4">
<newseq type="standard">KEYCODE_INS OR KEYCODE_1_PAD</newseq>
</port>
<port type="P2_BUTTON5">
<newseq type="standard">KEYCODE_HOME OR KEYCODE_/_PAD</newseq>
</port>
<port type="P2_BUTTON6">
<newseq type="standard">KEYCODE_PGUP OR KEYCODE_*_PAD</newseq>
</port>

I also use


<remap origcode="KEYCODE_UP" newcode="KEYCODE_8_PAD" />
to have one-to-many mapping.

Here is the complete ~/.mame/cfg/default.cfg of mine

<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
<system name="default">
<input>
<remap origcode="KEYCODE_UP" newcode="KEYCODE_8_PAD" />
<remap origcode="KEYCODE_DOWN" newcode="KEYCODE_2_PAD" />
<remap origcode="KEYCODE_LEFT" newcode="KEYCODE_4_PAD" />
<remap origcode="KEYCODE_RIGHT" newcode="KEYCODE_6_PAD" />
<remap origcode="KEYCODE_DELETE" newcode="KEYCODE_0_PAD" />
<remap origcode="KEYCODE_END" newcode="KEYCODE_._PAD" />


<port type="UI_UP">
<newseq type="standard">KEYCODE_UP OR KEYCODE_8_PAD</newseq>
</port>
<port type="UI_DOWN">
<newseq type="standard">KEYCODE_DOWN OR KEYCODE_2_PAD</newseq>
</port>
<port type="UI_LEFT">
<newseq type="standard">KEYCODE_LEFT OR KEYCODE_4_PAD</newseq>
</port>
<port type="UI_RIGHT">
<newseq type="standard">KEYCODE_RIGHT OR KEYCODE_6_PAD</newseq>
</port>
<port type="UI_SELECT">
<newseq type="standard">KEYCODE_ENTER OR KEYCODE_LCONTROL</newseq>
</port>

<port type="UI_CONFIGURE">
<newseq type="standard">KEYCODE_TAB OR KEYCODE_1 KEYCODE_3</newseq>
</port>
<port type="UI_CANCEL">
<newseq type="standard">KEYCODE_ESC OR KEYCODE_2 KEYCODE_4</newseq>
</port>

<port type="START1">
<newseq type="standard">KEYCODE_1</newseq>
</port>
<port type="START2">
<newseq type="standard">KEYCODE_2</newseq>
</port>
<port type="COIN1">
<newseq type="standard">KEYCODE_5</newseq>
</port>
<port type="COIN2">
<newseq type="standard">KEYCODE_4</newseq>
</port>
<port type="START3">
<newseq type="standard">KEYCODE_3</newseq>
</port>
<port type="START4">
<newseq type="standard">KEYCODE_6</newseq>
</port>

<port type="P1_JOYSTICK_UP">
<newseq type="standard">KEYCODE_W</newseq>
</port>
<port type="P1_JOYSTICK_DOWN">
<newseq type="standard">KEYCODE_X</newseq>
</port>
<port type="P1_JOYSTICK_LEFT">
<newseq type="standard">KEYCODE_A</newseq>
</port>
<port type="P1_JOYSTICK_RIGHT">
<newseq type="standard">KEYCODE_D</newseq>
</port>
<port type="P1_JOYSTICKRIGHT_UP">
<newseq type="standard">KEYCODE_R</newseq>
</port>
<port type="P1_JOYSTICKRIGHT_DOWN">
<newseq type="standard">KEYCODE_F</newseq>
</port>
<port type="P1_JOYSTICKRIGHT_LEFT">
<newseq type="standard">KEYCODE_D</newseq>
</port>
<port type="P1_JOYSTICKRIGHT_RIGHT">
<newseq type="standard">KEYCODE_G</newseq>
</port>
<port type="P1_JOYSTICKLEFT_UP">
<newseq type="standard">KEYCODE_8_PAD</newseq>
</port>
<port type="P1_JOYSTICKLEFT_DOWN">
<newseq type="standard">KEYCODE_2_PAD</newseq>
</port>
<port type="P1_JOYSTICKLEFT_LEFT">
<newseq type="standard">KEYCODE_4_PAD</newseq>
</port>
<port type="P1_JOYSTICKLEFT_RIGHT">
<newseq type="standard">KEYCODE_6_PAD</newseq>
</port>

<port type="P1_BUTTON1">
<newseq type="standard">KEYCODE_J</newseq>
</port>
<port type="P1_BUTTON2">
<newseq type="standard">KEYCODE_K</newseq>
</port>
<port type="P1_BUTTON3">
<newseq type="standard">KEYCODE_L</newseq>
</port>
<port type="P1_BUTTON4">
<newseq type="standard">KEYCODE_U</newseq>
</port>
<port type="P1_BUTTON5">
<newseq type="standard">KEYCODE_I</newseq>
</port>
<port type="P1_BUTTON6">
<newseq type="standard">KEYCODE_O</newseq>
</port>
<port type="P2_JOYSTICK_UP">
<newseq type="standard">KEYCODE_UP</newseq>
</port>
<port type="P2_JOYSTICK_DOWN">
<newseq type="standard">KEYCODE_DOWN</newseq>
</port>
<port type="P2_JOYSTICK_LEFT">
<newseq type="standard">KEYCODE_LEFT</newseq>
</port>
<port type="P2_JOYSTICK_RIGHT">
<newseq type="standard">KEYCODE_RIGHT</newseq>
</port>
<port type="P2_BUTTON1">
<newseq type="standard">KEYCODE_DEL OR KEYCODE_0_PAD</newseq>
</port>
<port type="P2_BUTTON2">
<newseq type="standard">KEYCODE_END OR KEYCODE_._PAD</newseq>
</port>
<port type="P2_BUTTON3">
<newseq type="standard">KEYCODE_PGDN OR KEYCODE_3_PAD</newseq>
</port>
<port type="P2_BUTTON4">
<newseq type="standard">KEYCODE_INS OR KEYCODE_1_PAD</newseq>
</port>
<port type="P2_BUTTON5">
<newseq type="standard">KEYCODE_HOME OR KEYCODE_/_PAD</newseq>
</port>
<port type="P2_BUTTON6">
<newseq type="standard">KEYCODE_PGUP OR KEYCODE_*_PAD</newseq>
</port>
</input>
</system>
</mameconfig>


4) Cheat
Haven't figured this out yet. Because there seems to be a change since MAME 0.129. If anybody knows the step-by-step procedure. Please help!

snide_tripod
December 23rd, 2010, 09:51 AM
Help. Noob here. I tried the above method from August 8, 2010, and after entering the first sudo command I get this :

The following partially installed packages will be configured:
man-db
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up man-db (2.5.7-4) ...
Updating database of manual pages ...

You have to configure "localepurge" with the command

dpkg-reconfigure localepurge

to make /usr/sbin/localepurge actually start to function.

Nothing to be done, exiting ...

I run the dpkg-reconfigure localepurge, it comes to a blue screen that says configure localepurge and asks me to select language files? i select ok after choosing en, then it goes on to ask more blabber. it returns to the terminal screen and prints this:

Replacing config file /etc/locale.nopurge with new version

When I try to run the sudo command again it just says the same thing again :

The following partially installed packages will be configured:
man-db
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up man-db (2.5.7-4) ...
Updating database of manual pages ...

You have to configure "localepurge" with the command

dpkg-reconfigure localepurge

to make /usr/sbin/localepurge actually start to function.

Nothing to be done, exiting ...

What to do, What to do. I need help. Somebody Please!!!

eternal_sage
March 11th, 2012, 02:57 AM
just realized how old this thread is, so i should make a new thread for my issue, i suppose. the new thread is here (http://ubuntuforums.org/showthread.php?p=11760190).