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: 295
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 32 times
Been thanked: 122 times

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

Unread post by mrchrister »

Ok, found the error. Added everdrive detection as well...
User avatar
mrchrister
Scripting Wizard
Posts: 295
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 32 times
Been thanked: 122 times

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

Unread post by mrchrister »

Sigismond0 wrote: Thu Apr 21, 2022 9:02 pm
mrchrister wrote: Thu Apr 21, 2022 9:01 pm Does it say, using zip in both cases?
Yes. As noted in my above comment, I think I've been using "using zip" for all of my testing ever due to how I trimmed down my Everdrive packs.

Also have some more interesting logs now that samquiet=no. On the 32x, I currently just have loose ROMs in a folder. See how it tries to launch the same game twice? It looks like it's looking for files in the specified directory, working, then looking in "." and failing. And see how it says selected core is ".."?
It seems to have issues with the core's path. Can you post your paths from the ini here?
User avatar
Sigismond0
Posts: 339
Joined: Mon May 25, 2020 2:21 am
Has thanked: 1 time
Been thanked: 66 times

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

Unread post by Sigismond0 »

SMS and GG are now working much better as of the last update. And it's not picking that SMS game when in GG mode all the time now either. About to wrap up for the day, but will spend more time on it tomorrow, and will test shuffling all cores again then too.

Here are my paths:

Code: Select all

arcadepath="/media/fat/_arcade"
fdspath="/media/fat/games/NES"
gbpath="/media/fat/Games/Gameboy"
gbcpath="/media/fat/Games/Gameboy"
gbapath="/media/fat/games/GBA"
genesispath="/media/fat/games/Genesis"
ggpath="/media/fat/games/SMS"
megacdpath="/media/usb0/games/MegaCD"
neogeopath="/media/fat/games/NeoGeo"
nespath="/media/fat/games/NES"
s32xpath="/media/fat/Games/s32x"
smspath="/media/fat/Games/SMS"
snespath="/media/fat/games/SNES"
tgfx16path="/media/fat/games/TGFX16"
tgfx16cdpath="/usb0/fat/games/TGFX16-CD"
psxpath="/media/usb0/games/PSX"
User avatar
mrchrister
Scripting Wizard
Posts: 295
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 32 times
Been thanked: 122 times

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

Unread post by mrchrister »

Ok, glad to hear we fixed it for now. Just note that this zip mode doesn't support gamelists and the norepeat shuffle feature. Not sure what's happening with s32x but maybe we can start by you trying the genesis everdrive pack?
User avatar
Sigismond0
Posts: 339
Joined: Mon May 25, 2020 2:21 am
Has thanked: 1 time
Been thanked: 66 times

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

Unread post by Sigismond0 »

So far, I get the same general failure method for all of the following cases:
  • Loose 32X ROMs in /games/s32x
  • S32X ROMs in small zips in /games/s32x
  • S32X ROMs in one large ~350MB zip in /games/s32x
  • S32X ROMs in the original Genesis htgdb pack in /games/s32x
Between all tests, I deleted all SAM lists and rebooted.

So I decided to rewind and start testing everything. And lo and behold, now every core is doing this. Even arcade, which is all controlled by update_all so it can't just be an issue with my zips. This is immediately after a full reset and reinstall of SAM. Image of the monitor log attached (not verbose).

Note that all cores were working fine in SAM prior to sms/gg/s32x support being added. All of the errors in the SAM monitor seem to indicate there's something fishy going on with SAM picking a null core name, which causes it to look in a non-existent directory for ROMs/MRAs on every second shuffle. It still looks like it's working from the TV screen, it just has a shuffle timer that's twice as long as what you set. If I didn't have the monitor watching, I'd never have noticed the issue.

Attaching my .ini as well for review. After resetting, I edited directories for USB0 on CD cores and switched 32x to S32x. Lowered the shuffle timer so that it runs faster and is easier to test, umuted. And that's all. After I saw everything failing, I tried setting norepeat="no' as well but that did not change the issue.

