MiSTer Games Menu - Launch Games from the MiSTer Menu

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
User avatar
wizzo
Scripting Wizard
Posts: 183
Joined: Sat Mar 12, 2022 11:32 am
Has thanked: 15 times
Been thanked: 240 times

MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by wizzo »

This is a script which scans all your game files and then populates a folder called Games in the main MiSTer menu. I think this makes them a little nicer to browse, since you don't need to launch a core first, and it pairs well with the background music script.

Download & installation: https://github.com/wizzomafizzo/MiSTer_GamesMenu

Zip files are also supported as far as MiSTer itself supports them. The directory layout of your games folders will be reflected in the menu.

games.jpeg
games.jpeg (355.83 KiB) Viewed 3974 times
menu.png
menu.png (63.35 KiB) Viewed 3974 times
Insert Disk Two
Posts: 192
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 10 times
Been thanked: 23 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by Insert Disk Two »

This is nice, hopefully it will have favourite games feature added one day!
User avatar
wizzo
Scripting Wizard
Posts: 183
Joined: Sat Mar 12, 2022 11:32 am
Has thanked: 15 times
Been thanked: 240 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by wizzo »

Insert Disk Two wrote: Sat Apr 23, 2022 4:23 pm This is nice, hopefully it will have favourite games feature added one day!
Cheers! I have another script to do that here: viewtopic.php?t=4470

They work separately but I suppose I could add support to favourite mgl files
Insert Disk Two
Posts: 192
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 10 times
Been thanked: 23 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by Insert Disk Two »

Wow. Thanks!
User avatar
Wave
Posts: 129
Joined: Tue Jan 04, 2022 6:57 pm
Has thanked: 86 times
Been thanked: 40 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by Wave »

You're just on a rampage with these awesome, feature-adding scripts, and I'm here for it. Thank you as ever.

Does this script have update-all functionality like I think you added/are adding to BGM script?
she/her
cursedverses
Posts: 154
Joined: Sun May 24, 2020 9:13 pm
Has thanked: 152 times
Been thanked: 21 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by cursedverses »

Oh this is very cool! I think I'm going to use this and look for a way of exposing the last loaded rom into a "jump back in" menu item.

One click reload of core and rom? Yes please!
Stupid Dufus
Posts: 152
Joined: Sun Aug 30, 2020 12:04 am
Has thanked: 87 times
Been thanked: 46 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by Stupid Dufus »

Wave wrote: Sat Apr 23, 2022 6:59 pm You're just on a rampage with these awesome, feature-adding scripts, and I'm here for it. Thank you as ever.

Does this script have update-all functionality like I think you added/are adding to BGM script?
Looks like it does! From the github:
Games Menu can be automatically updated with the MiSTer downloader script (and update_all). Add the following text to the downloader.ini file on your SD card:

Code: Select all

[games_menu]
db_url = 'https://raw.githubusercontent.com/wizzomafizzo/MiSTer_GamesMenu/main/games_menu.json'
User avatar
Sigismond0
Posts: 339
Joined: Mon May 25, 2020 2:21 am
Has thanked: 1 time
Been thanked: 66 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by Sigismond0 »

I'd be interested in having an option for putting these in the root menu, like how the favorites script provides that as an option. The root menu always feels so empty with just five folders in it, and shortcuts to favorite consoles there would be great.
User avatar
wizzo
Scripting Wizard
Posts: 183
Joined: Sat Mar 12, 2022 11:32 am
Has thanked: 15 times
Been thanked: 240 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by wizzo »

Wave wrote: Sat Apr 23, 2022 6:59 pm You're just on a rampage with these awesome, feature-adding scripts, and I'm here for it. Thank you as ever.
You're welcome! Thanks for the support
Sigismond0 wrote: Mon Apr 25, 2022 1:57 pm I'd be interested in having an option for putting these in the root menu, like how the favorites script provides that as an option. The root menu always feels so empty with just five folders in it, and shortcuts to favorite consoles there would be great.
I like this idea. What I'm thinking instead is to allow the favorites script to symlink these folders. I reckon that will be the same outcome, and save on a lot of complexity in this one

First I would like to fix up the gui on this script so you can fully use it with a controller
cursedverses wrote: Sun Apr 24, 2022 10:48 am Oh this is very cool! I think I'm going to use this and look for a way of exposing the last loaded rom into a "jump back in" menu item.

One click reload of core and rom? Yes please!
I've been asked for this a few times. Have you tried mister's built in support for this feature? You add something like recents=1 in your mister ini file. After that you can press select on your controller and it shows recently launched games and cores. It's easy to forget it exists and I think it would be better as an entry on the main menu, but I'm reluctant to duplicate all that effort and add another daemon for monitoring core changes
cursedverses
Posts: 154
Joined: Sun May 24, 2020 9:13 pm
Has thanked: 152 times
Been thanked: 21 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by cursedverses »

