Attract-Mode Support Forum

Attract-Mode Support => Themes => Topic started by: tsaylor on May 16, 2021, 05:33:22 PM

Title: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on May 16, 2021, 05:33:22 PM
For my arcade cabinet, the theme "At-The-Arcade Multi-Cab" was nearly perfect! But then I ruined everything by getting into pinball games -- a problem because I turned my monitor vertical, but also because I needed to display pinball tables as well. With that, I undertook a months long project of learning how to write Attract-Mode layouts and shaders, and modified At-The-Arcade Multi-Cab to become: At-The-Arcade Flex! A flexible version of the original, supporting (in theory) every resolution and aspect ratio, and also adding support for the display of pinball cabinets.

First, a note of thanks! This layout is definitely standing on the shoulders of giants as they say, and it would not exist without the excellent work of:
Features added with this layout:

Demo:
https://www.youtube.com/watch?v=8IdFfWR30RI

Download the theme (updated to v1.1 Dec-29-2021):
https://mega.nz/file/fkgHyAYZ#-6I4-cUdBert9jcnAStAwIbWHq1SM_oaSB3SMtFsp_I
For install instructions, please see the ReadMe.txt file in the download zip (thanks again to Yaron2019)

Download the updated cabs:
https://mega.nz/file/rA833QiL#dqhQFfdh608n1pAdJdNnngajGSFI1NktuBkc37bJzMw

If needed, download other art from Damonxxx's original post:
http://forum.attractmode.org/index.php?topic=3778.0

Download fanart (optional):
https://mega.nz/file/gQlkBKia#Hz87o3SeV2I8GmR52aFCF-etVmJO-kjPWEt1VzBbVk0

Download bezels (optional):
https://github.com/thebezelproject/bezelproject-MAME

