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: Slider settings in Mame  (Read 3228 times)

0 Members and 1 Guest are viewing this topic.

LeedsFan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1042
  • Last login:January 17, 2021, 06:14:23 am
Slider settings in Mame
« 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.

nexusmtz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 489
  • Last login:June 01, 2022, 03:14:22 am
Re: Slider settings in Mame
« Reply #1 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.

LeedsFan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1042
  • Last login:January 17, 2021, 06:14:23 am
Re: Slider settings in Mame
« Reply #2 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.