(Thanks to @HendrixTrog for the video!)
Super Attract Mode puts all your games on display to enjoy whenever your MiSTer is idle.
Like a screen saver, SAM comes on when your MiSTer is idle. Just wait a couple of minutes in the main menu and SAM will launch a random game from your library. Every few minutes it will randomly select and load a new game. If you like a game that's currently playing, just pick up your controller and push a button, press a key, or move the mouse. Back in the main menu, wait another two minutes and the gaming tour begins again!
update_all.sh
menu, select "Tools & Scripts" and select "Mister Super Attract Mode". After running update_all, you will have a file called MiSter_SAM_on.sh
in the Scripts folder. Run MiSter_SAM_on.sh
and wait until SAM is fully installed/updated. You can configure SAM from the menu by running MiSTer_SAM_on.sh
and pushing up.or
MiSTer_SAM_on.sh
to your MiSTer's /media/fat/Scripts
directoryMiSTer_SAM_on.sh
.or
cd /media/fat/Scripts && curl -kLO https://raw.githubusercontent.com/mrchrisster/MiSTer_SAM/main/MiSTer_SAM_on.sh
/media/fat/Scripts/MiSTer_SAM_on.sh
and let SAM do the auto install to download the other installation files.If your MiSTer is not connected to the internet, click on "Code" -> "Download Zip" and download the project package.
MiSTer_SAM_on.sh
and MiSTer_SAM.ini
to /media/fat/Scripts
on your MiSTer. .MiSTer_SAM
directory to /media/fat/Scripts/.MiSTer_SAM
on your MiSTer.MiSTer_SAM_on.sh
- push up button to enter Menu. Now find enable autoplay in the menu under Settings.MiSTer_SAM_on.sh
will update your existing version to the newest version.Simply wait at the main MiSTer menu for 2 minutes (default setting) without touching the mouse, keyboard, or controller and SAM will start.
Don't want to wait? You can start SAM instantly by launching MiSTer_SAM_on.sh
script in your MiSTer's Scripts folder!
Autoplay - MiSTer SAM autostarts by default when your MiSTer is idle in the main menu. If you want SAM to always autostart, no matter if in the main menu or not, you can do that by changing "menuonly" setting in MiSTer_SAM.ini
.
Controller Detection - MiSTer SAM will only start when no input has been received from your controllers for the amount of time set in MiSTer_SAM.ini
.
Controller Mapping - SAM can have custom button assignments for "Show next game" or "Start game". Check in SAM's menu under "Configure Gamepad" or try out if the default mapping works for you. Select button goes to next game and start button will play the current game.
Options Menu - All options of SAM can be configured from a menu when launching MiSTer_SAM_on.sh
. Push UP button after launching MiSTer_SAM_on.sh
script.
NOTE The menu does not work out of the box on CRT's . Please try adding the following settings to your /media/fat/MiSTer.ini
and see if it will make the menu work for your CRT setup:
[Menu]
video_mode=640,16,64,80,240,1,3,14,12380
vga_scaler=1
or
[Menu]
video_mode=640,-16,56,56,240,1,3,13,11350
vga_scaler=1
Exclusion Lists - You can exclude any amount of games that you don't want to have displayed by adding a file called for example snes_excludelist.txt
in /media/fat/Scripts/.MiSTer_SAM/SAM_Gamelists folder. One line per game, can be full file path or just the game name. Or just launch the game you want to exclude and type /media/fat/Scripts/MiSTer_SAM_on.sh ignore
in SSH. SAM will create the exclude list for you.
Auto Folder Detection - No matter if your games are on SD or USB, SAM will find your default game folders.
Curated Blacklists - The SAM Team is currently recording every game's attract mode to short videos that we capture through HDMi so we can detect if a game is worthy to be shown or should be blacklisted (like Disc 2 for MegaCD, load error FDS games or games with a static screen)
This process can be used if you want to return MiSTer SAM to default settings or ensure you have the latest files.
Method 1
Method 2
root
default password: 1
).rm -fr /media/fat/Scripts/.MiSTer_SAM /media/fat/MiSTer_SAM /media/fat/Scripts/MiSTer_SAM.ini
The script is highly customizable through the included ini file MiSTer_SAM.ini
(details below).
Currently supported MiSTer cores:
JP Mega-CD 2 (Region Free) 921222 l_oliveira.bin
for best compatibility. Find it in MegaCD folder, google htgdb-gamepacks
The Update-all script works great for putting system files in the right places. Make sure you have Arcade Organizer enabled for some of SAM's advanced features.
Uncomment one of the "arcadepath" settings in the MiSTer_SAM.ini
file to choose from only horizontal or vertical arcade games.
tty2oled adds a 3" OLED screen to your MiSTer! By default, tty2oled displays the current core name. With SAM's enhanced tty2oled support you can see the core and game name!
Simply edit the MiSTer_SAM.ini
and change the ttyenable
setting to ttyenable="Yes"
. If you need to use a non-standard device change it with ttydevice="/dev/ttyUSB0"
.
A Linux startup daemon runs in the background of your MiSTer's ARM CPU. It looks for any keyboard activity, mouse movement, or controller button presses via Linux. This is being achieved by monitoring the hardware devices on your MiSTer while using minimal resources - with only native tools (CPU load of >1%). When your MiSTer is displaying the main menu and it's idle for several minutes, SAM will start launching random games.
MiSTer arcade cores are launched via MRA files, all other cores are launched through generating MGL files.
SNAC is not handled by the Linux kernel so unfortunately we wont be able to support SNAC devices.
MiSTer SAM is designed to be highly configurable. Please check the /media/fat/Scripts/MiSTer_SAM.ini
file to see if the behavior you want is configurable. If not, please open an issue! We love feedback and feature requests.
Short answer is no. FPGAs don't have a limited number of writes. They are solid state devices that are configured at boot up or - in the case of MiSTer - when a core is loaded. There is no wear from this configuration step.
Also, all files that SAM creates (with the exception of the startup file during first install) are written to RAM mounted storage so you don't need to worry about wearing out your SD card when using SAM.
If you would like to know what game is currently playing, you can check the file /tmp/SAM_Game.txt
. Some folks even use this with OBS to automatically change the game name for their Twitch stream!
The great work began with MrChrisster building a MiSTer Attract feature for the NES core. This begat Attract_Arcade after Mellified kept opening issues started helping. Once MrChrisster worked with mbc it unlocked the power to load ROMs for more MiSTer cores, resulting in Attract_Mode. We wanted to bring the project to the next level by automating the process. From this collaboration and passion was born SAM - Super Attract Mode! Since MiSTer SAM does everything the old projects did - and lots more! - we wanted to create a new name appropriate for its new superpowers.
- When I try to launch the script, it fails and says something about Document Type
You most likely didn't download the "raw" file.
When downloading a file from github, click on the file, then click on "raw".
Now push Ctrl+S to save
- Core is loaded but just hangs on the menu
Sometimes this happens (even on our test setups) and it could be for a variety of reasons.
If you are still having trouble it could simply be that the rom failed to load, it seems to happen every now and then.
- Turbografx16 CD and MegaCD just showing Run/Start button but not starting into the game
If SAM's auto start feature fails for whatever reason, you can try and use a bios that auto launches the game.
- Can I use a CIFS mount for my games?
CIFS is supported.
Here is an example of some values in cifs_mount.sh
that should get you started.
The idea is to mount The SMB Games
folder over the MiSTer SD card Games
folder:
SERVER="192.168.1.10"
SHARE="Games/Mister/Games"
LOCAL_DIR="*"
BASE_PATH="/media/fat/Games"
For technical users here are a few handy tricks to observe and debug SAM.
samdebug="Yes"
/tmp/SAM_game.mgl
. Some commands to control SAM from the command line
MiSTer_SAM_on.sh monitor
- This will attach MiSTer SAM to current shell (only works while autoplay is running)MiSTer_SAM_on.sh start
- Start SAM immediatelyMiSTer_SAM_on.sh skip | next
- Load next game - doesn't interrupt loop if runningMiSTer_SAM_on.sh stop
- Stop SAM immediatelyMiSTer_SAM_on.sh update
- Update SAMMiSTer_SAM_on.sh enable
- Enable SAM autoplay modeMiSTer_SAM_on.sh disable
- Disable SAM autoplayMiSTer_SAM_on.sh reset
- Reset SAMMiSTer_SAM_on.sh sshconfig
- Quick access to SAM's SSH features. Now you can type eg. m update
in Terminal to update SAM.MiSTer_SAM_on.sh arcade | psx | genesis | s32x | etc...
- Only launch specific systemMiSTer_SAM_on.sh favorite
- Copy the current game to "_Favorites" folderSAM has been a joined effort from the start. Huge thanks to Mellified and all other supporters!
Original concept and implementation: mrchrisster
Script layout & watchdog functionality: Mellified
tty2oled submodule: Paradox
Indexing tool & input detection: wizzomafizzo
MiSTer_SAM_on.sh favorite