Change log (changes now maintained at https://github.com/toddsay/AtTheArcadeFlex):
1.0 Initial release
1.1 Fix potential crashes, auto-rotate horizontal snap videos for non-FX3 pinball tables

Examples shown below for:
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on May 16, 2021, 05:34:02 PM
And one more screenshot showing a "square" resolution
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Yaron2019 on May 16, 2021, 11:59:20 PM
My name is Yaron2019 and I endorse this layout  :D

Now seriously - this is what At-The-Arcade was missing, a more dynamic approach to resolutions and aspect ratios. On the way tsaylor did an excellent job to also enhance other features. I love this, well done!
Community effort FTW!
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on May 17, 2021, 12:02:49 AM
Indeed, community and collaboration is where it's at! Go team! 8)
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: P47 on May 22, 2021, 07:16:56 AM
Fantastic theme, but works on PI4 ?
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on May 23, 2021, 12:47:31 AM
Honestly I've never tried running Attract-Mode on a PI at all, so I'm not sure what the platform differences are. I've only tested on a PC, but now I'm curious how it looks on other platforms.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Jontox on May 25, 2021, 11:08:41 PM
Amazing contribution effort!
What a theme !

Just a quick question, how can we adjust the ambient music volume in comparison to videos snap volume ?
Attractmode volume settings ambient doesn’t seem to work.

Thanks a lot for your combined works
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on May 25, 2021, 11:44:38 PM
Thanks Jontox! I hadn't really experimented with that, but it seems like the global sound settings are the only control available. Doing some quick tests, the "Movie Volume" setting controls the snap volume, and the "Sound Volume" controls the ambient sound volume (or music) and wheel sounds. It seems that "Ambient Volume" doesn't control anything in this case.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Jontox on June 05, 2021, 11:50:26 AM
Hi tsaylor,

Is there a way to fix the theme resolution to 320x240 P ?
Any settings in the layout.nut to modify? Would the theme be compatible?

I’m currently running an arcade computer box within a candy cab with a crt arcade monitor.
For now, attractmode seems to start at desktop resolution 640x480i of win10.

Interlaced mode is not suitable, visually speaking.

Many thanks in advance for your thoughts on this

Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on June 05, 2021, 01:34:01 PM
Hi Jontox. I don't have experience with that type of monitor so I'm not really sure what the options are. As far as I know, AttractMode wants to run at the native Windows resolution. In theory you can force it in layout.nut by doing something like this:

Code: [Select]
fe.layout.width=320;
fe.layout.height=240;
fe.layout.preserve_aspect_ratio=true;

However I haven't had luck with that on my system, as it still seems to use a larger resolution than that. And I suspect it won't do what you want anyway since AM is still starting with that 640x480i resolution.

The other thing you can try is switching AM to windowed mode in the General options. That should allow you to size the window. Trying that I was able to get a 320x240 window, and this theme did look correct there. But in that case you'd just be using part of the screen so I don't think that is what you are looking for either.

Unfortunately I suspect that none of this will give you what you are looking for. Really it seems like you'd need to somehow configure the native Windows resolution at 320x240, but I'm not sure if that is even an option for your hardware.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Jontox on June 05, 2021, 10:58:11 PM
Thanks for your reply tsaylor.
What you replied confirms what I found out on arcadecontrols forum.

Here the answer:

 http://forum.arcadecontrols.com/index.php?topic=158043.0 (http://forum.arcadecontrols.com/index.php?topic=158043.0)

I’ve read also on another thread on arcadecontrols, but don’t have the link right now that the way attractmode is coded it is dependent on the win7/10 desktop resolution chosen.

So thanks to crtemudriver, you can inject first with vmmaker an additional custom resolution below 640x480i thus 320x240p, and use it.
I’ll test it and report back here.

N.B.: From what I read, and these are the words from “substring” the nice guy behind GroovyArcade (Linux iso including all is needed Grovvyarcade, crtemudriver, ….for setting up a computer box in a arcade cabinet) the best progressive low res resolution would be 384x288 @ 50Hz.
http://forum.arcadecontrols.com/index.php/topic,160023.120.html (http://forum.arcadecontrols.com/index.php/topic,160023.120.html)
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: cybermat on June 06, 2021, 01:24:52 PM
Regarding Pinball, there are cabinets pack for Visual Pinball and similar ? I just found video snaps for pinball.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on June 06, 2021, 02:33:21 PM
Hi cybermat. The images I found were at emumovies, and called a virtual machines pack, like this https://emumovies.com/files/file/3734-pinball-fx3-virtual-machines-pack. If you have such images you can put them in directory identified by "pincabs" in your emulator .cfg file.

This "flex" theme also includes a generic image of a machine, where the snaps and backglass (using the "marquee" images) can be rendered, so it should be possible to get the correct effect by supplying only the snaps and backglass images. I did notice that many pinball snaps are oriented sideways (horizontally wide rather than vertically tall). This theme does not currently try to rotate them so only vertical snaps will look correct.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Jontox on June 08, 2021, 01:26:30 PM
Thanks for your reply tsaylor.
What you replied confirms what I found out on arcadecontrols forum.

Here the answer:

 http://forum.arcadecontrols.com/index.php?topic=158043.0 (http://forum.arcadecontrols.com/index.php?topic=158043.0)

I’ve read also on another thread on arcadecontrols, but don’t have the link right now that the way attractmode is coded it is dependent on the win7/10 desktop resolution chosen.

So thanks to crtemudriver, you can inject first with vmmaker an additional custom resolution below 640x480i thus 320x240p, and use it.
I’ll test it and report back here.

N.B.: From what I read, and these are the words from “substring” the nice guy behind GroovyArcade (Linux iso including all is needed Grovvyarcade, crtemudriver, ….for setting up a computer box in a arcade cabinet) the best progressive low res resolution would be 384x288 @ 50Hz.
http://forum.arcadecontrols.com/index.php/topic,160023.120.html (http://forum.arcadecontrols.com/index.php/topic,160023.120.html)

Some feedback after testing for all those that would be interested.

Definitely this theme is better in 640x480i @ 60Hz than lower progressive resolution.

My VMMaker refuse to use 384x288P @ 50 Hz on my Nanao MS9-29. Anyway, I won't get below the first mentioned resolution.



Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: sosimple on September 03, 2021, 07:13:43 AM
Thanks for this amazing mod. But i have a small problem. I run it in a 4k 65 inch tv (3840 x 2160 pixel) ..  ;D
The original theme (the arcade multicub) is working perfectly. This one is extremely luggy in this resolution. If i first change tv resolution to HD then it works fine, without the lug. I can create an autoit script to change resolution before run attract mode, and restore it after but it isn't the best approach.. If you or anybody has any idea how to change the resolution to something lower (hd for example) it would be fine.
Thanks anyway.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: gsm2021 on September 03, 2021, 10:52:12 AM
in the display options of the flex layout, at the very bottom, you should see an option that says "Enable key for resolution testing". Set that to "Custom2" for example. Then go into Control Settings in Attract options and set Custom2 to whatever keys you want that aren't assigned to something else. Then while in the display you should be able to hit those set keys to change resolution. Hope that helps.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on September 03, 2021, 05:56:12 PM
sosimple, my 4k system runs this theme fine, but it's using a fairly modern GPU (Nvidia 1660ti). What does your CPU/GPU hardware look like? And when do you notice the lag? I assume it's when scrolling through the game titles?

gsm2021's suggestion is good advice for testing different aspect ratios, but I don't think it will help in this case because it is simulating different aspect ratios but still based on the current resolution.

I'm trying to think of what would cause the most slowdown. Most likely suspect is the shaders, which are used by several settings:
You could test whether disabling any/all of those makes a significant improvement. Perhaps some of those are more of a GPU burden than others.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: sosimple on September 04, 2021, 06:36:18 AM
sosimple, my 4k system runs this theme fine, but it's using a fairly modern GPU (Nvidia 1660ti). What does your CPU/GPU hardware look like? And when do you notice the lag? I assume it's when scrolling through the game titles?

gsm2021's suggestion is good advice for testing different aspect ratios, but I don't think it will help in this case because it is simulating different aspect ratios but still based on the current resolution.

I'm trying to think of what would cause the most slowdown. Most likely suspect is the shaders, which are used by several settings:
  • Enable CRT screen glow shader
  • Enable CRT bloom or lottes shaders
  • Enable lighted marquee effect
  • Enable wheel background
  • Text glow on "Show game information" and music player
  • (the top drawn above the cabinet for narrow resolutions)
You could test whether disabling any/all of those makes a significant improvement. Perhaps some of those are more of a GPU burden than others.
As you already have noticed, i don't have good gpu. I use a mini pc i7 10710u (6 core 12 threat) with it's internal gpu.. 16 giga ram. I also test your theme to a i5 7200u laptop (also the same internal gpu) and it is working fine there but the resolution of the screen is HD there. Also if i set the tv resolution to HD it works fine. Actually you can't tell what is lugging as it is everything lug, even the videosnap i think.. I already have set a button to change aspects ratio (i think this is what is changing, not the actual resolution) but no improvement.. I'll try to change some things to see if things go better. Until now whatever i changed, may improve things but not much. The solution would be if theming has the option to change resolution. I think it haven't until now.
At past i had written a script in autoit which changed the resolution - run attract mode - wait until attract mode stops working - changed resolution back.  But i doesn't know where i have it now. I can always re written it but i need to remember some coding..
I'll posted if/when I'll do it again although it may be a non universal solution as changing resolution may not work in all monitors by same code.
I actually using your theme instead of original at the arcade multicub mostly because cabinet are a bit bigger in your theme and i like it more. Otherwise its almost the same for my use. The original doesn't lugg in 4k.
(i also like it better because i have pinball games).
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on September 04, 2021, 11:37:29 AM
Ah ok, so you have a strong CPU, better than mine, but no discrete graphics card. I don't believe AttractMode has any way to set screen resolution. The resolution of the layout can be changed in the scripting, but that just changes the area within the window not the resolution of the screen itself, so you'd just end up with black borders which I don't think is what you are looking for.

You could use an external app to switch resolution as you mentioned, but I'm also interested in improving the performance if we can find a way. Thinking about what is different between the original multi-cab and this flex version, but main thing that comes to mind is the shader that does the wheel background. I could see that one causing poor performance, so I'd be curious how much improvement you see if you turn that feature off. The other thing that comes to mind is the shader that draws the cabinet top, depending on your aspect ratio -- do you run this in portrait or landscape?

It's nice to see the pinball feature is useful to somebody other than myself. 8)
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: sosimple on September 04, 2021, 01:49:11 PM
I'm also interested in improving the performance if we can find a way. Thinking about what is different between the original multi-cab and this flex version, but main thing that comes to mind is the shader that does the wheel background. I could see that one causing poor performance, so I'd be curious how much improvement you see if you turn that feature off. The other thing that comes to mind is the shader that draws the cabinet top, depending on your aspect ratio -- do you run this in portrait or landscape?

It's nice to see the pinball feature is useful to somebody other than myself. 8)
Ok i found the "guilty". Its :Crt glow shaders. I changed everything one by one. Although everything seems to have a small reduction in performance (so if you don't use anything will be the fastest possible - probability someone with worst hardware might find it useful -), but crt glow shaders does an huge lugginess.. I would say 20-30 times reduction speed than all other options together :). You press a key to show next game in cabin and it shows it 2 sec later... By disabling this its fast enough for me.
I run it in landscape (65 inch tv). It looks wonderful :)
Thanks again for all.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on September 04, 2021, 02:42:20 PM
Excellent! Thanks for running those experiments, it is good to know. I think that glow shader does some sort of overlapping gaussian blur (and it extends out over the whole screen to some degree, so probably operating on way too many pixels in the 4k case). That option also exists in the original multi-cab theme so perhaps it would slow that one down too if enabled. But I would definitely regard that as one of the optional effects, not really critical to have, so I'm glad that was able to get you "good enough" performance.

Maybe eventually we could get the newer wheel logic in there, as I understand it performs much better. But that's a project for another day.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on December 29, 2021, 08:56:48 PM
I added a minor V1.1 update, just:

* Fix some potential crash issues
* Add automatic rotation for snap videos, in the case of Pinball videos that are landscape (i.e. sideways). I applied this logic only to "Pinball" emulators but not to "FX3", because there is a commonly used set of snaps for FX3 that are landscape but with the table oriented vertically.

I replaced the download with this version 1.1, but the layout.nut file is the only thing that changed.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on December 31, 2021, 12:12:05 PM
To better manage any future changes, this theme is also now stored in GitHub at https://github.com/toddsay/AtTheArcadeFlex
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Tungsten78 on January 02, 2022, 10:12:08 AM
Nice, open to merge requests?
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on January 02, 2022, 11:29:02 AM
Nice, open to merge requests?

Sure, this whole project has been a collaboration, a modification and enhancements to the work of others. I can accept changes as long as they support the various aspect ratios (the hotkey setting can be used to simulate different resolutions).
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: punkfungus on January 10, 2022, 01:59:13 PM
Hi, it's an awesome Theme that I'll use but is there an option to show in wich FILTER I'm on like All, Favorites? it's just written Game for all filters if I enable the Game Information.

thank for the good works.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on January 10, 2022, 11:52:25 PM
Hi, it's an awesome Theme that I'll use but is there an option to show in wich FILTER I'm on like All, Favorites? it's just written Game for all filters if I enable the Game Information.

thank for the good works.

Thanks! Unfortunately no, there isn't currently a way to show the filter. But this is a good point, and Tungsten78 mentioned this too, that there should be additional details in that bottom section. I'd be happy to add more but I'm not sure how soon I'll get to that.

For now, if you're interested in editing your layout.nut file, you could look for the section where it says "Game: [ListEntry]/[ListSize]", and replace Game with "[FilterName]" (but if the result is wider it may require playing with positioning/size to make everything fit).
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Mark Norville on January 11, 2022, 02:08:31 AM
As it is your fault, I thought that I would add in here lol. I had a look through your layout.nut and blew my mind on how complex it is, and without ripping off the code bit by bit, I am trying to do what you have done in your layout

E.G I am trying to remove Snk / Playmore Sega (A lot of text that I do not want)

The code that I have is basic, which is what I like

Code: [Select]
//MANUFACTER FINISHED
local genre_info0 = fe.add_text("[Manufacturer]", flx*0.10, fly*0.96, flw, flh*0.015 );
genre_info0.font = font_bold;
genre_info0.charsize = 90;
genre_info0.align = Align.Left;
genre_info0.set_rgb(57,255,20);
// MANUFACTER END
Is there a much simpler way of stripping out unwanted from the above code?

I have been trying to follow some of your code

However, I am going brain dead and I am still trying to learn as I am going along, but I have hit a brick wall.

P.S I love the skin, at first I thought that I wanted the arcade, but then I changed to Panscan and that is amazing. I am trying to recreate your dot matrix listings at the bottom, but I am doing it from very basic knowledge.

Code: [Select]
function strip_man( ioffset )
    {
        local m = fe.game_info(Info.Manufacturer,ioffset);
        return split( m,"/,(" )[0];
    }
    fe.add_text( "[!strip_man]", flx*0.15, fly*0.627, flw, flh*0.050 );

I finally worked it out, my code is above, I have tried it on MAME and it works.  The original code is below that I was trying to copy, but could not get it working. The skin that I am working on has very basic code, compared to other themes such as this, which leads me to believe that the more code you have the more optimised the theme will be. I am experiencing some slow down and crashes using basic code.

local name = split( name, "(" )[0]; // shorten the manufacturer name when one of the followig characters exist
//      name = split( name, "[" )[0];
//      name = split( name, "/" )[0];
//      name = split( name, "," )[0];
//      name = split( name, "?" )[0];


Regards

Mark
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: punkfungus on January 11, 2022, 06:04:38 PM
Hi, it's an awesome Theme that I'll use but is there an option to show in wich FILTER I'm on like All, Favorites? it's just written Game for all filters if I enable the Game Information.

thank for the good works.

Thanks! Unfortunately no, there isn't currently a way to show the filter. But this is a good point, and Tungsten78 mentioned this too, that there should be additional details in that bottom section. I'd be happy to add more but I'm not sure how soon I'll get to that.

For now, if you're interested in editing your layout.nut file, you could look for the section where it says "Game: [ListEntry]/[ListSize]", and replace Game with "[FilterName]" (but if the result is wider it may require playing with positioning/size to make everything fit).

Thanks it's what I needed, good work almost perfect on my CRT Arcade Cabinet.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on January 12, 2022, 12:08:24 AM
As it is your fault, I thought that I would add in here lol. I had a look through your layout.nut and blew my mind on how complex it is, and without ripping off the code bit by bit, I am trying to do what you have done in your layout

Ha, yes part of it is my fault and part it the previous author (both the good parts and the bad parts). I actually haven't done a lot to that text section, as most of my focus was around the multi-aspect ratio changes. Most layouts seem to do things as in your example of "flx*0.10, fly*0.96, flw, flh*0.015", but that doesn't work so well when supporting both portrait and landscape orientations, so a lot of my changes involved using formulas instead of hard-coded numbers. The main thing I changed in this bottom text section was to support one line vs. two lines (for landscape vs. portrait). I'd like to go back at some point and add additional information in that section, and possibly rework how it formats those lines.

But anyway I'm glad you were able to have some success! And of course, copy or modify anything you like. These .nut files definitely take some getting used to. I also wanted to make sure you were aware of the wiki at https://attractmode.gitlab.io/wiki/reference/magic-tokens, just in case you aren't using that already.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Mark Norville on January 12, 2022, 12:34:35 AM
Yeah been using that and also searching the forum like mad, sadly a lot of old information, and sometimes not very good information.

E.G I wanted to know what over views were, and how to get the text displayed. I searched the forums and found multiple confusing posts, some of which were not even complete. You would have steps 1 & 2 but 3,4 & 5 were not included.

I did find one useful post, and bumped that up with new information from 2022, mainly because it gives new users like myself the chance to read proper information.

I did actually use the strip from the Wiki, it took a bit of trial and error but in the end it worked, I had a couple of dodgy results such as SNK/SEGA so no spaces, that would still show, and then SNK (bootleg) would still show, but my code will strip everything out now but it will leave SNK Playmore etc.

The coding is pretty simple ish to understand, e.g it is getting the year and then storing the year into a Y string, then you can do whatever you like with that code, such as printing on screen. I could never write code from the ground up though, and I thought that all themes would just be as easy as the one that I am messing around with, but some are very complex.

Sadly I have a busy week this week, so I need to force myself off the PC and get everything done but as long as I wake up early enough I can spend a few hours just waking up and messing around. I am the sort of person that if I want to do something, that becomes my main focus, so trying to get those to strip yesterday took me hours where I just sat at the PC and never done anything else until I had it working. I did congratulate myself with a beer though, as I was chuffed that I worked it out.

Hopefully soon, I can start doing some videos, to show newbies like me how to set things up, as not many tutorials on YT for this, and hopefully might get new people in the forum and using AM as I am quite impressed with it, and I started off on HS, then went to CO, and fed up that they keep coming out with new layouts, but none of the stuff that they come out with support full rom sets.

I think that I tried AM years ago as I remember the Nevato theme, but never liked the front end, but it is actually very good and gives the ability to do a lot with filters which a lot of other front ends cannot do, the only downside is no skinning engine for it, but, you have given me an idea actually.

You could potentially skin with Hyper Theme, transfer that across to AM and potentially edit that. I might have to look at that :)

