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: Define a common input to all Neogeo games  (Read 2000 times)

0 Members and 1 Guest are viewing this topic.

Stormrider

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:September 28, 2014, 11:01:54 am
Define a common input to all Neogeo games
« 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>

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Define a common input to all Neogeo games
« Reply #1 on: October 24, 2009, 06:21:44 pm »
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.

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Define a common input to all Neogeo games
« Reply #2 on: October 26, 2009, 05:25:03 pm »
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. :-\
Robin
Knowledge is Power