Main > Lightguns
How to set MAME default analog controls for light gun
(1/1)
purbeast:
I am setting up my MAME PC inside my Maximum Force cabinet with a CRT and groovymame, etc, and I am trying to figure out if there is a way to set the default values for the "Analog Controls" section of the MAME settings.
When you press tab, you get "Input (General)", "Input (This Machine)", and right below that is "Analog Controls".
I have figured out how to set "Input (General)" which will default the "Input (This Machine)" values. I have done it via setting the button presses and stuff in the default.cfg file. I have also done it in the manner of creating a "lightgun.cfg" file and placed it in the ctrlr folder of MAME, and then setting the ctrlr value in MAME.ini to "lightgun". Basically the lightgun.cfg and default.cfg are the same thing. I do prefer the controller method though because default.cfg can get overwritten.
However, I cannot get the "Analog Controls" settings to be set to default values. I tried doing the same thing I did with the other stuff - change the values inside a game like Area 51 or Maximum Force, and then copying the values from maxforce.cfg or area51.cfg (and I've confirmed they are identical when I set the values to the same in game for both), and then placing that into the lightgun.cfg but it just ignores those values and does not default them when I go into those games.
The reason I want to default them is because they are are 8 slider values, that default to like 10 and 50, but I need to set them all to 255 and it is just time consuming to have to do it in every single game I am trying to play. That would be the worst case scenario but I am trying to see if I can figure out a way to just set these as a default like I can the other 2 control areas.
Does anyone have any idea if this is possible and how to do it?
purbeast:
So after digging through this more, I simply do not think it's possible.
In the MAME docs it even says stuff with the "tags" tag in the XML config files are only at the non default system level.
I tried setting those values for system "default" in both the ctrlr and cfg levels and it didn't work. I tried even adding the game specific systems in there, and that still didn't work.
I then thought okay I will just manually make the changes in Maximum Force, then copy the maxforce.cfg file, rename it the name of the other game such as area51.cfg, and then inside the file, edit the system from "maxforce" to "area51". And this worked. Kind of...
The problem is, not all games use the same tags nor the same variables inside of those. For instance, copying the Maximum Force and Area worked, since they both use the same variables. But then I also made Lethel Enforcers and Point Blank ones off of that original Maximum Force file, but it didn't work. After I manually changed the values in those games, I then looked at the .cfg files, and both Point Blank and Lethal Enforcers use different tags and variables in there too.
So there is basically no rhyme or reason to setting them by any specific names. It looks like I'm going to have to manually just do it myself for each game to create the correct .cfg file.
Navigation
[0] Message Index
Go to full version