Right time for another cuppa and then real life.

Regards

Mark

Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Multiplexer02 on January 12, 2022, 11:00:14 AM
What problem do I have here?

Version:
Attract-Mode v2.6.1 (Windows, SFML 2.5.1 +SWF +7z +Curl)
avcodec 58.54.100 / avformat 58.29.100 / swscale 5.5.100 / avutil 56.31.100 / swresample 3.5.100
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Mark Norville on January 12, 2022, 11:36:53 AM
I think that the skin creator said on page one, that you need to download his artwork for this to work properly.

You do have a post here, saying that the cabinets were edited http://forum.attractmode.org/index.php?topic=3778.0

I am using artwork that I have from Coinops and I am getting the same issues.

Regards

Mark
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Tungsten78 on January 12, 2022, 02:46:01 PM
@tsaylor. RE: Git

Curious how you have your repo setup relative to your attract installation?
* After forking the repo it looks like I'll need to clone at the attract root
* Doing so will constrain from maintaining a few layouts simultaneously
* Would you consider changing the root of your repo to your layout folder itself?
* You haven't changed the gtc-common or modules folders have you?  Might be best to have these as separate repos.  For simplicity, could go down the route of an aggregated repo with these as submodules.

Thoughts?
I'd be happy to POC this if needed.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Tungsten78 on January 12, 2022, 05:54:15 PM
Have you considered editing the input file metadata instead?