Edit: OK, I think I've figured this out--it's probably related to the logic you're using to prevent the same core from running twice in a row. If you just set one core in the ini, it breaks that logic. If I set two or more cores in my ini at a time, it looks like it works OK. Will test some more and update soon.
Attachments
fds.png
fds.png (96.17 KiB) Viewed 6499 times
MiSTer_SAM.zip
(2.1 KiB) Downloaded 178 times
arcade failing.png
arcade failing.png (73.37 KiB) Viewed 6499 times
User avatar
mrchrister
Scripting Wizard
Posts: 295
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 32 times
Been thanked: 122 times

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

Unread post by mrchrister »

Thanks, it might have to do with the new core logic.
I noticed as well that the linux side of MiSTer got updated and that arrays are working differently now. As for me, everything still works after full reset and reboot but it might be related to that.

Edit: I updated the arrays, can you check if this helps?
We can also try if an old version of MiSTer_SAM_on.sh still works. Can you try this one for example from 2 weeks ago? You can download the file by pressing Ctrl+S.
User avatar
Sigismond0
Posts: 339
Joined: Mon May 25, 2020 2:21 am
Has thanked: 1 time
Been thanked: 66 times

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

Unread post by Sigismond0 »

Yeah, everything's super smooth now that I have multiple cores in the ini. 32x works with my original zips, too. Though for some reason SAM hates my Europe zip and just selects that as a game for the MGL. But it selects games just fine out of the US and JP zips without issue. I've re-made and tweaked that zip a bunch of different ways and can't get it to pull games out of it, but that's probably on me I think. Just thought I'd post here in case you had any ideas. Even with samquiet="no", the monitor doesn't say anything like we saw before where partun was complaining.

Other than that though, everything seems to be going smoothly for now. I'll let it shuffle everything all afternoon and see how it goes.

Code: Select all

<mistergamedescription>
<rbf>_console/s32x</rbf>
<file delay=1 type=f index=0 path="../../../../media/fat/Games/s32x/2 Europe A-Z.zip/"/>
</mistergamedescription>
Attachments
s32zip.png
s32zip.png (15.98 KiB) Viewed 6471 times
User avatar
mrchrister
Scripting Wizard
Posts: 295
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 32 times
Been thanked: 122 times

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

Unread post by mrchrister »

Ok cool, glad it's working. Interesting find that it would select a zip for s32x. I'll see how I can fix the corelist issue. As always, thanks for reporting bugs!

Edit:
For the Europe zip, it looks like partun might not be able to read the file. In ssh you can try for yourself if partun can read it by pasting
/media/fat/Scripts/.MiSTer_SAM/partun -l "/media/fat/Games/s32x/2 Europe A-Z.zip"
User avatar
Sigismond0
Posts: 339
Joined: Mon May 25, 2020 2:21 am
Has thanked: 1 time
Been thanked: 66 times

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

Unread post by Sigismond0 »

Well I figured it out. "eu" is in the default ini's folderexclude.

Removed that, and it works. So that makes sense. There's likely something in the zip logic where if it selects a zip where everything is in the folderexclude, it just falls back to the zip itself instead of selecting another.
User avatar
venice
Top Contributor
Posts: 788
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 278 times
Been thanked: 278 times

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

Unread post by venice »

I just resetted my MiSTer SAM Installation and re-installed everything using the Menu.
I enabled the tty2oled support and both tty2oled modes (with or without ACK) are working fine for me.
MiSTer SAM Autostart is working, no problems, no "Transfer Errors" for me.

Thumbs Up

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard (Cardwarez) to me.

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

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

Unread post by mrchrister »

Great, thanks for your feedback. Without ack works slightly better for me it seems so I'm planning on making that the default for now.
I spend some time yesterday rewriting the entire game selection logic, there are still some bugs to iron out but hopefully that will make SAM more robust overall.

