Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: Stormrider on October 24, 2009, 05:54:06 pm
-
I need that all Neogeo game run the option called 'enter bios', assigned by default to F2 (input this game) with button 8 + button 9. If I change this setting for one game, the cfg is stored and it works. Now, how to do this change this for all Neogeo games. Do I have to create a neogeo.c with this code in the cfg folder? Maybe in the ctrl folder? Do I have to configure anything in mame.ini to tell MAME to read this file? This is the code I'm trying now, and these games absolutelly ignore it. Can you help me?
<mameconfig version="10">
<system name="neogeo.c">
<input>
<port tag="IN4" type="OTHER" mask="128" defvalue="128">
<newseq type="standard">
KEYCODE_F2 OR JOYCODE_1_BUTTON8 JOYCODE_1_BUTTON9
</newseq>
</port>
</input>
</system>
</mameconfig>
-
I belive you have to use a ctrlr file to be able to do parent-rom entries. So create a ctrlr file and add the neogeo entry (you don't need the .c at the end since "neogeo" is a parent ROM name anyway). Set the ctrlr in mame.ini and you should be good to go. If you do a search on here for "neogeo ctrlr" you should be able to find some examples.
-
I was going to say +1 to headkaze, but... that is the input type "other" which won't work though ctrlr file (especially since there are two other "other" inputs for neogeo, and ctrlr ignores the extra qualifiers, see below).
Small details: the system name for neogeo games must be either "neogeo" or "neodrvr.c"; the bios name (or a grandparent) and source driver file name, respectively, for quite a few versions of mame.
As hinted above, ctrlr file ignores the tag="IN4" mask="128" defvalue="128" info. This is game specific info, and, among other things, is needed for mame to tell the difference between all three "other" type inputs ("Next Game" & "Previous Game" being the remaining "other" type inputs).
There are a few ways around you can do:
Edit the source, changing the input type from "IPT_OTHER" to "IPT_SERVICE", recompile, and edit your ctrlr file to match (if you still need it, which you might not, since you're not asking how to remap for game that use the standard service input).
Umm, shucks, the other two don't seem to work: hardcore your specific sequence (mame doesn't hardcode "ands" inputs), and use that input remap to cfg app (don't think it does do "other" type).
Not what I was planning to say, and not what you wanted to hear. :-\