The magic string is pulling from the respective column in the romlist file.
This would be a fairly simple regex you could do in a text editor of your choosing.

I did actually use the strip from the Wiki, it took a bit of trial and error but in the end it worked, I had a couple of dodgy results such as SNK/SEGA so no spaces, that would still show, and then SNK (bootleg) would still show, but my code will strip everything out now but it will leave SNK Playmore etc.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on January 12, 2022, 05:59:32 PM
@tsaylor. RE: Git

Curious how you have your repo setup relative to your attract installation?
* After forking the repo it looks like I'll need to clone at the attract root
* Doing so will constrain from maintaining a few layouts simultaneously
* Would you consider changing the root of your repo to your layout folder itself?
* You haven't changed the gtc-common or modules folders have you?  Might be best to have these as separate repos.  For simplicity, could go down the route of an aggregated repo with these as submodules.

Thoughts?
I'd be happy to POC this if needed.

So... I wasn't really sure how to handle that, since the original layout was distributed at that "Master" directory level with all the required dependencies included. I hesitated to even include them, as I wasn't involved in their creation and am not even sure of all the original sources ("modules" as well as "gtc-common"). Then there is also the matter of the install instructions which are stored at that top level.

I would have preferred if the layout install "package" simply included the directory that can simply be placed under "layouts", but that would leave some complexity with the dependencies (and potentially the need to copy some files around after the fact). But that would have made applying updates easier. Makes me wish there were a general AttractMode way to declare/import dependencies without needing to include them in the layout downloads.

