Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: PittStone on February 16, 2020, 11:24:09 AM

Title: Attract mode for Playback Videosnaps as Playlist
Post by: PittStone 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.
Title: Re: Attract mode for Playback Videosnaps as Playlist
Post by: keilmillerjr 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.
Title: Re: Attract mode for Playback Videosnaps as Playlist
Post by: jedione 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...   
Title: Re: Attract mode for Playback Videosnaps as Playlist
Post by: PittStone 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.
Title: Re: Attract mode for Playback Videosnaps as Playlist
Post by: PittStone 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.
Title: Re: Attract mode for Playback Videosnaps as Playlist
Post by: PittStone 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.  :-\
Title: Re: Attract mode for Playback Videosnaps as Playlist
Post by: keilmillerjr 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.
Title: Re: Attract mode for Playback Videosnaps as Playlist
Post by: PittStone 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?
Title: Re: Attract mode for Playback Videosnaps as Playlist
Post by: keilmillerjr on March 05, 2020, 08:33:34 AM
You need to learn to program, and be more clear with what you want.
Title: Re: Attract mode for Playback Videosnaps as Playlist
Post by: PittStone 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.