Great to hear you didn't encounter any problems, looks like we got tty2oled integrated successfully!
jacob.pederson
Posts: 22
Joined: Sun Aug 09, 2020 12:48 pm
Has thanked: 2 times
Been thanked: 1 time

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

Unread post by jacob.pederson »

I've got another dumb question (sorry). What is the function of the SAM_GameLists directory? Do these need to be deleted out and recreated every time you add more games? Also which core is the geis_gamelist.txt relating to? Thanks!
rhester72
Top Contributor
Posts: 1323
Joined: Thu Jun 11, 2020 2:31 am
Has thanked: 15 times
Been thanked: 213 times

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

Unread post by rhester72 »

Does the PSX core have to be in /media/fat/_Consoles in order to be recognized/used?
User avatar
Sigismond0
Posts: 339
Joined: Mon May 25, 2020 2:21 am
Has thanked: 1 time
Been thanked: 66 times

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

Unread post by Sigismond0 »

rhester72 wrote: Mon Apr 25, 2022 6:11 pm Does the PSX core have to be in /media/fat/_Consoles in order to be recognized/used?
Yes.
User avatar
mrchrister
Scripting Wizard
Posts: 295
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 32 times
Been thanked: 122 times

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

Unread post by mrchrister »

jacob.pederson wrote: Sun Apr 24, 2022 4:28 pm I've got another dumb question (sorry). What is the function of the SAM_GameLists directory? Do these need to be deleted out and recreated every time you add more games? Also which core is the geis_gamelist.txt relating to? Thanks!
geis is currently a bug and i'm in the process of fixing this, it's not a valid system.

A bit of a background why we have game lists...

The main reason is to have a list with all roms so SAM can track which roms were played and mark them to not play again until all games were played once.
I'm also working on a feature to select which kind of games you want to show (eg only Hacks or only Europe roms). Game lists make this possible. You can also exclude games easily now by just taking them off your game list.

But there is also another reason: Speed and less read cycles to the file system.

With my setup, my roms are stored on a NAS which is about 100km away. My router vpns into the server and then Mister uses SMB to mount the folders. Every time SAM goes through a folder to find a new rom, it takes a good 2-3 minutes. With Game lists generated, roms now change instantly.

Usually once you have your rom directories set up, one can assume that there won't be much of a change. Maybe a few more hacks or prototypes being added, but most users won't really mess much with their rom dirs if they use Everdrive packs. SAM can detect if for example your main zip pack gets moved or replaced and it will create a new game list. For unpacked archives, it just checks if the rom on the list is still in the folder. If the rom can not be found, the game list will be regenerated.

To sum it up. Game lists will be regenerated automatically if:
- Rom file not found
- Zip file not found
- Folder location in ini has changed

I will implement an option to not use game lists at all as well for users having issues with this feature or using non Everdrive packs.
User avatar
mrchrister
Scripting Wizard
Posts: 295
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 32 times
Been thanked: 122 times

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

Unread post by mrchrister »

Updates from today:

- Switched codebase to new and improved game selection logic
- Fixed issue with core shuffle (created nonsense cores like geis)
- Gamelist files recreation more robust now
- Gamelist can be switched off in ini (Please reset)

Please let me know if you find any issues.
rhester72
Top Contributor
Posts: 1323
Joined: Thu Jun 11, 2020 2:31 am
Has thanked: 15 times
Been thanked: 213 times

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

Unread post by rhester72 »

qq re: fds - since there's no dedicated FDS core, how does that work/get triggered? (Another way to put it - where do the .fds files need to be, and can they be in a self-contained ZIP?)
User avatar
mrchrister
Scripting Wizard
Posts: 295
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 32 times
Been thanked: 122 times

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

Unread post by mrchrister »