What I did on my system is put the entire repo into its own directory, and then made the AM "layouts/At-The-Arcade Flex" directory just a symlink to my git location. So that's another possible approach you could use. But I'm open to changing it, if you think the git submodule approach would be more workable.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Mark Norville on January 13, 2022, 01:20:12 AM
Ok so good news and some bad news.

I done all the hard work, supervising my computer with my eyes closed. Ok give it some credit, while I was sleeping my computer ran a batch file and took the 1920 x 1080 (ORIGINAL CoinOps) cabinets and then made them to 3840 x 2160.

I thought that might have solved the issue of the cabinets, but sadly that did not work. Well it works, it looks great on the skin that I am playing around with at the moment, but did not work on this skin.

Oh and before anyone asks, the whole lot is just over 10 gigs in size, and I may potentially upload it in the future, but I cannot do anything this week as busy in real life.

I can see what you mean by butchering it now, 1300 x 1080 for cabinets.png. I have just tried one cabinet and reduced it down to 1300 x 1080 that just looks squashed, and does not even go to the width of your cabinet how that looks.

However, it still had the original back ground, hang on I will do another test.

Ok so I now have a full sized cabinet working, I had to create a transparent 1300 x 1080 canvas, I then removed the background from one cabinet and then I cut and pasted that into the 1300 x 1080 canvas, saved that and job done.

