Author Topic: Using native Hyperspin in attract-mode  (Read 7370 times)

sergiohyperspin

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Using native Hyperspin in attract-mode
« on: April 13, 2020, 02:12:03 PM »
Hi guys, i created an image that uses hyperspin themes in the attractmode using the hyperspin.nut. I modified the hyperspin.nut and the art to make more similar to the real hyperspin. My image uses some hyperpie v.1 themes for consoles, and other themes that i made using the hyperpie themes as model. If anyone wants i can share that base.
You can check my image in the following video: https://www.youtube.com/watch?v=uJy3-Rz-yQ4

Yaron2019

  • Guest
Re: Using native Hyperspin in attract-mode
« Reply #1 on: April 16, 2020, 05:52:24 AM »
Hi guys, i created an image that uses hyperspin themes in the attractmode using the hyperspin.nut. I modified the hyperspin.nut and the art to make more similar to the real hyperspin. My image uses some hyperpie v.1 themes for consoles, and other themes that i made using the hyperpie themes as model. If anyone wants i can share that base.
You can check my image in the following video: https://www.youtube.com/watch?v=uJy3-Rz-yQ4

Hi there!

I would love to have that base - code and everything. Can you provide a download link?

Thanks!

sergiohyperspin

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: Using native Hyperspin in attract-mode
« Reply #2 on: April 16, 2020, 11:01:35 AM »
Sure, i will prepare the base and post here.

sergiohyperspin

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: Using native Hyperspin in attract-mode
« Reply #3 on: April 25, 2020, 05:44:03 PM »
Hello Yaron, sorry about the delay, but when i saw your theme i was amazed.

So i was trying to implement some of the features of your theme in the hyperspin.nut and, given the limitations of my knowledge, i think i was sucessful. I manage to implement the following features (all credits to you and your coding):

- Set perspective 4:3  and 16:9;
- Dynamic bezels: the bezel correspond the emulator or game;
- Dynamic pointer: the pointer correspond the emulator
- Hyperspin art (next system,previous system, next game, previous game, press start,player 1 and 2 - the art can be changed by emulator, since searchs the emulator folder for the animation)
- Show cartart;
- Show boxart;

I couldn´t implement the pointer animation and fading out.

As the hyperspin.nut already allows to use real Hyperspin layouts (with some limitations), this is script and some hyperspin layouts are enough to make a real

I will share the basic layout folder (to be placed in /.attract/layouts/, without the game hyperspin layouts(only default themes) due the size: https://mega.nz/file/eksxDQKR#gO6LAAcU4s9lN3a1CdmO8R_p9oA5Yyh6i8f7hoZ3H4s

and the hyperspin.nut (to be placed in /usr/local/share/attract/loader/)

Since i use a Raspberry Pi 3B, i dont know about other systems.

I also took the liberty to modify your layout.nut, to main menu, because wont show videos for me. I changed to show dynamic bezels and pointers, ang get the art in the roms folder.

My other layouts, based in the first hiperpie,i will share soon,because i will modify with some of the features what will take sometime, because i had a lot of themes.

The demo of the hyperspin.nut: https://youtu.be/0aPPH5ZnFhU

Tks

Yaron2019

  • Guest
Re: Using native Hyperspin in attract-mode
« Reply #4 on: April 26, 2020, 12:42:35 PM »
This is awesome work!  8) I am going to test it asap on my system. thanks!!

tulipo

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Using native Hyperspin in attract-mode
« Reply #5 on: April 29, 2020, 10:09:32 AM »
I'm folllowing.....

I'm already a great fan of both yours themes guys...  I can be a tester for your modification !!! I'm using attract mode in my sistem with Win10, also tried
yesterday to setup the hyperspin theme on a 16:9 screen but it seems all the artwork were display very huge. Just the wheel take almost half of the screen.
I will take a better look later and maybe i will post some screenshot too.  I'm not a programmer but i'm using attract mode since almost the beginnings with
hyperpie and hyperpie pc edition.
My build:
Raspyzero: https://goo.gl/neHcAk
Raspybox: https://goo.gl/J5zsbc
Bartop 1P: https://goo.gl/photos/2w8oWThP2bRtxZAHA
Hyperspin theme - Attract Mode conversion WIP

sergiohyperspin

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: Using native Hyperspin in attract-mode
« Reply #6 on: April 29, 2020, 05:13:55 PM »
I use the system in a raspberry pi, i will install in windows to see if i can figure it out.

asahendrix

  • Full Member
  • ***
  • Posts: 76
    • View Profile
Re: Using native Hyperspin in attract-mode
« Reply #7 on: April 29, 2020, 06:02:15 PM »
What a great project! Keep up the good work!

The changing snap positions for each selected system makes me think of a project I'm working on - I'm wanting to have the video snap placement change depending on the system that the selector is currently on. I've looked through the hyperspni.nut file and, if I'm not mistaken, it seems like the changing snap positions in the hyperspin.nut is actually pointing to various system themes (lines 336-350) - is that correct? My only roadblock with my project is that I don't know how to code my layout where the snaps are in a different position with each selected system.

sergiohyperspin

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: Using native Hyperspin in attract-mode
« Reply #8 on: April 29, 2020, 06:17:32 PM »
I am testing here and until now its all ok. As for the snap position it is not in the hyperspin.nut that you need to modify, you can change in the hyperspin theme  usin HyperTheme( from the original Hyperspin), just dont forget to add any video to set the position, otherwise when you save the theme will load without a video
« Last Edit: April 29, 2020, 07:05:13 PM by sergiohyperspin »

