Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: LeedsFan on April 15, 2019, 07:13:29 am

Title: Slider settings in Mame
Post by: LeedsFan on April 15, 2019, 07:13:29 am
I've just managed to get HLSL looking really nice on my cabinet. The monitor is a 4:3 aspect ratio and most vertical games on it have the top and bottom cut off slightly. I can get round this by setting the Vertical and Horizontal Stretch values to 0.95 each instead of 1.0.

I don't mind the horizontal games being this also. So is there a way in the Mame.ini to set those stretch values to 0.95 for all games? I can't find a setting anywhere and at the moment I'm having to alter each games as it is loaded up. Thankfully those changes are permanent (in the individual .cfg file for that game I presume?) but it is still a pain none-the-less.
Title: Re: Slider settings in Mame
Post by: nexusmtz on April 15, 2019, 07:06:03 pm
There is no global setting because MAME doesn't support hstretch and vstretch in cfg\default.cfg, and there are no command line options for those settings.

You can make an override artwork file to scale the picture, but that would replace any existing artwork (like bezels and overlays), so I don't really recommend it.

Anyway, to do that, you'd make a file called percent.lay:
Code: [Select]
<mamelayout version="2">
<view name="95percent">
<bounds left="0" top="0" right="3000" bottom="4000"
<screen index="0">
<bounds left="75" top="100" right="2925" bottom="3900" />
</screen>
</view>
</mamelayout>
Put that in a zip called percent.zip in your artwork directory.
Include -override_artwork percent on your command line to test.
Add override_artwork percent to your vertical.ini to use.
Title: Re: Slider settings in Mame
Post by: LeedsFan on April 15, 2019, 07:48:22 pm
Yeah thanks... but as you say I don't want to lose existing artwork.

I did open up a cfg file in Word and it just seems to have hstretch and vstretch values set at 0.95 each in XML format (once I've set the slider manually of course which creates the cfg). I tried putting those commands in mame.ini and no dice. Nerw games still need tweaking manually.

If there was a program that could create cfg files for all the rom names and I could first set the XML code within that would work I 'spose. But I've no idea if such a thing exists.