Here is a rough 24 second video https://www.youtube.com/watch?v=Jn6okATnrKM

I will try something else a minute, so shall end here as just on my second cup of coffee and I am not even human yet.

Regards

Mark
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Mark Norville on January 13, 2022, 01:57:08 AM
Ok, another quick video https://www.youtube.com/watch?v=PDIBIqldzl0 it is not perfect the wall on the left is out of alignment, but this was just a two minute play around while I wake up.

However, I will say, as you said that you have all the files in your own local directory and not gtc-common.

Why did you not release this with all asset's inside their own directory, instead of the end user having to copy X,Y and Z into a directory that they may want to keep junk free?

It means that nothing can break if something is deleted by accident, if it is all in the layouts folder then it is all safe. If I go on a mad deleting spree and just kept the layouts folder, I now have a layout that no longer works.

I am not going to download all of the artwork, but I might have a look at one pack or the cabinets, just to see what you have done with the graphics.

Let's have a look at those graphics

You have removed the brick wall, how the hell did you do that? lol I have been trying, and failing and that was trying to remove it from one picture, let alone all the rest of them. Sadly when I do a mask it hits the arcade machine as well, I was hoping for a batch like I did resizing the cabinets, so God knows how long you spent removing all of those backgrounds, hopefully you never done it all by hand.

