Build Your Own Arcade Controls Forum
Main => Main Forum => Topic started by: RickDIII on June 24, 2006, 12:00:26 am
-
Ok, I've searched and read and I'm still confused about this topic. I want to run pacman, etc. on the 4 way stick I have installed.
I have it mapped as the p3 joy. I've gone into the cfg directory and changed the pacman.cfg to look like below:
<port type="P3_JOYSTICK_UP" mask="1" defvalue="1" value="1">
</port>
<port type="P3_JOYSTICK_LEFT" mask="2" defvalue="2" value="2">
</port>
<port type="P3_JOYSTICK_RIGHT" mask="4" defvalue="4" value="4">
</port>
<port type="P3_JOYSTICK_DOWN" mask="8" defvalue="8" value="8">
</port>
All the "P3_..." originally said "P1_..."
Shouldn't this tell mame to use the joystick set with those key codes (I,J,L,K respectively)? I'm sure this a question that has been answered but I haven't found exactly what I'm looking for...
Suggestions?
Thanks,
Rick
-
You almost got it, but a little backwards. The part you changed is telling mame what player in the game. So your change told mame about the game's player 3 inputs. But your clip didn't give a new input even for player3.
If you have your 4-way wired to mame's default player 3 keyboard buttons like it sounds:
<port type="P1_JOYSTICK_UP" mask="1" index="1" defvalue="1">
<newseq type="standard">
KEYCODE_UP OR KEYCODE_I
</newseq>
</port>
You want to change the bold part (or add it with the lines above and below if not existing yet). The above tells mame that for pacman's player 1 input for the game's up dirrection, use either the up key or the I key. You can put it to whatever you want; I gave the above example to show the OR, but you might just want KEYCODE_I.
Or you can start the game, tab, input (this game), up/down with player 1 stick to the input you want to change, enter, then move the 4-way stick in that direction. Repeat for each direction.
Things get a little confusing with all the different things "joystick 3" can mean. There's the original game's joystick 3, the default keys mapped to that game's joystick 3, windows third joystick installed, and in your case the encoder's "joystick 3". Add that mame can map any input to (basically) any key, and most keybaord encoders can be programmed to send different than default values for each port. Usually they all line up, but when you want to use the joystick second from the left on the control panel (that 4-way stick) that's wired to the encoder's joy3 to player 1's inputs... ;)
Even the second method I gave is a simplification that works with the default settings, but since they can be changed it doesn't always work.
-
u_rebelscum,
PERFECT! :applaud: Thanks for the answer. The 4way is up and running!
Thanks!
Rick
-
Wouldn't hitting tab and setting the mapping for 'this game only' be easier?
D-
-
Wouldn't hitting tab and setting the mapping for 'this game only' be easier?
D-
Agreed.
-
Wouldn't hitting tab and setting the mapping for 'this game only' be easier?
D-
Agreed.
I'm all about things being easier. Can you explain this? I'm not familiar with it...
Thanks,
Rick
-
You just enter a game and hit tab. A menu pops up showing you what buttons to what. You can scroll to a specific function (i.e. button 1) and then push whatever button you want to control that function. Super easy, but I am not sure if it just a Mame32 thing or not.
-
all versions of mame work like this.
-
You just enter a game and hit tab. A menu pops up showing you what buttons to what. You can scroll to a specific function (i.e. button 1) and then push whatever button you want to control that function. Super easy, but I am not sure if it just a Mame32 thing or not.
I'll give it a try...thanks! I thought I was going to have to edit all the cfg files by hand!
:cheers:
-
Wouldn't hitting tab and setting the mapping for 'this game only' be easier?
It's easier to start with, and I did mention it in passing on my original post.
But I like messing with the ctrlr file instead of the cfg files, and learning how the cfg files work shows how the ctrlr file works. Sort like getting under the hood vs looking looking in the manual to see how many horses it's got. I'll help people interested in hand editting the cfg files with more enthusaism and details than people asking FAQs. I'm not against people who ask FAQs, but I enjoy answering stuff that I enjoy more than other questions I'm not interested in. But no, you don't need to hand edit them.
-
It's kinda' like this. I've been concentrating for a long time on the construction of the machine, and getting the games running, etc. Now that I have finally reached that goal I need to brush up on all the mame shortcuts, mamewah stuff, etc.
Thanks for all the help! I'm sure there will be more noob questions later. Although I always try to figure it out on my own first - sometimes there is so much information it becomes hard to filter.
:cheers:
-
Here's a link that talks about the MAME Controler .ini files. It should help.
http://www.mameworld.net/easyemu/mameguide/mamecontrolini.htm