tulipo

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Using native Hyperspin in attract-mode
« Reply #9 on: April 30, 2020, 04:21:16 AM »
Hello everyone....

I make some implementation to the Hyperspin theme from Sergio. ( Implementation it seems a little too big for me. Just some copy paste from Yaron's theme. )

In my setup i use to have in every display more than one filter. It could be useful just in case you have a huge romlist. Like in the Arcade one i have Favourites, Most Played, Noclones, Sport, konami, taito.

That's why in my screenshot you can see in the lower part of the display the section Ínfo from Yaron's theme.

I attached also my modded hyperspin.nut to copy in the loader folders.

I also noticed that in 16:9 monitor every HS themes look stretched, i think just cause HS theme are made like that. I don't know if is there a magic function to preserve aspect ratio of the theme itself but this is beyond my knowledge !!!
My build:
Raspyzero: https://goo.gl/neHcAk
Raspybox: https://goo.gl/J5zsbc
Bartop 1P: https://goo.gl/photos/2w8oWThP2bRtxZAHA
Hyperspin theme - Attract Mode conversion WIP

sergiohyperspin

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: Using native Hyperspin in attract-mode
« Reply #10 on: April 30, 2020, 10:28:02 AM »
Very nice. I will try out. As for the streched screen, there are two things you must consider: 1) most of the Hyperspin layouts are made in 1024x768. 2) the Hyperspin nut sets the screen size in both 4:3 and 16:9 in 1024x768, but in 4:3 the aspect ratio is oreserved and in 16:9 is not

Yaron2019

  • Guest
Re: Using native Hyperspin in attract-mode
« Reply #11 on: April 30, 2020, 11:41:57 AM »
Hello everyone....

I make some implementation to the Hyperspin theme from Sergio. ( Implementation it seems a little too big for me. Just some copy paste from Yaron's theme. )

In my setup i use to have in every display more than one filter. It could be useful just in case you have a huge romlist. Like in the Arcade one i have Favourites, Most Played, Noclones, Sport, konami, taito.

That's why in my screenshot you can see in the lower part of the display the section Ínfo from Yaron's theme.

I attached also my modded hyperspin.nut to copy in the loader folders.

I also noticed that in 16:9 monitor every HS themes look stretched, i think just cause HS theme are made like that. I don't know if is there a magic function to preserve aspect ratio of the theme itself but this is beyond my knowledge !!!

Wonderful! Of of course there is a magic function for preserving aspect ratios:
fe.layout.preserve_aspect_ratio=true;

fe = front end, meaning that this is a built-in option or function of attractmode.

You can see it being used in the beginning of my Hyper Theme Mode layout nut file that supports both 4:3 and 16:9 screen aspect ratios:

// this means that if layout option "set_perspective" is set to 4:3, it will preserve the aspect ratio. I then set the width and height of the layout also.
if ( my_config["set_perspective"] == "4:3" )
{
   fe.layout.preserve_aspect_ratio=true;
   fe.layout.width = 1024;
   fe.layout.height = 768;
}
else // this is applied if layout option is set to 16:9 aspect ratio
   fe.layout.preserve_aspect_ratio=false;


tulipo

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Using native Hyperspin in attract-mode
« Reply #12 on: May 01, 2020, 03:06:40 AM »
Ok thanks i will try some Ctrl+C  Ctrl+V  developing style.....

Let's see what will happen....   ;D ;D ;D ;D ;D
My build:
Raspyzero: https://goo.gl/neHcAk
Raspybox: https://goo.gl/J5zsbc
Bartop 1P: https://goo.gl/photos/2w8oWThP2bRtxZAHA
Hyperspin theme - Attract Mode conversion WIP

tulipo

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Using native Hyperspin in attract-mode
« Reply #13 on: May 01, 2020, 08:35:37 AM »
Done.....

I changed a little bit what you said cause otherwise without a specific 16:9 resolution i had a small animation in the up-left corner of the display.

local my_config = fe.get_config();

if ( my_config["set_perspective"] == "4:3" )
{
   fe.layout.preserve_aspect_ratio=true;
   fe.layout.width = 1024;
   fe.layout.height = 768;
}
else
   fe.layout.preserve_aspect_ratio=false;
   fe.layout.width = 1280;
   fe.layout.height = 800;

I also move the bezel in case of 4:3 resolution + bezel and i moved boxart and cartart little bit left side too, otherwise they were covered from the wheel.

I am pretty happy with that....

 
My build:
Raspyzero: https://goo.gl/neHcAk
Raspybox: https://goo.gl/J5zsbc
Bartop 1P: https://goo.gl/photos/2w8oWThP2bRtxZAHA
Hyperspin theme - Attract Mode conversion WIP

sergiohyperspin

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: Using native Hyperspin in attract-mode
« Reply #14 on: May 01, 2020, 09:49:17 AM »
Nice job, but I think AttractMode behave differently in windows than in the RPi. I try out your modifications in my 4:3 screen bartop and didnt looked good.
When i set up 4:3 - the theme looked 16:9 with black bars on the top and the bottom, and the theme seems that was pushed to the left and the art looks out of place.
When i set up 16:9 - the theme fills the screen, but the art still looks out of place.
The cartart and box art was really a dilema for me, because, my intention was to place  in a spot where didnt cover the art or the video in any themes,without the need of modification of individually themes.

Look the pictures