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 P1 start default not being accepted  (Read 2711 times)

0 Members and 1 Guest are viewing this topic.

Diewrecked

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 179
  • Last login:June 20, 2012, 07:34:08 am
  • I want to build my own arcade controls!
MAME P1 start default not being accepted
« on: November 08, 2010, 06:48:33 am »
Hi guys

Now that I've got my U360 buttons all working (many thanks for that!  :cheers:) I am trying to set P1 start to be a button on the P1 U360 harness. I have RENAMED the entire INI folder because it was full of various settings for various games (not to mention video settings I was playing with that failed) that I was testing whilst configuring my cab. I then started random game (Scramble as it goes) and set GENERAL P1 start to that button (I think it called it GameController 0 button 6), however every game I go into uses the THIS GAME P1 start button of kbd1 (General still set to GameController 0 button 6)

Why doesn't it accept the new start button as defined in the General settings and how can I fix it? I'm SOOOO CLOSE to finishing this project now!! And it's only taken three years hahahaha!!!

Thanks in advance you guys.

Cheers

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: MAME P1 start default not being accepted
« Reply #1 on: November 08, 2010, 10:48:51 am »
Delete the cfg for the separate games that have been changed so the general will be used.  The cfg will be rewritten back to normal when the game is run.

severdhed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2975
  • Last login:December 14, 2024, 05:01:52 pm
  • RIP Dinosaur Hippo
Re: MAME P1 start default not being accepted
« Reply #2 on: November 08, 2010, 05:12:19 pm »
Delete the cfg for the separate games that have been changed so the general will be used.  The cfg will be rewritten back to normal when the game is run.

+1  controller mappings are saved in the .cfg files for the games, not the .ini files.
Current Projects:      Zak-Man | TMNT Pedestal | SNES Pi | N64 Odroid
Former Projects:     4 Player Showcase | Donkey Kong | iCade

Diewrecked

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 179
  • Last login:June 20, 2012, 07:34:08 am
  • I want to build my own arcade controls!
Re: MAME P1 start default not being accepted
« Reply #3 on: November 10, 2010, 08:11:02 am »
Thanks guys - yeah I completely forgot about the cfg folder! I've also renamed that now.

However I still have the same issue, but it's just got much, much weirder.

My CP has three buttons underneath, for pause, exit and power. Power obviously cabled to the PC power button; pause and exit each cabled to a U360 as button 8 (button 7 for P1 and P2 respectively).

I launched a game (Galaxians) and went into the Controls (General) page. I set P1 start to U360-1 button 7 and P2 start to U60-2 button 7. Pause is set to U360-1 button 8 and exit to U360-2 button 8. The default.cfg file (now the only file in the cfg folder, I deleted the galaxian.cfg file when I quit the game) looks like this:

Code: [Select]
<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
    <system name="default">
        <input>
            <port type="P1_START">
                <newseq type="standard">
                    JOYCODE_1_BUTTON7
                </newseq>
            </port>
            <port type="P2_START">
                <newseq type="standard">
                    JOYCODE_2_BUTTON7
                </newseq>
            </port>
            <port type="UI_PAUSE">
                <newseq type="standard">
                    JOYCODE_1_BUTTON8
                </newseq>
            </port>
            <port type="UI_CANCEL">
                <newseq type="standard">
                    JOYCODE_2_BUTTON8
                </newseq>
            </port>
        </input>
    </system>
</mameconfig>

However, Pause and Exit now action on those two buttons under the CP, but P1 start is still kbd1 and P2 start is still kbd2. Where is it picking them up from and how do I fix it please?

Worst case I'll just cable them up to the J-Pac and program it so that they ARE kbd1 and kbd2 but I'd rather actually fix this very odd problem!

Cheers all.

Stobe

  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 891
  • Last login:March 14, 2025, 10:01:03 pm
  • Don't make a fuss, I'll have your Spam!
Re: MAME P1 start default not being accepted
« Reply #4 on: November 12, 2010, 02:50:22 pm »
i have a similar problem on one of my cabs that I haven't spent enough time troubleshooting yet.  But on mine, it seems most games work fine, except galaga won't accept P1 Start, despite being listed as using the same button as every other game (which all work).

I'll have to look at the CFGs also.  But when I hit tab, and go into "inputs - this game", they are listed just like the other games that work.

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: MAME P1 start default not being accepted
« Reply #5 on: November 12, 2010, 05:20:11 pm »
Are you using straight forward command line mame?   If you are using a variant such as mameui there are other places where the button assignments are set,

Diewrecked

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 179
  • Last login:June 20, 2012, 07:34:08 am
  • I want to build my own arcade controls!
Re: MAME P1 start default not being accepted
« Reply #6 on: November 13, 2010, 04:52:23 pm »
Are you using straight forward command line mame?   If you are using a variant such as mameui there are other places where the button assignments are set,

Hi BobA

I'm using MAMEUI32 (can't remember which version now but about two years old).

TBH I was too excited about getting this project finished once the CP was built and cabled so I just recabled those two button to the JPAC and reprogrammed as 1 and 2.

Cheers guys :)

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: MAME P1 start default not being accepted
« Reply #7 on: November 13, 2010, 05:05:49 pm »
Glad you got it worked out.  Mameui allows you to select different controller mappings which probably override other mame setting.  It is difficult when you can set the same thing in so many different places.