Regards

Mark
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on January 13, 2022, 08:17:40 AM
Yeah, this theme was just an enhancement to the work of others. The decision to include those upper level directories had already been made when I started my work, so I just stayed with the status quo. It's possible we could do that differently but I think the original author's intent was to avoid duplication of shared resources that are also used by several other themes.

The modifications to the coinops artwork all came from this thread by damonxxx http://forum.attractmode.org/index.php?topic=3778.0. If you check that one I think you'll see some discussion about how those files were reformatted and the bricks removed.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Mark Norville on January 13, 2022, 08:29:50 AM
Well I am learning slowly,

I just found out what carriers are, as you know they change how many wheel or marquee images are displayed on screen.

// Carriers
local slf = 2;

I just got to find out how to use them to my advantage now, I shall have a read of that link now.

Thanks :)

Regards

Mark

I just read the thread, sadly not what I wanted to here, but it is doable. Sadly a lot of information gets hidden.

However, from what I read.

1) Get cabinets the same shape as each other.
2) Start recording a batch file in photoshop and cut out the black walls.
3) Run batch file and let PS do the rest.

Dam means I have to do everyone myself lol as you lot have butchered the cabinets by going far too small.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: estefan3112 on April 03, 2022, 04:59:02 AM
Absolute killer layout. Works like a charm in MacOS, whereas gtc-common has to be installed in the .attract directory. Works on MacOS flawlessly. Thank you, this is pure joy  8). The changing cabinets drive me crazy  ;D.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Erg4zz4 on May 09, 2022, 07:25:06 PM
Absolute killer layout. Works like a charm in MacOS, whereas gtc-common has to be installed in the .attract directory. Works on MacOS flawlessly. Thank you, this is pure joy  8). The changing cabinets drive me crazy  ;D.
Hi, can you please help me, i’ve installed the theme on mac, everything is working fine, except for the games in the atomiswave or naomi white cabinets, i can see my old marquee behind the cab, any idea how to fix this? I will still use it if it’s not possible, the theme is amazing! Thanks
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on May 10, 2022, 12:08:37 AM
Hi, can you please help me, i’ve installed the theme on mac, everything is working fine, except for the games in the atomiswave or naomi white cabinets, i can see my old marquee behind the cab, any idea how to fix this? I will still use it if it’s not possible, the theme is amazing! Thanks

I've got an idea what is going wrong there. First of all, there is a designated space for showing the game's marquee, and many of the cabinet images include a blank (transparent) space there so that the marquee can show through from behind. But other cabinets (like the one's you're referencing I think) include that marquee as part of the cabinet, so the separate marquee image (not really needed in that case) will just show behind it and normally be hidden. But then we run into a smaller cabinet like this example, and the marquee shows around the top and sides because the marquee region isn't really covered.

So I think that explains the main issue, but the remaining bit is where does that image come from. I'm assuming there is no marquee file matching that rom name, so AttractMode starts looking elsewhere. Most likely it is finding a match for the emulator name or the display name (guessing something like mame.jpg). That image might be in the marquee directory, but it could also be in some other less obvious location. If I recall, I had a problem like that where the image was actually within the scraper directory.

