gh0stp1rate Posted February 9, 2021 Share Posted February 9, 2021 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. Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted February 9, 2021 Share Posted February 9, 2021 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. Quote Link to comment Share on other sites More sharing options...
gh0stp1rate Posted February 9, 2021 Author Share Posted February 9, 2021 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? Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted February 9, 2021 Share Posted February 9, 2021 (edited) 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 February 9, 2021 by Headrush69 Quote Link to comment Share on other sites More sharing options...
gh0stp1rate Posted February 10, 2021 Author Share Posted February 10, 2021 Thanks I'll Give this a try and tell you how it goes, sorry for the late reply, I went to be early yesterday lol. Quote Link to comment Share on other sites More sharing options...
gh0stp1rate Posted February 10, 2021 Author Share Posted February 10, 2021 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> Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted February 10, 2021 Share Posted February 10, 2021 (edited) 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 February 10, 2021 by Headrush69 Quote Link to comment Share on other sites More sharing options...
gh0stp1rate Posted February 10, 2021 Author Share Posted February 10, 2021 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. Quote Link to comment Share on other sites More sharing options...
gh0stp1rate Posted February 10, 2021 Author Share Posted February 10, 2021 (edited) 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 February 10, 2021 by gh0stp1rate Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted February 10, 2021 Share Posted February 10, 2021 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. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.