Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: 8bitsdeep on November 02, 2017, 02:18:00 AM

Title: Cycle through random game snaps on Display Menu?
Post by: 8bitsdeep on November 02, 2017, 02:18:00 AM
Instead of just having a single video snap for each system, I'd like to play random game snaps from the selected system while on the display menu.

For example, when I'm selecting a system in the Display Menu, if I'm currently on the NES, random game snaps for NES games should play.


Is this possible?  All the code I've found uses fe.list.index = rand(); to just jump around games in the current list. Is there any way to access a list other than the current one?
Title: Re: Cycle through random game snaps on Display Menu?
Post by: kent79 on November 02, 2017, 04:57:20 AM
Actually, you may refer AM default screensaver.nut file  ;)
Title: Re: Cycle through random game snaps on Display Menu?
Post by: 8bitsdeep on November 02, 2017, 09:04:32 AM
I did look at the default screensaver, but unless I'm missing something it seems to only select videos from the current list. I'd like to get videos from a specific emulator's list.
Title: Re: Cycle through random game snaps on Display Menu?
Post by: kent79 on November 02, 2017, 09:16:09 AM
Well, Can you test my theme about screen saver function. Does it what you want ? It can randomly shown system intro videos.   :)

http://forum.attractmode.org/index.php?topic=1824.0
Title: Re: Cycle through random game snaps on Display Menu?
Post by: 8bitsdeep on November 02, 2017, 09:55:26 AM
Hmm, no, that screensaver picks a random video from the current list just like the default.

Let me try to explain again.  :)

In the Display Menu, let's say the cursor is on NES:
Code: [Select]
-Arcade
-Atari 2600
>>>NES<<<
-Genesis
-SNES

To the right of the list, I have a video element. I don't want it to play an NES system video.  I want to play a random NES game video.  It should pick a random NES game from my library and play the video snap of that game.

If I move the cursor to Genesis, it should play a random Genesis game snap, etc.
Title: Re: Cycle through random game snaps on Display Menu?
Post by: kent79 on November 02, 2017, 10:18:57 AM
oic, As my known, I think AM can't do it in currently since program architecture limitation    ???
Title: Re: Cycle through random game snaps on Display Menu?
Post by: keilmillerjr on November 02, 2017, 06:17:31 PM
I have no experience with Displays. However, just an idea - create an "All" list for each system and change the list to "All" when you navigate to a different display. is my thinking on the subject proper?
Title: Re: Cycle through random game snaps on Display Menu?
Post by: calle81 on November 04, 2017, 11:28:09 AM
Here is a "workaround": Create a folder in your snaps dir named as the title. Put the snaps in that folder. AM will then pick one randomly

Eg. menu-art/snap/Nintendo Game Boy/1.mp4, 2.mp4 etc.
Title: Re: Cycle through random game snaps on Display Menu?
Post by: 8bitsdeep on November 06, 2017, 02:17:56 PM
Here is a "workaround": Create a folder in your snaps dir named as the title. Put the snaps in that folder. AM will then pick one randomly

Eg. menu-art/snap/Nintendo Game Boy/1.mp4, 2.mp4 etc.

Clever!  I'd hate to duplicate all my snaps but I might do this with a few of my favorite games until I figure out something better.