Author Topic: Attract mode for Playback Videosnaps as Playlist  (Read 294 times)

PittStone

  • Newbie
  • *
  • Posts: 7
    • View Profile
Attract mode for Playback Videosnaps as Playlist
« on: February 16, 2020, 11:24:09 AM »
Programming attract mode for Playback Videosnaps as Playlist!

Is there a programmer who can insert an option that after a videosnap, the next videosnap in the list is played? And not always the same thing? The next game should be selected automatically from the list.

I would like to pay the programmer who can insert this option.

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1105
    • View Profile
Re: Attract mode for Playback Videosnaps as Playlist
« Reply #1 on: February 16, 2020, 01:18:25 PM »
You can use the random function in common module within my attract fork. Squirrel doesn’t implement it well. math.rand() isnt really random.

jedione

  • Hero Member
  • *****
  • Posts: 897
  • punktoe
    • View Profile
Re: Attract mode for Playback Videosnaps as Playlist
« Reply #2 on: February 16, 2020, 03:39:55 PM »
just wanted to men-chin that you could use your sequencer plugin,  to switch to random game,  with your one set time...
this works good for me....

say average snap is 20 sec just set for say 15 sec...   
help a friend....

PittStone

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Attract mode for Playback Videosnaps as Playlist
« Reply #3 on: February 19, 2020, 04:13:44 PM »
You can use the random function in common module within my attract fork. Squirrel doesn’t implement it well. math.rand() isnt really random.

Thanks for Answere. I searched in "     attract\config\modules\common
for your random function.
I dont know how i do that.

PittStone

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Attract mode for Playback Videosnaps as Playlist
« Reply #4 on: February 19, 2020, 04:15:42 PM »
just wanted to men-chin that you could use your sequencer plugin,  to switch to random game,  with your one set time...
this works good for me....

say average snap is 20 sec just set for say 15 sec...   

Thanks for Answere, but you dont know what im using it for.
My Snaps are different duration times and only use one timer for the snaps isnt usefull for me. It must be go to the next snap in the list after video duration finished.

PittStone

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Attract mode for Playback Videosnaps as Playlist
« Reply #5 on: March 04, 2020, 11:23:50 AM »
Why is this a Hard Thing? Its a Simple Mode, after a End of a Video it goes to the Next.  :-\

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1105
    • View Profile
Re: Attract mode for Playback Videosnaps as Playlist
« Reply #6 on: March 04, 2020, 05:34:00 PM »
Why is this a Hard Thing? Its a Simple Mode, after a End of a Video it goes to the Next.  :-\

It’s really not. Ive already created everything you would need to do it. Looking at my intro layout making use of rand function, you should be able to do it.

PittStone

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Attract mode for Playback Videosnaps as Playlist
« Reply #7 on: March 05, 2020, 06:43:54 AM »
Why is this a Hard Thing? Its a Simple Mode, after a End of a Video it goes to the Next.  :-\

It’s really not. Ive already created everything you would need to do it. Looking at my intro layout making use of rand function, you should be able to do it.

I need Help.
I copy "helpers" to "modules" folder.
I copy "shuffle" to "modules" folder.
I copy "mvscomplete" to "layouts" folder.
I changed attract.cfg to "layout  mvscomplete".
If i start attract.exe and go to the playlist with "mvscomplete" the Snap is playing, but its in loop. Its not going to the next Snap.

You have randtro-intro with random video of folder, but how can i use it not only for Intro Video?

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1105
    • View Profile
Re: Attract mode for Playback Videosnaps as Playlist
« Reply #8 on: March 05, 2020, 08:33:34 AM »
You need to learn to program, and be more clear with what you want.

PittStone

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Attract mode for Playback Videosnaps as Playlist
« Reply #9 on: March 05, 2020, 02:29:18 PM »
You need to learn to program, and be more clear with what you want.

I have never learnt to Program.
I have the layout.nut from the "HP2-Systems-Menu" folder and i will change this to if i select a game its playing the Videosnap. This is Fine. But after End of this Video it should go to the Next Game, so it can play the next Videosnap.

Someone says to me i can check in tick() if yourimage.video_time >= yourimage.video_duration and then trigger next_game signal.

I Dont know how i do this.