If you have fds files in your NES folder, it should just work. You also need boot0.rom in the folder - the fds bios.
User avatar
Sigismond0
Posts: 339
Joined: Mon May 25, 2020 2:21 am
Has thanked: 1 time
Been thanked: 66 times

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

Unread post by Sigismond0 »

given how many things are being added to the ini file lately, it might make sense to take a note from the TTY2OLED book and have two different ini files--the main SAM ini that has all parameters in it, and gets updated whenever the script is updated. Will always just have default parameters in it. Then also a SAM user ini file, where a user just puts in the values that they want changed from the default. So for example, my SAM user ini would look like this, and woudl just override these values in the main ini file. Then whenever there's an update A) you don't have to reset to get a new ini file and B) you don't have to remember to go back and figure out what all values need to be fixed after a reset. Just copy over the values you need to change, and any new values one time after they're added to main.

Code: Select all

# =====USER OVERRIDES=====
# Any values in this ini will override the default values set in the main MisterSAM ini
samtimeout=45
gametimer=45
mute="no"
megacdpath="/media/usb0/games/MegaCD"
s32xpath="/media/fat/Games/s32x"
tgfx16cdpath="/media/usb0/games/TGFX16-CD"
psxpath="/media/usb0/games/PSX"
ttyenable="Yes"
norepeat="no"
User avatar
mrchrister
Scripting Wizard
Posts: 295
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 32 times
Been thanked: 122 times

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

Unread post by mrchrister »

We worked on an ini parser at some point but ran into issues. Good idea to pick this back up since I did have a look at how tty2oled does it recently.

Just a question, why do you have norepeat disabled?
rhester72
Top Contributor
Posts: 1323
Joined: Thu Jun 11, 2020 2:31 am
Has thanked: 15 times
Been thanked: 213 times

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

Unread post by rhester72 »

mrchrister wrote: Tue Apr 26, 2022 3:11 am If you have fds files in your NES folder, it should just work. You also need boot0.rom in the folder - the fds bios.
OK...I do, sort of. My NES folder has three files:

boot0.rom
NES.zip
FDS.zip

I think you can guess what each contains. LOL

NES works with SAM, FDS doesn't (but does if launched manually via menu, of course).
User avatar
mrchrister
Scripting Wizard
Posts: 295
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 32 times
Been thanked: 122 times

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

Unread post by mrchrister »

If you rename FDS to Famicom disk system, it should work
User avatar
Sigismond0
Posts: 339
Joined: Mon May 25, 2020 2:21 am
Has thanked: 1 time
Been thanked: 66 times

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

Unread post by Sigismond0 »

mrchrister wrote: Tue Apr 26, 2022 1:31 pm We worked on an ini parser at some point but ran into issues. Good idea to pick this back up since I did have a look at how tty2oled does it recently.

Just a question, why do you have norepeat disabled?
I think I turned it off when I was testing out those issues I saw when trying to set only a single core in the ini. Probalby not something that I would leave that way long term.
User avatar
mrchrister
Scripting Wizard
Posts: 295
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 32 times
Been thanked: 122 times

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

Unread post by mrchrister »

Ah that makes sense.
Quick update: My plan is to revamp rom detection once more by letting SAM just find all roms in a folder, no matter if zipped or unpacked. That should simplify things and detect all games hopefully. Thanks to mgl, we can mix lists of zips and unpacked roms, I just haven't thought of it like that before!
jacob.pederson
Posts: 22
Joined: Sun Aug 09, 2020 12:48 pm
Has thanked: 2 times
Been thanked: 1 time

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

Unread post by jacob.pederson »

mrchrister wrote: Mon Apr 25, 2022 7:52 pm
jacob.pederson wrote: Sun Apr 24, 2022 4:28 pm I've got another dumb question (sorry). What is the function of the SAM_GameLists directory? Do these need to be deleted out and recreated every time you add more games? Also which core is the geis_gamelist.txt relating to? Thanks!
geis is currently a bug and i'm in the process of fixing this, it's not a valid system.

