Author Topic: Attract Mode theme conversion - Big Box Unified  (Read 4083 times)

dmmarti

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Attract Mode theme conversion - Big Box Unified
« on: May 17, 2018, 07:34:38 AM »
Hey group,

I converted the Big Box theme called “Unified” (which is itself a port of the prior Hyperspin themes) into an Attract Mode layout. I also added in many more Collections PNGs to the layout.

There are two.

unified_menu       use for the displays menu (and sub-menus if using a nested menu mode)
unified_systems       use for all system/collections displays

It uses the system snaps (/menu-art/snap) full screen so make sure you are using high enough quality MP4 files so they don’t look all pixelated.

I use the 16x9 HD unified snaps from EmuMovies for my systems … and I just uploaded about 100 16x9 HD unified style snaps to EmuMovies for a bunch of collections as well. 

The layouts are pretty simple, not much to them since they use MP4’s full screen, but it does look nice on my Windows PC machine’s Attract Mode setup.

I added the game's boxart/cartart images dropping down like the Big Box theme has (check your AM emulator config files to add the boxart and cartart file paths if needed).

It does follow the Hyperspin/EmuMovies naming convention for system display names ... so you may have to adjust either your display's name or the filenames of the various PNG's to match.

I'm sure the layout.nut files could be enhanced, but it seemed to work pretty well for me.  So if you tweak it, please upload your changes!

Here’s the download link:

--9-28-2018 edit--

Download from Github (click on the Green button and select download as ZIP).

main menu theme/layout
https://github.com/dmmarti/am-theme-unified_menu

systems menu theme/layout
https://github.com/dmmarti/am-theme-unified_systems
« Last Edit: September 28, 2018, 09:19:53 AM by dmmarti »

bundangdon

  • Sr. Member
  • ****
  • Posts: 159
    • View Profile
Re: Attract Mode theme conversion - Big Box Unified
« Reply #1 on: May 17, 2018, 07:12:04 PM »
Nicely done! Thank you for sharing this  :D

scooter1974

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
Re: Attract Mode theme conversion - Big Box Unified
« Reply #2 on: May 18, 2018, 05:38:24 PM »
looking great! Going to give it a try :)

calle81

  • Sr. Member
  • ****
  • Posts: 180
    • View Profile
Re: Attract Mode theme conversion - Big Box Unified
« Reply #3 on: May 19, 2018, 12:56:01 AM »
Good stuff! :)

Noticed one thing you can improve if you want. The box and cart art animations could have a transition setting so that the animation and display of the art only starts on transition.EndNavigation. This would improve navigation speed a lot and look cleaner imho.

//////////////////////////////////////////////////////////////////////////////////
// Box art to display, uses the emulator.cfg path for boxart image location

if ( my_config["enable_gboxart"] == "Yes" )
::OBJECTS <- {
 boxart = fe.add_artwork("boxart", flx*0.5, fly*-2, flw*0.325, flh*0.6 ),
}

OBJECTS.boxart.preserve_aspect_ratio = true;
OBJECTS.boxart.trigger = Transition.EndNavigation;
if ( my_config["enable_gboxart"] == "Yes" )
{
//Animation for Global & Expert Mode
local move_transition1 = {
  when = Transition.EndNavigation ,property = "y", start = fly*-2, end = fly*0.275, time = 750, tween = Tween.Back
}

//Animation
animation.add( PropertyAnimation( OBJECTS.boxart, move_transition1 ) );
}

if ( my_config["enable_gcartart"] == "Yes" )
::OBJECTS <- {
 cartart = fe.add_artwork("cartart", flx*2, fly*0.625, flw*0.25, flh*0.255 ),
}

OBJECTS.cartart.preserve_aspect_ratio = true;
OBJECTS.cartart.trigger = Transition.EndNavigation;
if ( my_config["enable_gcartart"] == "Yes" )
{
//Animation for Global & Expert Mode
local move_transition1 = {
  when = Transition.EndNavigation ,property = "x", start = flx*2, end = flx*0.625, time = 750, tween = Tween.Back
}
//Animation
animation.add( PropertyAnimation( OBJECTS.cartart, move_transition1 ) );
}
« Last Edit: May 19, 2018, 01:01:31 AM by calle81 »

dmmarti

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Re: Attract Mode theme conversion - Big Box Unified
« Reply #4 on: August 07, 2018, 09:21:56 AM »
Bumped the release to version 3.0 now.

Fixed a few small things as well as added a couple of extra options.

The unified_systems can now have a straight vertical wheel or a curved vertical wheel.

I've got a few more ideas to implement ... just gotta find time to do it.

taelonian

  • Full Member
  • ***
  • Posts: 40
    • View Profile
Re: Attract Mode theme conversion - Big Box Unified
« Reply #5 on: August 20, 2018, 05:30:50 AM »
Thanks  :)

chad.burdette88

  • Full Member
  • ***
  • Posts: 37
    • View Profile
Re: Attract Mode theme conversion - Big Box Unified
« Reply #6 on: August 28, 2018, 11:36:56 AM »
Awesome port man!

taelonian

  • Full Member
  • ***
  • Posts: 40
    • View Profile
Re: Attract Mode theme conversion - Big Box Unified
« Reply #7 on: September 16, 2018, 12:07:50 PM »
Tested the theme but i have a problem with wheels that looks stretched

My aspect ratio is 16:9 (1920x1080)

Can i edit or somehow fix this problem

« Last Edit: September 18, 2018, 04:13:10 AM by taelonian »

dmmarti

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Re: Attract Mode theme conversion - Big Box Unified
« Reply #8 on: January 13, 2019, 06:04:49 PM »
@taelonian, sorry for the late reply on this....haven't checked on things here in a while.

I've updated the two Unified themes (unified_menu and unified_systems) to now have preserve_aspect_ratio for the wheels.  That should solve your issue.

There's been a few more systems added as well to the unified_systems.

Everything's updated on the Gitub links in the first post.

taelonian

  • Full Member
  • ***
  • Posts: 40
    • View Profile
Re: Attract Mode theme conversion - Big Box Unified
« Reply #9 on: January 14, 2019, 08:10:08 AM »
Thanks for the fix

TurnBasedStrategy

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Attract Mode theme conversion - Big Box Unified
« Reply #10 on: January 31, 2019, 02:23:53 AM »
Great work dmmarti!

Is it possible to make the game boxart/cartart a bit bigger? I'm making the Mega Drive collection, and there seems to be some unused space.

Also, the unified video seems to struggle at the beginning. Generally speaking, it freezes for a few seconds. Perhaps I should try the daily windows builds.

dmmarti

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Re: Attract Mode theme conversion - Big Box Unified
« Reply #11 on: January 31, 2019, 10:04:26 AM »
To adjust the size of the boxart and cartart images ... in the layout.nut file at the bottom, find these two sections.

Adjust their W and H values as needed (by changing the flw and flh multiplier values).  You may also have to alter their X and Y values to position them properly.  Those are located in that same section for each. 

boxart lines starting at:

if ( my_config["enable_gboxart"] == "Yes" )
::OBJECTS <- {
 boxart = fe.add_artwork("boxart", flx*0.5, fly*-2, flw*0.25, flh*0.45 ),
}

cartart lines starting at:

if ( my_config["enable_gcartart"] == "Yes" )
::OBJECTS <- {
 cartart = fe.add_artwork("cartart", flx*2, fly*0.675, flw*0.2, flh*0.2 ),
}

For the system videos .. since the theme uses full screen MP4 snaps ... you might try using 720p versions instead do 1080p versions, etc.  See if they run better on your setup.