MiSTer Super Attract Mode (SAM) is now available - the first game screensaver for your MiSTer!

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
rhester72
Top Contributor
Posts: 1469
Joined: Thu Jun 11, 2020 2:31 am
Has thanked: 17 times
Been thanked: 246 times

Re: MiSTer Super Attract Mode (SAM) is now available - the first game screensaver for your MiSTer!

Unread post by rhester72 »

OK...I figured it out, but I don't understand what it means.

In function load_core_amigacd32, it originally read:

Code: Select all

mute "${CORE_LAUNCH[amigacd32]}"

which resolves to Minimig (and is wrong, because the desired result is AmigaCD32).

It was then changed to:

Code: Select all

mute "${CORE_LAUNCH[minimig]}"

which is even more wrong, because it would obviously resolve to Minimig.

It now reads:

Code: Select all

mute "${CORE_LAUNCH[${nextcore}]}"

which resolves to Minimig, not AmigaCD32.

A working hack is just to change the line to read:

Code: Select all

mute AmigaCD32

but that seems to violate the spirit of the code. I can't seem to work out, however, what variable in MiSTer SAM would correctly resolve to AmigaCD32 (matching /tmp/CORENAME)...in fact, I'm not sure why the value of that file isn't used consistently instead of ${nextcore} as it should theoretically always be correct.

User avatar
mrchrister
Scripting Wizard
Posts: 312
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 36 times
Been thanked: 127 times

Re: MiSTer Super Attract Mode (SAM) is now available - the first game screensaver for your MiSTer!

Unread post by mrchrister »

How dare you scrutinize my code ;)

$nextcore in this case is amigacd32 which resolves to minimig which should mute the minimig code.

I just realized the reason we don't want to pass minimig but amigacd32 directly to mute. It's because we're using set name which treats this mgl as it's own core so we have to mute amigacd32 instead of the actual core name.

Thanks for investigating, I'll fix this now

rhester72
Top Contributor
Posts: 1469
Joined: Thu Jun 11, 2020 2:31 am
Has thanked: 17 times
Been thanked: 246 times

Re: MiSTer Super Attract Mode (SAM) is now available - the first game screensaver for your MiSTer!

Unread post by rhester72 »

Thank you!

VERY last commentary, and I swear I'll stop. LOL

By default, the filesystem is case-insensitive...are there any circumstances where a remote-mounted FS (that contains the config directory) could be case-sensitive? I ask because in the case of AO486 and AmigaCD32, theoretically with a case-sensitive FS you're writing them as lowercase that may not be seen by the core. If that's not a real thing in the real world, please ignore. =)

User avatar
mrchrister
Scripting Wizard
Posts: 312
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 36 times
Been thanked: 127 times

Re: MiSTer Super Attract Mode (SAM) is now available - the first game screensaver for your MiSTer!

Unread post by mrchrister »

It's always good to be case sensitive just in case. Input maps for example have to be case sensitive if I remember correctly. I'll incorporate it into the next bigger update

User avatar
LamerDeluxe
Top Contributor
Posts: 1262
Joined: Sun May 24, 2020 10:25 pm
Has thanked: 918 times
Been thanked: 303 times

Re: MiSTer Super Attract Mode (SAM) is now available - the first game screensaver for your MiSTer!

Unread post by LamerDeluxe »

For some reason setting the filter to only play vertical arcade cores doesn't work correctly anymore. It will still show all other cores as well. I remember using this at the local retro computer club before and it worked fine.

EDIT: I guess I have to disable all non-arcade cores as well. Would be handy if there was a quick setting for that. And one to enable all cores.

User avatar
mrchrister
Scripting Wizard
Posts: 312
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 36 times
Been thanked: 127 times

Re: MiSTer Super Attract Mode (SAM) is now available - the first game screensaver for your MiSTer!

Unread post by mrchrister »

Can you try and update SAM? I had some issues with filters myself and just pushed a fix yesterday night..
I believe I added a "reset" preset in menu that resets to all cores btw..

User avatar
LamerDeluxe
Top Contributor
Posts: 1262
Joined: Sun May 24, 2020 10:25 pm
Has thanked: 918 times
Been thanked: 303 times

Re: MiSTer Super Attract Mode (SAM) is now available - the first game screensaver for your MiSTer!

Unread post by LamerDeluxe »

mrchrister wrote: Tue Feb 18, 2025 9:44 pm

Can you try and update SAM? I had some issues with filters myself and just pushed a fix yesterday night..
I believe I added a "reset" preset in menu that resets to all cores btw..

Thanks! That is interesting. I'll let you know when I get around to testing it.

Post Reply