I'd suggest looking around for that file, probably named the same as the emulator or display, and renaming it. If no substitute marquee image can be located, I think it will just be left blank and that should solve the issue.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Erg4zz4 on May 10, 2022, 05:11:05 PM
Yes, in the picture I’ve posted you can see the “general” arcade marquee behind the cab, but if i remove that image (mame.png) then I won’t have any marquee for the cabinets where I actually don’t have the respective marquee’s rom.
It is like my marquee are always in the same position , and it is perfect for the classics shape cabinets, or the big white ones because they are covered behind , the only “problem” is with the cabinets that don’t cover all the screen.
I will check tomorrow the scraper folder, thanks again for the great work! I will post any updates
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on May 10, 2022, 08:55:36 PM
Ok, then how about this: Make a transparent image, and name it to match the problem rom (for each of the ones with shorter cabinets). That way it should show nothing behind the marquee area, but only for these cabinets.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Erg4zz4 on May 11, 2022, 01:48:47 PM
Ok, then how about this: Make a transparent image, and name it to match the problem rom (for each of the ones with shorter cabinets). That way it should show nothing behind the marquee area, but only for these cabinets.

YES!!! great suggestion, now it's perfect! can't thank you enough! :D
just out of curiosity, why am i the only one having this problem? is there some configs that my mac can't read?
now back to renaming!  8)
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on May 11, 2022, 05:29:46 PM
YES!!! great suggestion, now it's perfect! can't thank you enough! :D
just out of curiosity, why am i the only one having this problem? is there some configs that my mac can't read?
now back to renaming!  8)

Nice! Looks much better.

I think this problem would appear for anyone with this type of cabinet and a generic "placeholder" image. It's a result of assuming a consistent placement for the marquee, then having cabinets of varying height. Now that you mention it, I think I did see this problem once. But in my case I removed that generic image. I suppose another option would be to make a generic cabinet that includes the marquee, making the placeholder marquee unnecessary.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: joelsaacks on March 23, 2023, 04:31:33 AM
Hi,

Love this front-end. Is it possible to show the game name or something like that in place of a missing marquee ?
I have most of them but I am missing quite a few. The "?" is ok though if its not possible.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on March 26, 2023, 12:58:58 PM
Hi,

Love this front-end. Is it possible to show the game name or something like that in place of a missing marquee ?
I have most of them but I am missing quite a few. The "?" is ok though if its not possible.
Thanks! Unfortunately there is no option in the theme to do this. It could be added with additional coding, but I'm not currently spending any time on this theme, sorry (I'm building a full pinball cabinet so that's currently taking up all of my "hobby" time). I do agree that it would be better to provide this feature, and the same goes for the wheel when an image is missing.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: giantsean on September 21, 2023, 10:52:31 PM
Hi!  First off, thank you sincerely for all this great work!

This may be the world's dumbest question but some of these options are more trial and error than intuitive :D

I am using ATA as a launcher for multiple emulators including Visual Pinball X.  In VPX folders I created a "pincabs" folder, updated the cfg file, and located cabinet art.  The cabs design displays properly but the backglass portion only shows the generic "Mame Arcade" logo.  All the pincabs PNG files have backglass images as part of the file but this portion is somehow being covered by the generic.  Is there a trick to display them properly and/or avoid the generic one from appearing?

Thanks!
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: RjamesC on September 25, 2023, 07:47:58 AM

I am using ATA as a launcher for multiple emulators including Visual Pinball X.  In VPX folders I created a "pincabs" folder, updated the cfg file, and located cabinet art.  The cabs design displays properly but the backglass portion only shows the generic "Mame Arcade" logo.  All the pincabs PNG files have backglass images as part of the file but this portion is somehow being covered by the generic.  Is there a trick to display them properly and/or avoid the generic one from appearing?

Thanks!

In my vpx i have the backglass in a marquee folder , my layout seems to pull it from there even though its not listed in the cfg file.
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: tsaylor on October 08, 2023, 09:43:33 PM
The layout does pull those backglass images from the "marquee" location (basically treating pinball backglass the same as a video game marquee). Typically you'd have a definition for marquee in your cfg file, but I think AttractMode will also look for a folder by that name if the definition isn't there. For example, my pinball cfg file has this line:

artwork    marquee         $PROGDIR/menu-art/pinball/backglass
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Ryugah on October 26, 2023, 05:46:35 AM
this theme is pretty great but i cant put to work the cabinets.

i put the thing where the instruction says "Arcade\menu-art\mame\cabinets" but no results for me :(
Title: Re: At-The-Arcade Flex (multi-resolution / multi-aspect, MAME + pinball) [Release]
Post by: Ryugah on October 26, 2023, 05:57:22 AM
nevermind i got it