Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - calle81

Pages: [1]
1
Scripting / Game info text [Overview] causes pi to struggle
« on: September 12, 2017, 03:12:11 PM »
Hi,

Adding game info text like below causes performance issues on a pi when scrolling through a wheel. I was hoping that adding a transition state would solve the problem but it seems transitions and text don't work together. If you have any ideas pleas let me know.

local gtext = fe.add_text("[Overview]", flx*0.73, fly*0.25, flw*0.25, flh*0.45 );
gtext.set_rgb( 255, 255, 255 );
gtext.align = Align.Left;
gtext.charsize = 20;
gtext.rotation = 0;
gtext.word_wrap = true;
gtext.font = "MyriadPro-Bold.otf"
gtext.trigger = Transition.EndNavigation;

2
Themes / Need help with snap delay function
« on: September 11, 2017, 06:01:59 AM »
Hi, I need help finishing this snap delay function. Thanks for offering to help Kent79 :) I attached the nut file. It wont make much sense loaded in AM without Hurstys tiles and a bunch of other stuff. The code is at the bottom of the file. End goal is to have 1 or sec delay before the snap starts playing.

/////////////////////
//Snap playback with delay
////////////////////   
local snap_active = false;
local delay = 0;
local max_delay = 0;
snap.playing = snap_active;

max_delay=abs(("0"+my_config["dtime"]).tointeger())
max_delay=(max_delay>999 ? 100 : max_delay);

::fe.add_ticks_callback( this, "tick_fn" );

function tick_fn( ttime )
   {
      delay++;
      if ( delay > max_delay )
      {     
         if (snap_active == false){
         local snap = fe.add_artwork ( "snap", flx*0.183, fly*0.0376, flw*0.635, flh*0.56 );
//         snap.trigger = Transition.EndNavigation;
         snap.preserve_aspect_ratio = true;      
         snap_active = true;
         snap.playing = snap_active;
         }

      }
   }


3
Themes / Theme the filters menu
« on: September 10, 2017, 09:28:57 AM »
Hi,

I've seen themed filter menus in some theme. Are there any nice nut files to look at to learn how this can be accomplished?

4
Scripting / Preserve aspect ration in wheel using conveyor
« on: August 15, 2017, 12:09:50 PM »
Hi,

How can I mod this layout to preserver the aspect ratio of the wheel images? Its' very hard to get correct aspect using flw*x, flh*x

