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 Two Player Question  (Read 8055 times)

0 Members and 1 Guest are viewing this topic.

y2k600f4

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 68
  • Last login:January 18, 2022, 04:29:45 pm
MAME Two Player Question
« on: June 29, 2007, 04:40:02 am »
Wondering if anybody knows why some of the 2 player games in MAME (ones that only 1 person plays at a time) buttons and Joystick are mapped to the 1P controls even if both the global and game config is set to use 2P controls ??

Angry_Radish

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 521
  • Last login:October 24, 2020, 06:36:17 pm
Re: MAME Two Player Question
« Reply #1 on: June 29, 2007, 08:43:52 am »
That seems right if the original game would only see the 1 set of controls and has no provisions for a second set in the dip switch settings..
Not sure, but I think if you go into that games settings, you may be able to map both sets to the same controls manually.
Only problem with that would be the player sitting at the 2nd set of controls could screw with you when you are playing your turn :)

Green Giant

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1124
  • Last login:September 29, 2016, 06:50:57 pm
Re: MAME Two Player Question
« Reply #2 on: June 29, 2007, 09:47:39 am »
Most likely the original game rom has no software in itself to switch to use a second set of controls.  Mame just emulates the rom, the only way to setup the second player would be to recode the rom.  This could probably be attributed to a bug in mame, but I doubt anyone cares enough to mess with it.
"He lives down there in his valley,
The cat stands tall and green,
Well, he ain't no prize, and there's no women his size,
And that's why the cat's so mean"
Toxic Arcade, my first build

y2k600f4

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 68
  • Last login:January 18, 2022, 04:29:45 pm
Re: MAME Two Player Question
« Reply #3 on: June 29, 2007, 09:50:32 am »
That seems right if the original game would only see the 1 set of controls and has no provisions for a second set in the dip switch settings..


That makes sense. For example a Game like 1942 that can be played 2 player has both 2P contols set up globally for MAME and game specific but I am guessing there is no dip switch provision as you mentioned for 2P controls due to the original game only having one set of controls. I wonder why the game specific contols for player 2 in MAME do not correctly show 1P controls ?? Would it be better if the game specific controls correctly showed 1P controls for both 1P and 2P ? Any thoughts ?

Most likely the original game rom has no software in itself to switch to use a second set of controls.  Mame just emulates the rom, the only way to setup the second player would be to recode the rom.  This could probably be attributed to a bug in mame, but I doubt anyone cares enough to mess with it.

Looks like my question has been answered as I typed.

Thanks !!

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: MAME Two Player Question
« Reply #4 on: June 29, 2007, 01:53:22 pm »
It's called cocktail/upright modes.

This could probably be attributed to a bug in mame, but I doubt anyone cares enough to mess with it.

Is this an answer for the OP Q?  If so, it's not a real bug.  The original game could have one or two sets of inputs, depending on a dipswitch set to upright or cocktail, respectively (or whatever names the original game used).  And since the game used player 2 inputs sometimes, the driver has to include them.  Mame does not have a way to disable player 2's inputs if there is a cocktail dipswitch that's set to upright, and it doesn't need to for the game to run correctly.  In fact, the current way mame more correctly emulates the original hardware (IOW, the original game had places to wire up player 2 controls, but if the dipswitch was set to upright, it would act just like mame does).

Now, there are a few games that do not correctly emulate screen flipping for cocktail mode, but otherwise like above.  These games will switch player controls but not flip the screen like you want.  You could edit the source and "break" the screen flip in the games you want, but it's not an easy hack AFAIK.


The dipswitches could be "hardware" or "software" dipswitches.  If it was hardware dipswitch, the original board had a physical dipswitch, and you can get to them in mame by pressing tab and selecting "Dip Switches".  If the original game had dipswitches you could change from the screen, aka software dipswitches, you usually can get to it by pressing F2 (some games are different), and not all games have software dips.  1942 has a hardware dipswitch for cocktail/upright, that defaults to upright.
Robin
Knowledge is Power

Green Giant

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1124
  • Last login:September 29, 2016, 06:50:57 pm
Re: MAME Two Player Question
« Reply #5 on: June 29, 2007, 04:32:24 pm »
Thats a good point.  Figure that is why I have multiple version of Teenage Mutant Ninja Turtles: (2 players, 4 players, Europe, USA, etc.)
"He lives down there in his valley,
The cat stands tall and green,
Well, he ain't no prize, and there's no women his size,
And that's why the cat's so mean"
Toxic Arcade, my first build