A bit of a background why we have game lists...

The main reason is to have a list with all roms so SAM can track which roms were played and mark them to not play again until all games were played once.
I'm also working on a feature to select which kind of games you want to show (eg only Hacks or only Europe roms). Game lists make this possible. You can also exclude games easily now by just taking them off your game list.

But there is also another reason: Speed and less read cycles to the file system.

With my setup, my roms are stored on a NAS which is about 100km away. My router vpns into the server and then Mister uses SMB to mount the folders. Every time SAM goes through a folder to find a new rom, it takes a good 2-3 minutes. With Game lists generated, roms now change instantly.

Usually once you have your rom directories set up, one can assume that there won't be much of a change. Maybe a few more hacks or prototypes being added, but most users won't really mess much with their rom dirs if they use Everdrive packs. SAM can detect if for example your main zip pack gets moved or replaced and it will create a new game list. For unpacked archives, it just checks if the rom on the list is still in the folder. If the rom can not be found, the game list will be regenerated.

To sum it up. Game lists will be regenerated automatically if:
- Rom file not found
- Zip file not found
- Folder location in ini has changed

I will implement an option to not use game lists at all as well for users having issues with this feature or using non Everdrive packs.
Thanks! Appreciate the explanation!
User avatar
neogeo81
Top Contributor
Posts: 446
Joined: Fri Apr 16, 2021 1:52 pm
Has thanked: 34 times
Been thanked: 47 times

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

Unread post by neogeo81 »

I have the issue that when i select only 2 or 3 systems in the ini file i also only get these 2 or 3 systems to choose from in the "start only one system" option. I think this should be corrected to be able to select any system of choice. The settings in the ini file should be only for starting all.
jacob.pederson
Posts: 22
Joined: Sun Aug 09, 2020 12:48 pm
Has thanked: 2 times
Been thanked: 1 time

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

Unread post by jacob.pederson »

How do I go about troubleshooting Joystick detection? tty2oled turns off and "MiSTer_SAM_on.sh monitor" exits when a button is detected correct? If so, the only thing being detected is keyboard input on my setup. I also have 2 USB Saturn controllers, 2 PS5 controllers, and 2 USB Xarcade tankstick controllers. None of these are being detected. Also the setting menuonly="Yes" appears to be ignored, as SAM restarts after a bit even after detecting a keyboard input. Just deleted everything and updated to latest script this morning. Thanks guys!
User avatar
mrchrister
Scripting Wizard
Posts: 295
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 32 times
Been thanked: 122 times

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

Unread post by mrchrister »

PS5 controllers over Bluetooth work correctly for me for joystick detection. Currently SAM can only detect inputs on the first joystick connected. This has to do with Bluetooth controllers adding a second "fake joystick" which always fires. Some more research is needed to see if we can have SAM ignore those devices.
User avatar
mrchrister
Scripting Wizard
Posts: 295
Joined: Tue Mar 30, 2021 6:23 pm
Location: Canada
Has thanked: 32 times
Been thanked: 122 times

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

Unread post by mrchrister »

neogeo81 wrote: Sat Apr 30, 2022 4:37 pm I have the issue that when i select only 2 or 3 systems in the ini file i also only get these 2 or 3 systems to choose from in the "start only one system" option. I think this should be corrected to be able to select any system of choice. The settings in the ini file should be only for starting all.
Yeah, let's change that
jacob.pederson
Posts: 22
Joined: Sun Aug 09, 2020 12:48 pm
Has thanked: 2 times
Been thanked: 1 time

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

Unread post by jacob.pederson »

Is there a way to use the "/media/fat/_Arcade/_Organized/" paths to omit both tate games AND games that won't sync to a consumer TV set? For example:
https://www.arcade-history.com/?n=konek ... il&id=7755
http://adb.arcadeitalia.net/dettaglio_m ... search_id=
Both don't sync because they are PAL. Thanks!
Post Reply