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

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
User avatar
mrchrister
Scripting Wizard
Posts: 279
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 30 times
Been thanked: 118 times

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

Unread post by mrchrister »

Btw, there is also a downloader and updater available for 0mhz
https://twitter.com/chrisshelms/status/ ... RgvfA&s=19

jeremania
Posts: 1
Joined: Tue Apr 23, 2024 8:30 pm

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

Unread post by jeremania »

How can I set up SAM to start back up after I interrupt it to play a game, then leave the core inactive for some amount of time?

User avatar
dickhardpill
Posts: 166
Joined: Tue Apr 09, 2024 9:28 pm
Location: Not Portland, OR
Has thanked: 63 times
Been thanked: 36 times
Contact:

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

Unread post by dickhardpill »

jeremania wrote: Tue Apr 23, 2024 8:36 pm

How can I set up SAM to start back up after I interrupt it to play a game, then leave the core inactive for some amount of time?

https://github.com/mrchrisster/MiSTer_SAM/blob/main/MiSTer_SAM.ini wrote:

Start SAM only from MiSTer main menu
If you change this to menuonly is set to "No", SAM will always start after you put down the controller.

I think that’s what menuonly does in MiSTer_SAM.ini
Try changing

Code: Select all

menuonly="Yes"

to

Code: Select all

menuonly="No"

I has a you tube
Analog IO
USB board
VGA > Component
HDMI > FPM

MrConkin
Posts: 10
Joined: Mon May 13, 2024 3:10 pm
Been thanked: 3 times

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

Unread post by MrConkin »

Hey really enjoying SAM so far. I'm wondering if it's possible to have SAM on by default when you turn on the MiSTer? I have autoplay enabled after 60 seconds of idle in the menu, but when I power my MiSTer on it doesn't start unless I manually run the MiSTer_SAM script.

User avatar
dickhardpill
Posts: 166
Joined: Tue Apr 09, 2024 9:28 pm
Location: Not Portland, OR
Has thanked: 63 times
Been thanked: 36 times
Contact:

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

Unread post by dickhardpill »

It takes a little longer than 60 seconds but it works for me.

I had to run the script and let it auto configure. Not sure if that helps you.

I has a you tube
Analog IO
USB board
VGA > Component
HDMI > FPM

MrConkin
Posts: 10
Joined: Mon May 13, 2024 3:10 pm
Been thanked: 3 times

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

Unread post by MrConkin »

dickhardpill wrote: Mon May 13, 2024 7:10 pm

It takes a little longer than 60 seconds but it works for me.

I had to run the script and let it auto configure. Not sure if that helps you.

Yeah turns out I'm just impatient. Took longer than 60 but started eventually. Thanks!

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

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

Unread post by mrchrister »

It's 60s plus whatever time it takes for your MiSTer to update the Real Time Clock (RTC). It times out after 60s so you wait a maximum of 2 mins if your MiSTer does not update RTC

MrConkin
Posts: 10
Joined: Mon May 13, 2024 3:10 pm
Been thanked: 3 times

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

Unread post by MrConkin »

Ok back with another conundrum. So close to getting it where I want.

Right now I can press Start when a game is being displayed by SAM and play it. That's cool. However, I'd love to be able to just jump in my inserting a coin into my cab. When I do this, it registers the coin but it also seems to skip the current game and go to the next. Anyone know what would cause that?

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

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

Unread post by mrchrister »

Select button skips the current game. Just go to setup controller in SAM's menu and pick different buttons

MrConkin
Posts: 10
Joined: Mon May 13, 2024 3:10 pm
Been thanked: 3 times

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

Unread post by MrConkin »

mrchrister wrote: Wed May 15, 2024 10:05 am

Select button skips the current game. Just go to setup controller in SAM's menu and pick different buttons

Thanks. Didn't realize the coin drop would count as select but playing with that worked out.

