Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: HELP!! X-Arcade/Mame configure problem  (Read 11517 times)

0 Members and 1 Guest are viewing this topic.

killbill

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 290
  • Last login:June 13, 2025, 09:11:58 pm
  • When I die, I want to go to arcade heaven!
HELP!! X-Arcade/Mame configure problem
« on: March 18, 2004, 12:47:18 pm »
Hi,

I  attempted to set up my X-Arcade to run in Mame last night.  
Here is my Mame.ini file:

### MAME.ini ###

### Frontend Related ###
clones                  1

### Windows path and directory options ###
rompath                 roms
samplepath              samples
# inipath               <NULL> (not set)
cfg_directory           cfg
nvram_directory         nvram
memcard_directory       memcard
input_directory         inp
hiscore_directory       hi
state_directory         sta
artwork_directory       artwork
snapshot_directory      snap
diff_directory          diff
ctrlr_directory         ctrlr
cheat_file              cheat.dat
history_file            history.dat
mameinfo_file           mameinfo.dat

### Windows video options ###
autoframeskip           1
frameskip               0
waitvsync               0
triplebuffer            0
window                  0
ddraw                   1
direct3d                0
hwstretch               1
cleanstretch            auto
resolution              auto
zoom                    2
refresh                 0
scanlines               0
switchres               1
switchbpp               1
maximize                1
keepaspect              1
matchrefresh            0
syncrefresh             0
throttle                1
full_screen_brightness   0.000000
frames_to_run           0
effect                  none
screen_aspect           4:3
sleep                   1
rdtsc                   0
high_priority           0

### Windows Direct3D 2D video options ###
d3dtexmanage            1
d3dfilter               1
d3dfeedback             0
d3dscan                 100
d3deffectrotate         1
d3dprescale             auto
d3deffect               none
# d3dcustom             <NULL> (not set)
# d3dexpert             <NULL> (not set)

### Windows sound options ###
audio_latency           1

### Input device options ###
mouse                   1
joystick                0
lightgun                0
dual_lightgun           0
offscreen_reload        0
steadykey               0
keyboard_leds           1
led_mode                ps/2
a2d_deadzone            0.300000
# ctrlr                 XArcade

### Mame CORE video options ###
norotate                0
ror                     0
rol                     0
autoror                 0
autorol                 0
flipx                   0
flipy                   0
debug_resolution        auto
gamma                   1.000000
brightness              1.000000
pause_brightness        0.650000

### Mame CORE vector game options ###
antialias               1
translucency            1
beam                    1.000000
flicker                 0.000000
intensity               1.500000

### Mame CORE sound options ###
samplerate              44100
samples                 1
resamplefilter          1
sound                   1
volume                  0

### Mame CORE misc options ###
artwork                 1
use_backdrops           1
use_overlays            1
use_bezels              0
artwork_crop            0
artwork_resolution      0
cheat                   0
debug                   0
# playback              <NULL> (not set)
# record                <NULL> (not set)
log                     0
maxlogsize              10000
oslog                   0
skip_disclaimer         0
skip_gameinfo           0
crconly                 0
bios                    default
# state                 <NULL> (not set)

### Configuration options ###
readconfig              1
verbose                 0

The problem is:  All of the buttons work and the second player joystick works, but the first player joystick does not, and there is no button mapped to "escape" games.

I noticed that right now the p1 joystick seems mapped to the U,D,L,R arrows on the keyboard.  In the XArcade ctrlr folder though it states that it's mapped to the
Numpd_8, Numpd_2, Numpd_4, Numpd_6, which is correct as stated in the X-arcade instructions.  I don't understand why it's not working.  

Also, no button on the XArcade is mapped to escape.  I'm dyin over here.  This is my last step to be done.  Help?

One last question, is there a way for me to configure each individual joystick movement and button key myself in MAME?  Not game by game, but one configuration for all games.  Basically, I could just program it myself.  

BTW, I am running Commandline MAME through Mamewah.

Any help is truly appreciated.
Thanks.
« Last Edit: March 18, 2004, 12:51:19 pm by killbill »

cdbrown

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1241
  • Last login:October 16, 2017, 09:52:03 pm
  • Bowowow
Re:HELP!! X-Arcade/Mame configure problem
« Reply #1 on: March 18, 2004, 07:42:06 pm »
You need to remove the # from in front of ctrlr
# ctrlr                XArcade
ctrlr                XArcade
The second one enables that ctrlr file.

killbill

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 290
  • Last login:June 13, 2025, 09:11:58 pm
  • When I die, I want to go to arcade heaven!
Re:HELP!! X-Arcade/Mame configure problem
« Reply #2 on: March 18, 2004, 07:59:52 pm »
Thanks.

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re:HELP!! X-Arcade/Mame configure problem
« Reply #3 on: March 20, 2004, 08:40:08 am »
Hi,

I  attempted to set up my X-Arcade to run in Mame last night.  
Here is my Mame.ini file:

### MAME.ini ###

# ctrlr                 XArcade
Like Cdbrown said, ditch the # in front of the line - # tells MAME "This line is a comment, skip and process the next line"
Quote
Also, no button on the XArcade is mapped to escape.  I'm dyin over here.  This is my last step to be done.  Help?
Looking at default.ini in the MAME\Ctrlr\Xarcade folder -
UI_CANCEL               "KEYCODE_ESC | KEYCODE_2 KEYCODE_4"

