Author Topic: Cycle through random game snaps on Display Menu?  (Read 2206 times)

8bitsdeep

  • Full Member
  • ***
  • Posts: 49
    • View Profile
Cycle through random game snaps on Display Menu?
« 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?

kent79

  • Hero Member
  • *****
  • Posts: 580
    • View Profile
Re: Cycle through random game snaps on Display Menu?
« Reply #1 on: November 02, 2017, 04:57:20 AM »
Actually, you may refer AM default screensaver.nut file  ;)
« Last Edit: November 02, 2017, 05:05:32 AM by kent79 »

8bitsdeep

  • Full Member
  • ***
  • Posts: 49
    • View Profile
Re: Cycle through random game snaps on Display Menu?
« Reply #2 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.

kent79

  • Hero Member
  • *****
  • Posts: 580
    • View Profile
Re: Cycle through random game snaps on Display Menu?
« Reply #3 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

8bitsdeep

  • Full Member
  • ***
  • Posts: 49
    • View Profile
Re: Cycle through random game snaps on Display Menu?
« Reply #4 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.

kent79

  • Hero Member
  • *****
  • Posts: 580
    • View Profile
Re: Cycle through random game snaps on Display Menu?
« Reply #5 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    ???

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1142
    • View Profile
Re: Cycle through random game snaps on Display Menu?
« Reply #6 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?

calle81

  • Sr. Member
  • ****
  • Posts: 184
    • View Profile
Re: Cycle through random game snaps on Display Menu?
« Reply #7 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.

8bitsdeep

  • Full Member
  • ***
  • Posts: 49
    • View Profile
Re: Cycle through random game snaps on Display Menu?
« Reply #8 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.