Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: Diewrecked on November 08, 2010, 06:48:33 am

Title: MAME P1 start default not being accepted
Post by: Diewrecked 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
Title: Re: MAME P1 start default not being accepted
Post by: BobA 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.
Title: Re: MAME P1 start default not being accepted
Post by: severdhed 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.
Title: Re: MAME P1 start default not being accepted
Post by: Diewrecked 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.
Title: Re: MAME P1 start default not being accepted
Post by: Stobe 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.
Title: Re: MAME P1 start default not being accepted
Post by: BobA 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,
Title: Re: MAME P1 start default not being accepted
Post by: Diewrecked 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 :)
Title: Re: MAME P1 start default not being accepted
Post by: BobA 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.