rhester72
Top Contributor
Posts: 1214
Joined: Thu Jun 11, 2020 2:31 am
Has thanked: 14 times
Been thanked: 186 times

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

Unread post by rhester72 »

Has anyone else noticed that SAM doesn't mute the new Nuked Genesis core?

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

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

Unread post by mrchrister »

I can confirm the issue. it's because the core is looking for a megadrive file to mute while SAM still creates a genesis file. I'll fix this now

Edit:
Easy fix ;)
https://github.com/mrchrisster/MiSTer_S ... 2e1c9da73b

Should be working correctly now!

rhester72
Top Contributor
Posts: 1214
Joined: Thu Jun 11, 2020 2:31 am
Has thanked: 14 times
Been thanked: 186 times

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

Unread post by rhester72 »

Thank you very much!

rhester72
Top Contributor
Posts: 1214
Joined: Thu Jun 11, 2020 2:31 am
Has thanked: 14 times
Been thanked: 186 times

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

Unread post by rhester72 »

New problem - when running MiSTer_SAM_on.sh and pressing up to open the menu, I get this:

/tmp/.SAM_tmp/.SAMmenu: No such file or directory

Any ideas what could be causing this? I've updated MiSTer_SAM (via MiSTer_SAM_on.sh update), I've temporarily deleted MiSTer_SAM.ini, and I've temporarily deleted the .MiSTer_SAM directory to no avail.

EDIT: Manually creating /tmp/.SAM_tmp worked as a workaround, but that shouldn't be necessary, should it?

EDIT2: After manual creation and getting the menu to come up, even rebooting still recreates it properly. I have no idea what happened. Sorry for the noise.

User avatar
dickhardpill
Posts: 166
Joined: Tue Apr 09, 2024 9:28 pm
Location: Not Portland, OR
Has thanked: 63 times
Been thanked: 36 times
Contact:

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

Unread post by dickhardpill »

rhester72 wrote: Thu Jul 11, 2024 2:42 pm

New problem - when running MiSTer_SAM_on.sh and pressing up to open the menu, I get this:

/tmp/.SAM_tmp/.SAMmenu: No such file or directory

Any ideas what could be causing this? I've updated MiSTer_SAM (via MiSTer_SAM_on.sh update), I've temporarily deleted MiSTer_SAM.ini, and I've temporarily deleted the .MiSTer_SAM directory to no avail.

EDIT: Manually creating /tmp/.SAM_tmp worked as a workaround, but that shouldn't be necessary, should it?

EDIT2: After manual creation and getting the menu to come up, even rebooting still recreates it properly. I have no idea what happened. Sorry for the noise.

I don’t think it creates the /tmp file structure until you successfully run the “on” script. So I don’t think you can go straight into settings. IIRC the script has never worked for me on the initial run if I attempt to go into settings. I always had to run the script and let it go and after that I could go into the settings as intended.

I has a you tube
Analog IO
USB board
VGA > Component
HDMI > FPM

rhester72
Top Contributor
Posts: 1214
Joined: Thu Jun 11, 2020 2:31 am
Has thanked: 14 times
Been thanked: 186 times

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

Unread post by rhester72 »

dickhardpill wrote: Thu Jul 11, 2024 3:00 pm

I don’t think it creates the /tmp file structure until you successfully run the “on” script. So I don’t think you can go straight into settings. IIRC the script has never worked for me on the initial run if I attempt to go into settings. I always had to run the script and let it go and after that I could go into the settings as intended.

Ah...that should probably be fixed. You're right - on all subsequent reboots, I'd set the script to autostart. Good call!

User avatar
holaplaneta
Posts: 20
Joined: Thu May 28, 2020 5:55 am
Has thanked: 5 times
Been thanked: 4 times

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

Unread post by holaplaneta »

Hi, first of all, I absolutely love the video player feature that plays commercials before every game. I have my MiSTer connected to a CRT TV with component cables and they tend to look very accurate for the era. However, for some reason, all the videos appear stretched and half of the image (the right side) appears out of screen.