I've been asked for this a few times. Have you tried mister's built in support for this feature? You add something like recents=1 in your mister ini file. After that you can press select on your controller and it shows recently launched games and cores. It's easy to forget it exists and I think it would be better as an entry on the main menu, but I'm reluctant to duplicate all that effort and add another daemon for monitoring core changes
I just tried this, and it's recent cores only?
I'm really looking for core/rom combination e.g.
- Final Fantasy Disc 3 on PSX core
- Sonic the Hedgehog on MegaDrive core
- Metal Slug 2 on NeoGeo core

Rather than reinvent the wheel, it seems it just needs an extra parameter (the rom file)? There was a project that allowed people to load core/rom from their phones around here somewhere so the implementation of executing that is already done.
User avatar
wizzo
Scripting Wizard
Posts: 183
Joined: Sat Mar 12, 2022 11:32 am
Has thanked: 15 times
Been thanked: 240 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by wizzo »

cursedverses wrote: Tue Apr 26, 2022 11:03 am Rather than reinvent the wheel, it seems it just needs an extra parameter (the rom file)? There was a project that allowed people to load core/rom from their phones around here somewhere so the implementation of executing that is already done.
Now that I've looked at the feature a bit closer I think the way it works is based off recent launches from the menu not recent roms launched in a core. So for me it's actually picking up recent games because I recently started launching them from mgl files through this script. Try launch a game through my script games menu and see if it shows up in the select menu now.
cursedverses
Posts: 154
Joined: Sun May 24, 2020 9:13 pm
Has thanked: 152 times
Been thanked: 21 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by cursedverses »

Ah I see! That would make a lot of sense. Ok, I will try. Thanks again!
tekn0
Posts: 10
Joined: Tue Apr 12, 2022 12:19 am

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by tekn0 »

This seems like an awesome script. I am excited to try it.
User avatar
wizzo
Scripting Wizard
Posts: 183
Joined: Sat Mar 12, 2022 11:32 am
Has thanked: 15 times
Been thanked: 240 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by wizzo »

I've put a new update up on github with these changes:
  • .zip files are now fully supported. The behaviour for this is that the contents of the zip will be put in the parent folder while the zip filename itself is dropped. I think before it would create the zip filename as a folder. This is better suited for people dropping in files directly from places like the HTGDB archive. I will eventually add a config option to use the old behaviour for people who use the zip filename for organisation.
  • Super Gameboy is supported.
  • Now shows a basic progress bar during the file generation.
  • Have made some optimisations to make the scanning speed faster. Though it's still bottlenecked by the SD card's write speed.
I haven't pushed this out to the mister update script yet. I'd still like to test it a little more. But it should be working fine already.
JAJT
Posts: 10
Joined: Tue Sep 20, 2022 4:21 pm
Has thanked: 4 times
Been thanked: 3 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by JAJT »

Question - How do you get rid of the games menu after running the script?

I ran the script, toggled a few cores, played around with it, then decided to remove it for now. When I un-toggle all the cores and try to generate the menu, it just reboots and makes no changes. I can toggle and generate any combo of cores I want, but if I toggle none of them, it just reboots and keeps whatever the last toggled version of the menu was.

Is there a way to just untoggle them all and remove the games menu entirely?
User avatar
wizzo
Scripting Wizard
Posts: 183
Joined: Sat Mar 12, 2022 11:32 am
Has thanked: 15 times
Been thanked: 240 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by wizzo »

JAJT wrote: Thu Oct 27, 2022 4:38 pm Question - How do you get rid of the games menu after running the script?

I ran the script, toggled a few cores, played around with it, then decided to remove it for now. When I un-toggle all the cores and try to generate the menu, it just reboots and makes no changes. I can toggle and generate any combo of cores I want, but if I toggle none of them, it just reboots and keeps whatever the last toggled version of the menu was.

Is there a way to just untoggle them all and remove the games menu entirely?
Hi. You can just delete the _Games folder entirely off your SD in that case. There will be nothing important in there

If you want to wait a couple days as well I can make an update that will delete it automatically if everything is deselected. Good idea
User avatar
wizzo
Scripting Wizard
Posts: 183
Joined: Sat Mar 12, 2022 11:32 am
Has thanked: 15 times
Been thanked: 240 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by wizzo »

Alright I've put up an update which lets you uninstall but toggling all the systems off and hitting generate.
JAJT
Posts: 10
Joined: Tue Sep 20, 2022 4:21 pm
Has thanked: 4 times
Been thanked: 3 times

Re: MiSTer Games Menu - Launch Games from the MiSTer Menu

Unread post by JAJT »

Sweet! Appreciate it :)
Post Reply