MiSTer Extensions
https://github.com/wizzomafizzo/mrext
Make sure to check the linked documentation for each script you use. Most are simple and work out-of-the-box, but some require manual setup before they do anything useful.
The online community for MiSTer FPGA enthusiasts
https://misterfpga.org/
First one, I am not sure. When that "Press any key" message is displayed the script has already exited and mister is back in control. Does it happen with other scripts or just this one in particular? I don't recall it being particularly slow for me either.
Code: Select all
Traceback (most recent call last):
File "/media/fat/Scripts/./search.sh", line 897, in <module>
display_keyboard_input(db)
File "/media/fat/Scripts/./search.sh", line 708, in display_keyboard_input
display_search_results(db, text)
File "/media/fat/Scripts/./search.sh", line 856, in display_search_results
launch_game(selected[0], selected[1])
File "/media/fat/Scripts/./search.sh", line 333, in launch_game
mgl = create_mgl_file(system_name, path)
File "/media/fat/Scripts/./search.sh", line 121, in create_mgl_file
generate_mgl(*to_mgl_args(system, match_system_file(system, path), path))
File "/media/fat/Scripts/./search.sh", line 110, in to_mgl_args
match[1],
TypeError: 'NoneType' object is not subscriptable
/media/fat/Scripts#
I'm definitely doing this.mrchrister wrote: ↑Mon Jul 18, 2022 5:21 pm What do you think about adding the favorites maker to this script? Search for a game and make it a favorite.
Code: Select all
/media/fat/Scripts/random.sh -filter arcade,psx,snes
Code: Select all
/media/fat/Scripts/random.sh -ignore c64,atari7800
Code: Select all
#!/usr/bin/bash
/media/fat/Scripts/random.sh -filter psx
Hi forum friends.
Since I made this post I've mostly been working on Remote in the other thread. But I also released these goodies lately:
LastPlayed is a service which dynamically created shortcuts in the MiSTer menu. Right now it can create a "last game played" shortcut which will always point to the last game launched, and a "recently played" folder which lists all the most recently launched games (unlike the official recents menu, which can only list cores and mgls). The first feature is also usable with the bootcore option so you can automatically launch the last played game on boot, which was the original intention of the script.
NFC is a service which lets you use cheap consumer grade USB NFC scanners to launch cores, game and custom commands. It's a pretty new one but I've gotten good feedback on it so far. I've tried to make launching files from it as robust as possible, and it also does cool stuff like launch a randomly selected game from a system. Works with Amiibos too. The intention for this script is to make NFC scanning more accessible. Current solutions are awesome, but most people don't want a soldering project. This is plug and play.
Great work with the NFC script!
Is there a way to send a command to switch ini file via NFC?
It would be great to be able to switch ini with a card if I switch TV.
Glad to hear it
You can run system commands with it: https://github.com/wizzomafizzo/mrext/b ... md#command
Perhaps in the future I can add an option to enable those written to cards.
If you mean launch from the scripts menu like that. I could probably reuse the way Remote launches them
wizzo wrote: ↑Wed Aug 30, 2023 12:48 pmGlad to hear it
You can run system commands with it: https://github.com/wizzomafizzo/mrext/b ... md#command
Perhaps in the future I can add an option to enable those written to cards.
If you mean launch from the scripts menu like that. I could probably reuse the way Remote launches them
Yes, I was wondering if I could launch downloader.sh from a NFC tag.
Thank you.
I'm really interested in jumping into the NFC stuff, I've checked Amazon and Ali Express and it seems there are tons of different vendors selling the ACR122U reader with wildly different prices.
Is any ACR122U as good as another? can I just grab the cheapest one?
Lightwave wrote: ↑Thu Aug 31, 2023 7:26 amI'm really interested in jumping into the NFC stuff, I've checked Amazon and Ali Express and it seems there are tons of different vendors selling the ACR122U reader with wildly different prices.
Is any ACR122U as good as another? can I just grab the cheapest one?
My advice at the moment is do not get the cheapest one. There's a certain clone that doesn't work with the script and I have no way to identify the listing if it's a dud or not.
These links I can confirm are legit:
https://www.amazon.com/dp/B07KRKPWYC
https://www.ebay.co.uk/itm/145044206870
You are welcome to give AliExpress a go! But yeah just a warning for now until I can either support the clone or work out how to tell before buying
Ah, I'm in Asia so those US/UK links aren't really good for me. Ali Express would be ideal, but I'd rather not waste my money on an incompatible version, so I think I'll hold off for now until things are clearer as you mentioned.
Thanks for all your work on these scripts! Looking forward to the iOS remote app.
Ok, I ended up taking a chance after all because I was excited about this, and I managed to get a reader that works!
I have a question about using the .csv file:
Will having many entries add a noticeable delay to launching games (vs writing the commands directly to NFC)? I'm assuming it needs to load and parse the list each time?
I'm trying to figure out my approach before I add a bunch of cards, and using the csv method seems more flexible to me.
Lightwave wrote: ↑Fri Sep 15, 2023 4:50 amOk, I ended up taking a chance after all because I was excited about this, and I managed to get a reader that works!
I have a question about using the .csv file:
Will having many entries add a noticeable delay to launching games (vs writing the commands directly to NFC)? I'm assuming it needs to load and parse the list each time?I'm trying to figure out my approach before I add a bunch of cards, and using the csv method seems more flexible to me.
It's only loaded when the file is changed for exactly that reason I don't think it would ever be slow unless it was insanely big, but I found it was causing screen flickering in the menu. It has a monitor running and will auto reload the CSV each edit
I have a question regarding the ini switching via NFC. I've been able to load games via the cards, but not switching inis. I made sure to use the latest script, and I made a few NFC cards where I entered the text as described in the github (**ini:1 ) but when I tap them, I get some kind of error beeps and nothing happens.
I don't know if it matters, but I also created a nfc.ini that I put in the Script folder, and I changed "allow_commands" to "yes", but that didn't help. Am I missing something obvious, or perhaps I've used the wrong syntax? I tried to troubleshoot as best I can: I used the same type of cards (even the same card via rewriting) to load the game successfully and switch ini unsuccessfully, I've double-checked the spelling and syntax on the github, I re-ran the nfc script after updating it, just to be sure.
Djiem wrote: ↑Sat Sep 30, 2023 12:34 amI have a question regarding the ini switching via NFC. I've been able to load games via the cards, but not switching inis. I made sure to use the latest script, and I made a few NFC cards where I entered the text as described in the github (**ini:1 ) but when I tap them, I get some kind of error beeps and nothing happens.
I don't know if it matters, but I also created a nfc.ini that I put in the Script folder, and I changed "allow_commands" to "yes", but that didn't help. Am I missing something obvious, or perhaps I've used the wrong syntax? I tried to troubleshoot as best I can: I used the same type of cards (even the same card via rewriting) to load the game successfully and switch ini unsuccessfully, I've double-checked the spelling and syntax on the github, I re-ran the nfc script after updating it, just to be sure.
Have you updated to the latest nfc.sh?
Try download it and replace it in the Scripts folder if it doesn't automatically download.
Code: Select all
#TAGNR#,,**ini:1
worked for me without further configuration, but i use the nfc.csv to define each nfc tag action.
To get the tagnumber, run the nfc.sh script and scan an empty tag and you will get the nr.
Don't forget to restart the nfc.sh service if you add stuff to nfc.cvs.
Unfortunately, nothing worked, even though I'm using the latest nfc.sh and restarted the service after updating. I was able to load a random SNES game, so commands do work and I believe I'm using the right syntax. With that said, I see the script is still being worked on, and that a script from sigboe is being created to have some sort of GUI. I'm gonna wait a bit and work around with those and see if they help; maybe I am doing something wrong.
Djiem wrote: ↑Tue Oct 03, 2023 3:59 amUnfortunately, nothing worked, even though I'm using the latest nfc.sh and restarted the service after updating. I was able to load a random SNES game, so commands do work and I believe I'm using the right syntax. With that said, I see the script is still being worked on, and that a script from sigboe is being created to have some sort of GUI. I'm gonna wait a bit and work around with those and see if they help; maybe I am doing something wrong.
Maybe it is your NFC tag that is unsupported?
You can check tag version with the android app recommended on the github and see if it is supported.
chimaera wrote: ↑Tue Oct 03, 2023 5:06 pmDjiem wrote: ↑Tue Oct 03, 2023 3:59 amUnfortunately, nothing worked, even though I'm using the latest nfc.sh and restarted the service after updating. I was able to load a random SNES game, so commands do work and I believe I'm using the right syntax. With that said, I see the script is still being worked on, and that a script from sigboe is being created to have some sort of GUI. I'm gonna wait a bit and work around with those and see if they help; maybe I am doing something wrong.
Maybe it is your NFC tag that is unsupported?
You can check tag version with the android app recommended on the github and see if it is supported.
It should be supported normally; I used the very same tag (not just a tag of the same type, literally the same tag) to load a specific NES game, and even to use the command to load a random SNES game, both before and after failing to use it for ini changes. It only gives me an error beep when I try to change ini files.
Are your ini files named using the original convention (MiSTer.ini, MiSTer_alt_1.ini, MiSTer_alt_2.ini, etc.)?
Or are you using the newer naming that allows arbitrary labels (MiSTer_CRT.ini, MiSTer_HDMI.ini, etc.)?