Of course the MiSTer games play fine in 4:3 but the videos have this weird Pan and Scan aspect ratio formatting that I was wondering if I can get rid of to make them display properly in 4:3 instead of 16:9 (or whatever aspect ratio they appear to play on).

I navigated and tried most of the SAM features but I can´t see how to fix this. Any ideas?

Thank you and congrats on such a great script. Also, unrelated, but I hope that a DVD .ISO and video media player core is integrated with MiSTer one day. That would be so awesome.

User avatar
dickhardpill
Posts: 166
Joined: Tue Apr 09, 2024 9:28 pm
Location: Not Portland, OR
Has thanked: 63 times
Been thanked: 36 times
Contact:

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

Unread post by dickhardpill »

Are you using the analog io board or direct video?

I has a you tube
Analog IO
USB board
VGA > Component
HDMI > FPM

User avatar
holaplaneta
Posts: 20
Joined: Thu May 28, 2020 5:55 am
Has thanked: 5 times
Been thanked: 4 times

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

Unread post by holaplaneta »

The latest version of the Analog I/O board from Mister Addons. TY.

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

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

Unread post by mrchrister »

Could you post your Mister_SAM.ini samvideo settings? I have only tried with a PVM and HDMI setup myself

User avatar
holaplaneta
Posts: 20
Joined: Thu May 28, 2020 5:55 am
Has thanked: 5 times
Been thanked: 4 times

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

Unread post by holaplaneta »

Sure thing! Thanks for your help.

Attachments
MiSTer_SAM.ini
(9.85 KiB) Downloaded 12 times
User avatar
mrchrister
Scripting Wizard
Posts: 279
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 30 times
Been thanked: 118 times

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

Unread post by mrchrister »

Looks correct for your setup. We can try to see if the menu would display properly with the settings you find in SAMs options menu description:
https://github.com/mrchrisster/MiSTer_S ... e#features

If those settings display your menu similarly to how the videos are displayed, you can try out other CRT settings from this thread
viewtopic.php?t=2574

Copy the settings that work for you to samvideo_crtmode640 in the Mister_SAM.ini

User avatar
holaplaneta
Posts: 20
Joined: Thu May 28, 2020 5:55 am
Has thanked: 5 times
Been thanked: 4 times

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

Unread post by holaplaneta »

Thank you. Menu works well. It is just the commercial ad videos that look stretched, like let´s say they are 16:9 but only the left two thirds of the image are displayed within the CRT´s 4:3 aspect ratio. I will check these settings and get back, thank you!

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

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

Unread post by mrchrister »

Does the menu work well when being put through the scaler like the settings suggest? There is a difference on CRTs between displaying the menu and displaying the menu through the scaler. You can check by trying to open SAMs menu (pushing up when launching)
The way video playback works is by pushing f9 in the menu which enters Linux terminal. If the text there is displayed correctly then the video shouldn't be weirdly stretched.

CRT settings can be finicky to get it to work right for different setups, I just supplied the settings that work on my particular setup

User avatar
dickhardpill
Posts: 166
Joined: Tue Apr 09, 2024 9:28 pm
Location: Not Portland, OR
Has thanked: 63 times
Been thanked: 36 times
Contact:

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

Unread post by dickhardpill »

I'm went back to the older analog IO until cores get updated. On my setup using VGA > component it looks perfect.

MiSTer_SAM_on.sh appended

Code: Select all

[menu]
video_mode=640,16,64,80,240,1,3,14,12380
fb_terminal=1
vga_scaler=1

I'm using a Sony consumer CRT. Sorry if this is just noise.

I has a you tube
Analog IO
USB board
VGA > Component
HDMI > FPM

User avatar
holaplaneta
Posts: 20
Joined: Thu May 28, 2020 5:55 am
Has thanked: 5 times
Been thanked: 4 times

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

Unread post by holaplaneta »