if ( my_config["enable_list_type"] == "Horizontal Low" )
{
fe.load_module( "conveyor" );
local wheel_x = [ -flx*0.45, -flx*0.3, -flx*0.2, -flx*0.04, flx*0.12 flx*0.28, flx*0.44, flx*0.6, flx*0.76 flx*0.92, flx*1.08, flx*1.24 ];
local wheel_y = [ fly*0.76, fly*0.76, fly*0.76, fly*0.76, fly*0.76, fly*0.76, fly*0.73, fly*0.76, fly*0.76, fly*0.76, fly*0.76, fly*0.76, ];
local wheel_w = [ flw*0.12, flw*0.12, flw*0.12, flw*0.12, flw*0.12, flw*0.12, flw*0.12, flw*0.12, flw*0.12, flw*0.12, flw*0.12, flw*0.12, ];
local wheel_a = [  255,  255,  255,  255,  255,  255, 255,  255,  255,  255,  255,  255, ];
local wheel_h = [  flh*0.2,  flh*0.2,  flh*0.2,  flh*0.2,  flh*0.2,  flh*0.2, flh*0.2,  flh*0.2,  flh*0.2,  flh*0.2,  flh*0.2,  flh*0.2, ];
local wheel_r = [  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
local num_arts = 12;

class WheelEntry extends ConveyorSlot
{
   constructor()
   {
      base.constructor( ::fe.add_artwork( my_config["orbit_art"] ) );
   }

   function on_progress( progress, var )
   {
     local p = progress / 0.1;
      local slot = p.tointeger();
      p -= slot;
      
      slot++;

      if ( slot < 0 ) slot=0;
      if ( slot >=10 ) slot=10;

      m_obj.x = wheel_x[slot] + p * ( wheel_x[slot+1] - wheel_x[slot] );
      m_obj.y = wheel_y[slot] + p * ( wheel_y[slot+1] - wheel_y[slot] );
      m_obj.width = wheel_w[slot] + p * ( wheel_w[slot+1] - wheel_w[slot] );
      m_obj.height = wheel_h[slot] + p * ( wheel_h[slot+1] - wheel_h[slot] );
      m_obj.rotation = wheel_r[slot] + p * ( wheel_r[slot+1] - wheel_r[slot] );
      m_obj.alpha = wheel_a[slot] + p * ( wheel_a[slot+1] - wheel_a[slot] );
   }
};

local wheel_entries = [];
for ( local i=0; i<num_arts/2; i++ )
   wheel_entries.push( WheelEntry() );

local remaining = num_arts - wheel_entries.len();

// we do it this way so that the last wheelentry created is the Center one showing the current
// selection (putting it at the top of the draw order)
for ( local i=0; i<remaining; i++ )
   wheel_entries.insert( num_arts/2, WheelEntry() );

conveyor <- Conveyor();
conveyor.set_slots( wheel_entries );
conveyor.transition_ms = 50;
try { conveyor.transition_ms = my_config["transition_ms"].tointeger(); } catch ( e ) { }
}

5
Themes / HyperPie Cinematix
« on: May 04, 2017, 03:50:34 PM »
Hi,

Here is the HyperPie Cinematix theme which is used for the main menu in our RetroPie image project. https://www.facebook.com/groups/1158678304181964/
http://imgur.com/XVDGl7g
http://imgur.com/bhM9BbM

https://mega.nz/#F!GU1AVJDa!yur7DC8krXEUhaSgKzhQkQ

You can get all the video snaps for the different systems from the Emumovies FTP (requires membership)

The video themes are made by members of the HyperPie project and some used with permission from James baker and Critical Cid.

The art is located in these folders on the Emumovies FTP:

/Upload Here/Project HyperPie Updates
/Official/Project HyperPie

The theme is really simple and made to play 720P 30 FPS videos without stuttering. There's a bunch of layout options for you to tinker with.

I don't have a capture card so here is a link to someone showcasing HyperPie:
https://www.youtube.com/watch?v=MMeecv6vrdE&t=496s

Here are some of the snaps I made:
https://www.youtube.com/watch?v=wV2qQPLmCuM
https://www.youtube.com/watch?v=qphIhI_dgfQ

We have also converted over 2000 game specific HyperSpin themes to 720P 30 FPS to be used with this theme on the Pi.

https://www.youtube.com/watch?v=rbW0SEDu8rs

And finally we have also converted almost all of the HQ snaps from 60 FPS to 30 FPS so that they run well in Attract Mode for the Pi. All this stuff is on the Emumovies FTP.



6
Themes / Project HyperPie - RetroPie Image Coming Soon!
« on: January 25, 2017, 11:58:33 AM »
If you have a pi its time to get excited ;) Over 100 different systems and collections with custom layouts. It's built around Hyperspin naming conventions so just drop your roms in and you are ready to go with all media included. It's a few weeks from release.

https://www.youtube.com/watch?v=E1zYLTtGOb8

7
Scripting / delay before playing snap
« on: January 09, 2017, 07:17:51 AM »
Hi, I'm doing themes with full screen video for the pi and I wonder if its possible to add a delay before the snap is played? Its a bit annoying right now when it starts playing immediately when you stop scrolling the wheel. 0.5-1 second delay would be ideal I think. Any help with a code snippet would be greatly appreciated. Thanks :)

8
Themes / Sub menu
« on: January 03, 2017, 12:44:17 AM »
Would it possible to create a sub menu for the main menu? So that we can sort between Arcade Systems, Consoles, Computers, Collections etc? Maybe call a different nut file within the same layout which has its own wheel.

9
Themes / Fade out the wheel?
« on: November 15, 2016, 03:15:32 PM »
Hi,

I'm messing around with the Robospin wheel and wonder if it is possible to make the wheel fade out after x amount of seconds? I'm trying to make a video based display selection theme (full screen) and the wheel is in the way :)

Pages: [1]