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: MAME: using P2 controls for older 80s games -- possible yet?  (Read 2315 times)

0 Members and 1 Guest are viewing this topic.

bmuse

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 27
  • Last login:August 22, 2018, 09:44:09 pm
MAME: using P2 controls for older 80s games -- possible yet?
« on: August 20, 2018, 11:42:24 am »
Hi all,

I have an old build of MAME (running .149, but have a .179 set as well).  My panel has two sets of controls.  I've never been able to get the older classic/80s games to use the P2 controls, which I understand the limitations behind. So, players have to alternate using the P1 controls.

It's always been a bummer because each set is lighted with different hues, but when playing the classic games, the P2 set is dark and only P1 colors used.

I've tried configuring some of the games as cocktail, and a few other things, but no luck so far.

My question is -- have any subsequent/recent versions of MAME had a solution or workaround to make this possible?  Or, if not, what workarounds have others used successfully?

Thanks everyone,
B

Mr. Peabody

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 813
  • Last login:March 05, 2025, 05:44:10 pm
Re: MAME: using P2 controls for older 80s games -- possible yet?
« Reply #1 on: August 22, 2018, 01:13:12 am »
Set P1 in MAME for all the controls you want. For example, I play Bubbles with either hand, and have both sticks as P1.

nexusmtz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 489
  • Last login:June 01, 2022, 03:14:22 am
Re: MAME: using P2 controls for older 80s games -- possible yet?
« Reply #2 on: August 22, 2018, 05:25:59 am »
The problem with that, of course, is that player 2 can easily jiggle the stick or press buttons and mess up player 1.

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1847
  • Last login:October 06, 2023, 10:20:39 pm
  • Web Developer.
Re: MAME: using P2 controls for older 80s games -- possible yet?
« Reply #3 on: August 22, 2018, 06:23:21 am »
I think mame creates a config file for each game, and you could probably change your key mapping’s there. This would require you making such file for each game by hand.

Another option would be to create two different installs of mame and have a front end filter by botton count and launch the correct mame.

paigeoliver

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10994
  • Last login:July 06, 2024, 08:43:49 pm
  • Awesome face!
Re: MAME: using P2 controls for older 80s games -- possible yet?
« Reply #4 on: August 22, 2018, 05:24:51 pm »
Those games were designed for players to alternate a single set of controls. While what you are looking to do is possible, it is stupidly complex and not worth doing.

Basically you would need to write software to monitor the two player game, recognize when it switched players, and then change the lights and controls over to the other station. What makes it stupidly complicated is that the monitoring software would need to know and understand every game, when doing that for even one game wouldn't exactly be trivial.
Acceptance of Zen philosophy is marred slightly by the nagging thought that if all things are interconnected, then all things must be in some way involved with Pauly Shore.

bmuse

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 27
  • Last login:August 22, 2018, 09:44:09 pm
Re: MAME: using P2 controls for older 80s games -- possible yet?
« Reply #5 on: August 22, 2018, 09:11:36 pm »
Yep, as I alluded to, I do understand the reason for the restriction. I had read through all the release notes since .149, but wanted to verify whether a software solution had been implemented that I'd missed.

I've had P1 set to use P1+P2, and vice versa. That works for the most part, I just need to do some more work on the lighting side. But, sounds like that's the best workaround.

I'll just require decorum and have people fold their hands in their laps when it's not their turn.  :)

Thanks for the responses!

paigeoliver

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10994
  • Last login:July 06, 2024, 08:43:49 pm
  • Awesome face!
Re: MAME: using P2 controls for older 80s games -- possible yet?
« Reply #6 on: August 22, 2018, 09:19:53 pm »
I actually just thought of a way to do it that would work for most of the games in question.

You just need to patch Mame or setup Mame to not flip the screen in cocktail mode, and then set those games to cocktail mode. Bam, suddenly they are polling the player 2 controls instead of the player 1 controls.
Acceptance of Zen philosophy is marred slightly by the nagging thought that if all things are interconnected, then all things must be in some way involved with Pauly Shore.

bmuse

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 27
  • Last login:August 22, 2018, 09:44:09 pm
Re: MAME: using P2 controls for older 80s games -- possible yet?
« Reply #7 on: August 22, 2018, 09:44:09 pm »
I played with setting games to cocktail mode, but could not find any settings either per-game or in MAME to disable the screen flip. Is there a patch..?

dmckean

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 729
  • Last login:January 13, 2024, 08:50:41 pm
Re: MAME: using P2 controls for older 80s games -- possible yet?
« Reply #8 on: August 22, 2018, 09:47:42 pm »
Screen flipping is part of the machine emulation. Preventing it would need to be done per game.

paigeoliver

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10994
  • Last login:July 06, 2024, 08:43:49 pm
  • Awesome face!
Re: MAME: using P2 controls for older 80s games -- possible yet?
« Reply #9 on: August 22, 2018, 09:52:43 pm »
I played with setting games to cocktail mode, but could not find any settings either per-game or in MAME to disable the screen flip. Is there a patch..?

You would have to make the patch. It is definitely something that could be done though. Screen not flipping in cocktail mode was one of the most common bugs/unfinished emulation things back in the old days.
Acceptance of Zen philosophy is marred slightly by the nagging thought that if all things are interconnected, then all things must be in some way involved with Pauly Shore.