mrchrister wrote: Sun Jul 14, 2024 7:20 am

Does the menu work well when being put through the scaler like the settings suggest?
The way video playback works is by pushing f9 in the menu which enters Linux terminal. If the text there is displayed correctly then the video shouldn't be weirdly stretched.

Hi!
Menu works well, it displays correctly but when I press F9, there´s just a black bar (like a line of text) that flashes for less than a second and then disappears. Nothing else happens. I am going to try these different resolutions on samvideo_crtmode640="video_mode= and see what happens. Thanks.

640,8,58,78,240,1,3,18,12324
640,0,58,86,240,1,3,18,12350
640,65,60,108,224,16,0,26,13919
640,54,56,106,224,16,0,28,13764

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

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

Unread post by mrchrister »

What happens when you launch SAM from the Scripts menu and push up to go to SAM's menu?

User avatar
holaplaneta
Posts: 20
Joined: Thu May 28, 2020 5:55 am
Has thanked: 5 times
Been thanked: 4 times

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

Unread post by holaplaneta »

mrchrister wrote: Sun Jul 14, 2024 9:37 pm

What happens when you launch SAM from the Scripts menu and push up to go to SAM's menu?

The SAM menu appears. It displays normally in 4:3 full screen. You can see a picture of it at the bottom.

Here are also some pics of how a video commercial for a Hulk game appears. As you can notice, the text on the right side gets cut out.

Attachments
WhatsApp Image 2024-07-14 at 18.43.09_bb458cfa.jpg
WhatsApp Image 2024-07-14 at 18.43.09_bb458cfa.jpg (187.27 KiB) Viewed 598 times
WhatsApp Image 2024-07-14 at 18.43.09_f72a8fdd.jpg
WhatsApp Image 2024-07-14 at 18.43.09_f72a8fdd.jpg (360.77 KiB) Viewed 598 times
WhatsApp Image 2024-07-14 at 15.06.20_2eae92eb.jpg
WhatsApp Image 2024-07-14 at 15.06.20_2eae92eb.jpg (240.97 KiB) Viewed 629 times
WhatsApp Image 2024-07-14 at 15.06.20_8498d576.jpg
WhatsApp Image 2024-07-14 at 15.06.20_8498d576.jpg (236.81 KiB) Viewed 629 times
WhatsApp Image 2024-07-14 at 15.11.15_20bd3b02.jpg
WhatsApp Image 2024-07-14 at 15.11.15_20bd3b02.jpg (686.95 KiB) Viewed 629 times
User avatar
holaplaneta
Posts: 20
Joined: Thu May 28, 2020 5:55 am
Has thanked: 5 times
Been thanked: 4 times

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

Unread post by holaplaneta »

holaplaneta wrote: Sun Jul 14, 2024 9:27 pm

I am going to try these different resolutions on samvideo_crtmode640="video_mode= and see what happens. Thanks.

640,8,58,78,240,1,3,18,12324
640,0,58,86,240,1,3,18,12350
640,65,60,108,224,16,0,26,13919
640,54,56,106,224,16,0,28,13764

I tried all these and noticed zero change on the commercial's aspect ratio. I suspect that something in my MiSTer.ini file may be overwriting this parameter since I saw no change with any of those values.

I have attached this here just in case someone may be able to pinpoint the culprit.

Thank you.

Attachments
MiSTer.ini
(7.81 KiB) Downloaded 13 times
User avatar
mrchrister
Scripting Wizard
Posts: 279
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 30 times
Been thanked: 118 times

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

Unread post by mrchrister »

Check the [menu] section in mister.ini. delete all entries so it only reads

Code: Select all

[Menu]
video_mode=640,16,64,80,240,1,3,14,12380
fb_terminal=1
vga_scaler=1

When trying out other settings just change the video mode here instead of in MiSTer_SAM.ini.
Seems like there is a bug where it doesn't delete any entries

Post Reply