And

START2                  "KEYCODE_2"
COIN2                   "KEYCODE_4"

So ESC is Keys 2 and 4 together, and 2 is Start 2 and 4 is Coin 2, So pressing START2 and COIN2 together will ESCAPE the game (once you take that # out so MAME reads your Xarcade default.ini file.)

Looking at the X-Arcade key assignments, Coin 1 and Coin 2 are mapped to the flipper keys, so Start 2 and the right flipper should exit.
Quote
One last question, is there a way for me to configure each individual joystick movement and button key myself in MAME?  Not game by game, but one configuration for all games.  Basically, I could just program it myself.  
A simple question with a complicated answer -  >:(

The first thing you need to realize is that both your X-Arcade and MAME are highly programmable (MAME moreso than the X-Arcade).

But you only need to change one or the other in most cases - For example - You could re-program the X-Arcade to use the Arrow keys rather than the Numpad for player 1, then use your default.ini file to map the P1 controls to the Arrow keys.  But this doesn't change anything (other than your keyboard arrow keys will move the player along with the X-Arcade joystick, but you could do this in MAME as well . . .

Generally, I would stick with the X-Arcade's default programming and make MAME match this if you are only using the X-Arcade with MAME.  If you are using the X-Arcade with programs that DON'T allow you to assign keys, I would program the X-Arcade to match that, and then re-program the MAME assignments to follow the re-programmed X-Arcade.

Now is the time to ask questions if you didn't follow that - because it's going to get worse . . . (or better).

For now, let's assume you are using the default X-Arcade setup, which is located at http://www.x-arcade.com/htm/programming.shtml

For help with the ctrlr.ini files, see http://www.mameworld.net/easyemu/mamecontrolini.htm

The most important things on there is two inputs separated by a space means this key AND the other one, inputs separated by | (above the backslash key) means this key OR the other key or combination, and ! between means this key NOT the other one (! isn't used often).

Now let's get to some specific examples -

First, copy your \ctrlr\xarcade\default.ini file to a default.bak file (This is just so you can go back to the default config if you ever decide to punt).

Now - let's say you want Escape to be Start 1 and Start 2 (like the I-PAC) instead of Start 2 and Coin 2 (bad idea in reality, but it makes a good example)

Open your default.ini file in notepad and find the line -

UI_CANCEL               "KEYCODE_ESC | KEYCODE_2 KEYCODE_4"

Change it to read

UI_CANCEL               "KEYCODE_ESC | KEYCODE_1 KEYCODE_2"

And save the file.  Done!

Now remember that I said you could have the keyboard arrows control the player along with the Numpad without programming the X-Arcade, here's how:

Open default.ini and find

P1_JOYSTICK_UP          "KEYCODE_8_PAD"
P1_JOYSTICK_DOWN        "KEYCODE_2_PAD"
P1_JOYSTICK_LEFT        "KEYCODE_4_PAD"
P1_JOYSTICK_RIGHT       "KEYCODE_6_PAD"

Change it to read

P1_JOYSTICK_UP          "KEYCODE_8_PAD | KEYCODE_UP"
P1_JOYSTICK_DOWN        "KEYCODE_2_PAD | KEYCODE_DOWN"
P1_JOYSTICK_LEFT        "KEYCODE_4_PAD | KEYCODE_LEFT"
P1_JOYSTICK_RIGHT       "KEYCODE_6_PAD | KEYCODE_RIGHT"

And save.  Now either the X-Arcade or the keyboard controls the movement.

And so forth for anything else you want to change -

Three things to watch out for -

First you need to use the codes on the link above - I.e. MAME recognizes KEYCODE_PGDN, but probably won't know what to do with KEYCODE_PAGEDN or KEYCODE_PGDOWN.

Second, see that neogeo.ini file - that overwrites the default.ini settings for the neogeo games.  There are several master types, but I don't remember all of them (mouse is one, I think pedal is one), Anyway, MAME reads in the following order -

default.ini
gametype.ini (neogeo.ini, mouse.ini)
parent.ini (1942.ini)
clone.ini (1942a.ini)

So, if you have a 1942a.ini file, then changes to the default.ini file won't affect keys re-assigned by 1942a.ini.  Subfiles only have to have the keys that you want to change listed - for example if you want to change P1B1 for 1942a, you only need to list that line in your 1942a.ini file, you don't need to tell it to use the same coin button as default.ini.

Finally, any key assignments you make through the TAB key menu get saved in your MAME\cfg\gamename.cfg file (along with dip switch settings) and override your ctrlr.ini file settings, so you might need to
delete the MAME\cfg\gamename.cfg and default.cfg files to get you ctrlr.ini files working and then re-enter your dip switch changes.

More than you wanted to know. . .
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

killbill

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 290
  • Last login:June 13, 2025, 09:11:58 pm
  • When I die, I want to go to arcade heaven!
Re:HELP!! X-Arcade/Mame configure problem
« Reply #4 on: March 22, 2004, 03:20:29 pm »
Wow, Tiger, Thanks for the detailed info.