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: Adjusting the gap/margin between screens in cocktail mode in MAME?  (Read 2052 times)

0 Members and 1 Guest are viewing this topic.

laserbones

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:September 28, 2014, 11:18:11 am
I currently have a cocktail table with a 16:9 monitor. cocktail mode is great but it butts the 2 game screens up against each other in the middle of the monitor screen. Is there a way to increase the gap to push them closer to the two players? Thanks!

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Yesterday at 08:25:56 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Adjusting the gap/margin between screens in cocktail mode in MAME?
« Reply #1 on: May 02, 2014, 11:30:33 am »
Yes you should be able to do this via a custom layout file.... hit up Mr. Do's Artwork for some examples via looking at mame artwork.

laserbones

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:September 28, 2014, 11:18:11 am

laserbones

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:September 28, 2014, 11:18:11 am
Re: Adjusting the gap/margin between screens in cocktail mode in MAME?
« Reply #3 on: May 04, 2014, 05:16:00 am »
For anyone needing it here is the code I used to adjust the gap in my cocktail table. As mentioned I'm working with a 1920x1080 monitor in portrait mode. You'll need to modify the code a little if your setup is different. Place the code below in a default.lay file in a folder that is titled the same as your rom. the "y" parameter is where you can adjust the middle gap between the two cocktail screens. This is also for 4:3 games.

Code: [Select]
<mamelayout version="2">
    <view name="Cocktail + Gap (4:3)">
        <screen index="0">
            <bounds x="0" y="-3.9" width="4" height="3" />
            <orientation rotate="180" />
        </screen>
        <screen index="0">
            <bounds x="0" y="0" width="4" height="3" />
        </screen>
    </view>
</mamelayout>

RyoriNoTetsujin

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 545
  • Last login:March 23, 2024, 03:55:45 pm
Re: Adjusting the gap/margin between screens in cocktail mode in MAME?
« Reply #4 on: May 04, 2014, 07:57:07 pm »
I've never messed with layout files, but this sounds really interesting to play with. Could you give a little more detail as to how to make this work?

Where exactly do the layout file and folder need to be? How do you create the .lay file? Is it just a text file renamed?  Does it have to be compiled into a fresh mame executable? The mamedev wiki doesn't seem to specify any of this, unless I'm having reading comprehension problems... wouldn't be the first time!  ;D


laserbones

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 20
  • Last login:September 28, 2014, 11:18:11 am
Re: Adjusting the gap/margin between screens in cocktail mode in MAME?
« Reply #5 on: May 04, 2014, 09:04:05 pm »
You don't need to recompile MAME. Just place that code into a text doc and save with the extension to .lay once you have that file make a folder in the artwork subdirectory of your MAME directory that is named the same as your game. IE: battletoads, at least for MAME .151, is titled btoads.zip so I placed the default.lay file into a "btoads" folder in my artwork directory. There should be an artwork directory in your MAME install by default. Most people use it for custom bezels but I personally like the black letterbox look around my games so I just used this to adjust the margin/gap between the cocktail screens.

So to clarify, place the code above in a default.lay file you create in something like notepad. Then place the default.lay in your artwork folder which should be something like the following if you were doing it for a game like Battle Toads C:\MAME\Artwork\btoads\default.lay

I'm sure there are ways to make this a default but seeing as how I don't use that setup for all games I just applied it to the few I needed. Once you add that file you will be able to select the setup the same way you select cocktail or 4:3 mode. In other words, it will be in the same list when you hit Tab in MAME and then go to your video settings.
« Last Edit: May 04, 2014, 09:06:55 pm by laserbones »

RyoriNoTetsujin

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 545
  • Last login:March 23, 2024, 03:55:45 pm
Re: Adjusting the gap/margin between screens in cocktail mode in MAME?
« Reply #6 on: May 05, 2014, 08:26:41 am »
Nice! That worked perfectly, just as you described.  :cheers:

I have no current intention of building a cocktail table, but this at least makes it a feasible option.