Jump to content
LaunchBox Community Forums

Making a Custom Bezel for MAME


gh0stp1rate

Recommended Posts

3 hours ago, gh0stp1rate said:

Would anybody know how to configure a default.lay file for a custom bezel artwork for Punch-Out and Super Punch-Out? A traditional default.lay configured for a vertical layout won't work. I think it's because the games use 2 screens vertically.

It's no different than any other MAME layou.

You create you layout file with multiple views. just make one appropriate for each screen. 

Make sure you have a punchout.ini file in the MAME -> ini folder with the contents

Quote

numscreens 2

Now when you are in MAME, hit tab and go to video options. You should get the options to pick screen #0 or screen #1. Once you pick one, you can than pick the view you want for each.

Link to comment
Share on other sites

35 minutes ago, Headrush69 said:

It's no different than any other MAME layou.

You create you layout file with multiple views. just make one appropriate for each screen. 

Make sure you have a punchout.ini file in the MAME -> ini folder with the contents

Now when you are in MAME, hit tab and go to video options. You should get the options to pick screen #0 or screen #1. Once you pick one, you can than pick the view you want for each.

So other than adding the ini file, I won't have to change anything in the default.lay file which I have configured for vertical layout?

Link to comment
Share on other sites

I don’t know how well you know MAME layout files, but you’ll see that each view has a reference to a screen index.

You would need a view element that references screen #1

As a test, you can copy a current view, change the name and screen reference to #1 and should be good to go.

Here's a sample:

Quote

<!-- bezel.lay -->
<mamelayout version="2">

    <element name="bezel_top">
        <image file="bezel1.png" />
    </element>
    <element name="bezel_bottom">
        <image file="bezel2.png" />
    </element>
    
    <view name="Bezel Artwork For Screen #0">
        <bezel element="bezel_bottom">
            <bounds left="0" top="0" right="16" bottom="9" />
        </bezel>
        <screen index="0">
            <bounds left="2" top="0" right="14" bottom="9" />
        </screen>
    </view>

    <view name="Bezel Artwork for Screen #1">
        <bezel element="bezel_top">
            <bounds left="0" top="0" right="16" bottom="9" />
        </bezel>
        <screen index="1">
            <bounds left="2" top="0" right="14" bottom="9" />
        </screen>
    </view>

</mamelayout>

 

Edited by Headrush69
Link to comment
Share on other sites

It isn't working, all I get is a black screen with audio only. I basically divided all my art work elements for the bezel in half for each screen and then edited my default.lay for them and for the second screen. Here's how I have it configured it's for a 21:9 Ultrawide monitor:

 

Quote

<!-- punchout.lay -->

<mamelayout version="2">

  <element name="Artwork1">
    <image file="art1.png" />
  </element>

  <element name="Artwork2">
    <image file="art2.png" />
  </element>

  <element name="Screen_Bezel_Glass1">
    <image file="screen_bezel_glass1.png" />
  </element>

  <element name="Screen_Bezel_Glass2">
    <image file="screen_bezel_glass2.png" />
  </element>

  <element name="Screen_Bezel1">
    <image file="screen_bezel1.png" />
  </element>

  <element name="Screen_Bezel2">
    <image file="screen_bezel2.png" />
  </element>

  <element name="Screen_Mask1">
    <image file="screen_mask1.png" />
  </element>

  <element name="Screen_Mask2">
    <image file="screen_mask2.png" />
  </element>

   <view name="Artwork Bezel Glass Screen #0">
    <screen index="0">
      <bounds x="1340" y="67" width="870" height="653" />
    </screen>

    <overlay element="Screen_Mask1">
      <bounds x="1240" y="0" width="960" height="720" />
    </overlay>

    <backdrop element="Screen_Bezel_Glass1">
      <bounds x="1240" y="0" width="960" height="720" />
    </backdrop>

    <bezel element="Artwork1">
      <bounds x="0" y="0" width="3440" height="720" />
    </bezel>
  </view>

   <view name="Artwork Bezel Glass Screen #1">
    <screen index="1">
      <bounds x="1340" y="787" width="870" height="653" />
    </screen>

    <overlay element="Screen_Mask2">
      <bounds x="1240" y="720" width="960" height="720" />
    </overlay>

    <backdrop element="Screen_Bezel_Glass2">
      <bounds x="1240" y="720" width="960" height="720" />
    </backdrop>

    <bezel element="Artwork2">
      <bounds x="0" y="720" width="3440" height="720" />
    </bezel>
  </view>

</mamelayout>

 

 

Link to comment
Share on other sites

I’ll take a look after work.

in the meantime, I would commenting out the extra elements like backdrop and overlays and add individual elements as you go to make sure system is working. (So just bezel to start)

When you hit the TAB key in Mame, are you getting the option in video options to pick screen #0 or screen #1?

What version of Mame are you running? Version 225 introduced new layout rules and even though the old one while work for a year, if fixing this might be best to update to new system. (Doing this with my custom layout files)

Edited by Headrush69
Link to comment
Share on other sites

6 hours ago, Headrush69 said:

I’ll take a look after work.

in the meantime, I would commenting out the extra elements like backdrop and overlays and add individual elements as you go to make sure system is working. (So just bezel to start)

When you hit the TAB key in Mame, are you getting the option in video options to pick screen #0 or screen #1?

What version of Mame are you running? Version 225 introduced new layout rules and even though the old one while work for a year, if fixing this might be best to update to new system. (Doing this with my custom layout files)

I was able to get it to show up correctly after figuring out the correct x,y coordinates for each screen. Thanks for helping me figure it out! This is how I have my default.lay configured (didn't need the ini file as it was the cause of the black screen with only audio and not being able to bring up the menu):

Quote

<mamelayout version="2">

  <element name="Artwork">
    <image file="art.png" />
  </element>

  <element name="Screen_Bezel_Glass">
    <image file="screen_bezel_glass.png" />
  </element>

  <element name="Screen_Mask">
    <image file="screen_mask.png" />
  </element>

   <view name="Artwork Bezel">
    <screen index="0">
      <bounds x="1285" y="67" width="870" height="653" />
    </screen>

    <screen index="1">
      <bounds x="1285" y="720" width="870" height="653" />
    </screen>

    <overlay element="Screen_Mask">
      <bounds x="1240" y="0" width="960" height="1440" />
    </overlay>

    <backdrop element="Screen_Bezel_Glass">
      <bounds x="1240" y="0" width="960" height="1440" />
    </backdrop>

    <bezel element="Artwork">
      <bounds x="0" y="0" width="3440" height="1440" />
    </bezel>
  </view>

</mamelayout>

 

 

Edited by gh0stp1rate
Link to comment
Share on other sites

4 hours ago, gh0stp1rate said:

My MAME is the latest 0.228. I'm only able to get into the configuration menu without the ini file from there I can only select screen 0 but within it, options on how I want the screens to be displayed ie. Dual Over-Under (Gapless) etc.

Yes those are layouts that are compiled in. 

3 hours ago, gh0stp1rate said:

I was able to get it to show up correctly after figuring out the correct x,y coordinates for each screen. Thanks for helping me figure it out! This is how I have my default.lay configured (didn't need the ini file as it was the cause of the black screen with only audio and not being able to bring up the menu):

I for some reason thought you were using 2 physical screens and that is why the black screen happened. My mistake. 

Glad you got it working.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...