Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: zanna5910 on September 25, 2013, 10:12:07 am

Title: mame0148 not using cfg game input
Post by: zanna5910 on September 25, 2013, 10:12:07 am
I compiled a version of mame 0148 last night and upgraded to it.  I copied all my 0144 folders to my new 148 folder, including my cfg directory.  It seems mame is not using my custom game key input though.  It does show bezels from the cfgs, but all the game input seems to be reverted to default.  LEDBlinky correctly shows the correct buttons as defined by the cfg.

Has anyone experienced this?  I have always been able to copy the cfg directory over and have it read the cfg files.  Anyone know how to get mame to read my cfg inputs so I dont have to remap all the games?
Title: Re: mame0148 not using cfg game input
Post by: zanna5910 on September 26, 2013, 12:26:32 am
Well, turns out mame wasn't happy with the input --> port --> tag parameter in my CFG's that 0144 was creating and was stripping out all game input data in 0148.

To fix this, you have to add a colon character in the tag field, see the example below:

You will see a line like this:
Code: [Select]
<port tag="IN0" type="P1_BUTTON1" mask="16" defvalue="0">
Change it to this:
Code: [Select]
<port tag=":IN0" type="P1_BUTTON1" mask="16" defvalue="0">
All these tags will be different in your files, you just have to add the : where necessary.

Notice the colon character in the tag parameter.  I have no clue why this is required now.  Can anyone shed any light on this?