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: Anyway to select a size in between 4:3 and full screen in MAME?  (Read 4476 times)

0 Members and 1 Guest are viewing this topic.

delt31

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 65
  • Last login:August 01, 2020, 03:11:10 pm
  • I want to build my own arcade controls!
I want to make the screen size not 4:3 but not full screen (but in between) similar to how you can on some XBLA games.  Anyway to do this in MAME even if it's in an ini file?

DarthMarino

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 567
  • Last login:Today at 06:40:15 pm
Re: Anyway to select a size in between 4:3 and full screen in MAME?
« Reply #1 on: July 09, 2015, 07:40:01 pm »
Just hit Tab and go to the slider controls.  Horizontal stretch should do the trick.

adder

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 640
  • Last login:February 04, 2021, 10:51:51 am
  • Location: Easy St.
Re: Anyway to select a size in between 4:3 and full screen in MAME?
« Reply #2 on: July 09, 2015, 08:04:39 pm »
using a mame layout file is another way to do it, I could look around for my old mame setup files if that's something you are interested in

delt31

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 65
  • Last login:August 01, 2020, 03:11:10 pm
  • I want to build my own arcade controls!
Re: Anyway to select a size in between 4:3 and full screen in MAME?
« Reply #3 on: July 09, 2015, 09:55:35 pm »
using a mame layout file is another way to do it, I could look around for my old mame setup files if that's something you are interested in

Horizontal stretch is exactly the option.  Now - if there is a way to set this option via an ini file, let me know.  Didn't see it as an option to configure in the mame ini but i did notice it's in the cfg folder for each applicable game where I changed it.  Would like to have a general change file so it applies it everywhere...

dmckean

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 729
  • Last login:January 13, 2024, 08:50:41 pm
Re: Anyway to select a size in between 4:3 and full screen in MAME?
« Reply #4 on: July 09, 2015, 10:03:03 pm »
You could put it in the mame.ini file but you probably want to create horzontal.ini and vertical.ini files and put it there. You'll probably want different settings for horizontal and vertical games.

delt31

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 65
  • Last login:August 01, 2020, 03:11:10 pm
  • I want to build my own arcade controls!
Re: Anyway to select a size in between 4:3 and full screen in MAME?
« Reply #5 on: July 09, 2015, 10:27:27 pm »
not familiar with the horizontal.ini.  How does that work? 

How do you add it to the mame.ini?  Tried adding horiz stretch and it didn't work.

DarthMarino

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 567
  • Last login:Today at 06:40:15 pm
Re: Anyway to select a size in between 4:3 and full screen in MAME?
« Reply #6 on: July 09, 2015, 10:36:10 pm »
It saves it per game in the CFG file.
Sample:

        <video>
            <screen index="0" hstretch="1.018000" />
        </video>

I don't believe there is a way to do a master CFG file though.
« Last Edit: July 09, 2015, 11:00:33 pm by DarthMarino »

delt31

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 65
  • Last login:August 01, 2020, 03:11:10 pm
  • I want to build my own arcade controls!
Re: Anyway to select a size in between 4:3 and full screen in MAME?
« Reply #7 on: July 09, 2015, 11:17:03 pm »
Thanks I noticed the same.  Was hoping to have a general setting so I don't need to change it for each game...

vwalbridge

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2082
  • Last login:July 31, 2021, 12:21:09 pm
  • Don't half-ass two things, whole-ass one thing.
Re: Anyway to select a size in between 4:3 and full screen in MAME?
« Reply #8 on: July 10, 2015, 06:02:31 pm »
so I don't need to change it for each game...

You might want to look into retroarch then. I know that you can squeeze and stretch the screen in any direction til your heart's content in retroarch. In fact, you can even move a 4:3 screen left or right on the screen itselft if that makes sense.

You change it once and it covers all the games. In other words, the screen settings stick with whatever emulator you have set them for.
« Last Edit: July 10, 2015, 06:25:00 pm by vwalbridge »
If you can read this, it means Photobucket's money grab ruined my signature photos.

delt31

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 65
  • Last login:August 01, 2020, 03:11:10 pm
  • I want to build my own arcade controls!
Re: Anyway to select a size in between 4:3 and full screen in MAME?
« Reply #9 on: July 11, 2015, 08:40:02 am »
thanks but I think this can be done with mame.  Maybe through this horizont.ini.  I tried this morning but not dice. If someone knows how to create the horizontal.ini so it applies horizontal stretch of .0932 to all my games it would be appreciated.

nexusmtz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 489
  • Last login:June 01, 2022, 03:14:22 am
Re: Anyway to select a size in between 4:3 and full screen in MAME?
« Reply #10 on: July 12, 2015, 05:45:01 am »
how to create the horizontal.ini so it applies horizontal stretch of .0932 to all my games

Are you sure you only want to stretch the width of the game screen? (Horizontal stretch does the game screen, but not the overlays or other artwork.) I think that feature was meant to allow you to tweak the fit of the game screen behind the bezel and overlay the same way that the arcade monitor's controls would have allowed.

If you want everything to change width together, just lie about your monitor's aspect; e.g. aspect 160:88 (MAME wants integers, so that would be the same as 16:8.8 instead of 16:9.) You'll have to figure out how large you need those numbers in order to provide enough granularity to hit the exact size you want.

As with most configuration parameters, you can try out different numbers using -aspect on the command line, then add the desired ratio to your ini file.

delt31

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 65
  • Last login:August 01, 2020, 03:11:10 pm
  • I want to build my own arcade controls!
Re: Anyway to select a size in between 4:3 and full screen in MAME?
« Reply #11 on: July 12, 2015, 08:47:20 am »
def - only want to change horizontal. Vertical is fine.

How exactly do I just change horizontal so it's applied to all of my games?

nexusmtz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 489
  • Last login:June 01, 2022, 03:14:22 am
Re: Anyway to select a size in between 4:3 and full screen in MAME?
« Reply #12 on: July 12, 2015, 07:55:12 pm »
There's already an entry for aspect in mame.ini. It's normally set to auto.

You can play around with the aspect by setting it on the command line; e.g. mame64 robotron -aspect 16:9 That would look the same as -aspect auto on a 1920x1080 LCD monitor.

If you run mame64 robotron -aspect 16:8, MAME still sees the same 1920x1080 resolution, but since you're telling MAME that your screen is physically wider than the pixels would indicate; i.e. twice as wide as it is tall, instead of 1.77777 times as wide; MAME compensates by creating the picture narrower than it normally would.

Applying the same logic, using aspect 16:10 would look wider than aspect 16:9 on the same monitor.

Once you find the right aspect, you just enter it in your mame.ini. That will set it for all games. For those few games that actually are widescreen, you can create game specific ini files to override to aspect auto.

Keep in mind that aspect affects everything in the artwork system. You haven't shown a screenshot or mockup of what you're trying to do, so I can't tell if the aspect feature would work for your situation. If you're just trying to cover a bit more of your widescreen monitor with the game screen so there isn't as much black on the sides, this will do it. Try it and let us know.