MiSTer updater script
Moderators: Mug UK, Zorro 2, spiny, Greenious, Sorgelig, Moderator Team
Re: MiSTer updater script
I would love it if someone would post the command(s) that would be placed in an "update.sh" to pull the latest script and run it.
I tried the command for putty but it didn't work.
I tried the command for putty but it didn't work.
Re: MiSTer updater script
Absolutely safe, make a script like thisLodovic wrote:Hi Locutus73!
Now that we can use the script menu in the OSD, I think I will use your one-line command update trick to create a script file that will always download and use your latest updater. Since I use the default options, is this a safe way to launch the updater? Can the OSD menu launch a script that launch another script without problems?
Thanks.
Code: Select all
#!/bin/bash
curl -ksLf https://github.com/MiSTer-devel/Updater_script_MiSTer/blob/master/mister_updater.sh?raw=true | bash -
Regards.
Locutus73
Re: MiSTer updater script
Hi, I just updated the mister_updater.sh script:
Version 1.4 - 2018.12.26 - Added DOWNLOAD_NEW_CORES option: true for downloading new cores in the standard directories as previous script releases, false for not downloading new cores at all, a string value, i.e. "NewCores", for downloading new cores in the "NewCores" subdirectory.
https://github.com/MiSTer-devel/Updater_script_MiSTer
Regards.
Locutus73
Version 1.4 - 2018.12.26 - Added DOWNLOAD_NEW_CORES option: true for downloading new cores in the standard directories as previous script releases, false for not downloading new cores at all, a string value, i.e. "NewCores", for downloading new cores in the "NewCores" subdirectory.
https://github.com/MiSTer-devel/Updater_script_MiSTer
Regards.
Locutus73
Re: MiSTer updater script
New script:
Version 1.5 - 2018.12.27 - Reorganized user options; improved DOWNLOAD_NEW_CORES option handling for paths with spaces; added ARCADE_HACKS_PATH parameter for defining a directory containing arcade hacks to be updated, each arcade hack is a subdirectory with the name starting like the rbf core with an underscore prefix (i.e. /media/fat/_Arcade/_Arcade Hacks/_BurgerTime - hack/).
https://github.com/MiSTer-devel/Updater_script_MiSTer
Regards.
Locutus73
Version 1.5 - 2018.12.27 - Reorganized user options; improved DOWNLOAD_NEW_CORES option handling for paths with spaces; added ARCADE_HACKS_PATH parameter for defining a directory containing arcade hacks to be updated, each arcade hack is a subdirectory with the name starting like the rbf core with an underscore prefix (i.e. /media/fat/_Arcade/_Arcade Hacks/_BurgerTime - hack/).
https://github.com/MiSTer-devel/Updater_script_MiSTer
Regards.
Locutus73
Re: MiSTer updater script
Something is not working with the script today. I had it running on version 1.3.5 but updates did not trigger. I have now updated to 1.5 but the issues are the same. I only get this when I run the script:
Last time I updated was December 25th, so there should be some updates. For some reason it does not show each core any longer when I run the script. Anything changed? I ran the script as downloaded - no changes from my end.
Code: Select all
# ./mister_update.sh
Checking SD-Installer-Win64
URL: https://github.com/MiSTer-devel/SD-Installer-Win64_MiSTer
Nothing to update
Checking Main
URL: https://github.com/MiSTer-devel/Main_MiSTer
Nothing to update
Checking Filters
URL: https://github.com/MiSTer-devel/Filters_MiSTer/tree/master/Filters
Checking palettes
URL: https://github.com/MiSTer-devel/Gameboy_MiSTer/tree/master/palettes
Done!
Re: MiSTer updater script
Strange, I just tried the 1.5 without any change and it works here; from your log it seems you edited the script, at least for uncommenting SD_INSTALLER_URL, but I tried that too and, again, it works here. Are you shure you didn't change anything?SaschaFFM wrote:Something is not working with the script today. I had it running on version 1.3.5 but updates did not trigger. I have now updated to 1.5 but the issues are the same. I only get this when I run the script:
Last time I updated was December 25th, so there should be some updates. For some reason it does not show each core any longer when I run the script. Anything changed? I ran the script as downloaded - no changes from my end.Code: Select all
# ./mister_update.sh Checking SD-Installer-Win64 URL: https://github.com/MiSTer-devel/SD-Installer-Win64_MiSTer Nothing to update Checking Main URL: https://github.com/MiSTer-devel/Main_MiSTer Nothing to update Checking Filters URL: https://github.com/MiSTer-devel/Filters_MiSTer/tree/master/Filters Checking palettes URL: https://github.com/MiSTer-devel/Gameboy_MiSTer/tree/master/palettes Done!
Regards.
Locutus73
Re: MiSTer updater script
Right, I did uncomment this. Sorry it is a standard task for me - forgot to mention 
I did a reboot of the MiSTer now once again. This time it worked. Don't know what that was.

I did a reboot of the MiSTer now once again. This time it worked. Don't know what that was.
Re: MiSTer updater script
Maybe the MiSTer was connected to the LAN, but disconnected from the Internet; is it possible?SaschaFFM wrote:Right, I did uncomment this. Sorry it is a standard task for me - forgot to mention
I did a reboot of the MiSTer now once again. This time it worked. Don't know what that was.
Regards.
Locutus73
Re: MiSTer updater script
Did not check that unfortunately. I remember that I forgot to connect the uplink cable from the switch that the MiSTer is connected to. It did not get an IP first (DHCP-Server could not be reached because of missing uplink).
After I connected the uplink the IP showed in MiSTer menu. Perhaps it did not pull Default-Gateway for some reason.
After I connected the uplink the IP showed in MiSTer menu. Perhaps it did not pull Default-Gateway for some reason.
Re: MiSTer updater script
Hi, I just updated the mister_updater.sh script with many new features:
Version 1.6 - 2018.12.29 - Added REPOSITORIES_FILTER option (i.e. "C64 Minimig NES SNES"); additional repositories files (Filters and GameBoy palettes) online dates and times are checked against local files before downloading; added Internet connection test at the beginning of the script; improved ARCADE_HACKS_PATH file purging; solved a bug with DOWNLOAD_NEW_CORES and paths with spaces; added comments to user options.
https://github.com/MiSTer-devel/Updater_script_MiSTer
Regards.
Locutus73
Version 1.6 - 2018.12.29 - Added REPOSITORIES_FILTER option (i.e. "C64 Minimig NES SNES"); additional repositories files (Filters and GameBoy palettes) online dates and times are checked against local files before downloading; added Internet connection test at the beginning of the script; improved ARCADE_HACKS_PATH file purging; solved a bug with DOWNLOAD_NEW_CORES and paths with spaces; added comments to user options.
https://github.com/MiSTer-devel/Updater_script_MiSTer
Regards.
Locutus73
- SmokeMonster
- Atari nerd
- Posts: 46
- Joined: Wed Oct 03, 2018 2:26 pm
- Contact:
Re: MiSTer updater script
The Updater Script has changed my life. It's absolutely perfect.
Could the script please be added to the SD Card Utility?
Also, could we please get a /Config/Scripts/ sub-folder dedicated to holding scripts?
Could the script please be added to the SD Card Utility?
Also, could we please get a /Config/Scripts/ sub-folder dedicated to holding scripts?
Re: MiSTer updater script
Is it possible to automaticly update the script too? This script changed my life too. Now if only.....
Thanks for all the great work!
Thanks for all the great work!
Re: MiSTer updater script
Hi,
I just tryed it out,and it worked fine,thx Locutus73.
I just tryed it out,and it worked fine,thx Locutus73.
Re: MiSTer updater script
Make a little update.sh script like this:ewok wrote:Is it possible to automaticly update the script too? This script changed my life too. Now if only.....
Thanks for all the great work!
Code: Select all
#!/bin/bash
curl -ksLf https://github.com/MiSTer-devel/Updater_script_MiSTer/blob/master/mister_updater.sh?raw=true | bash -
Regards.
Locutus73
Re: MiSTer updater script
This script is awesome! Tried it out last night and I am glad I did!
So many updates are coming out and it was hard to keep up.
Thank you so much!
So many updates are coming out and it was hard to keep up.
Thank you so much!
Re: MiSTer updater script
Locutus73 wrote:Make a little update.sh script like this:ewok wrote:Is it possible to automaticly update the script too? This script changed my life too. Now if only.....
Thanks for all the great work!And it will always execute the latest mister_updater.sh from GitHub with default settings.Code: Select all
#!/bin/bash curl -ksLf https://github.com/MiSTer-devel/Updater_script_MiSTer/blob/master/mister_updater.sh?raw=true | bash -
Regards.
Locutus73
Thanks!
Re: MiSTer updater script
New version of the mister_updater.sh script
Version 1.6.1 - 2018.12.30 - Improved date-time parsing for additional repositories; main MiSTer executable, menu.rbf and Linux system are always updated in /media/fat even if BASE_PATH is configured for another directory.
https://github.com/MiSTer-devel/Updater_script_MiSTer
Regards.
Locutus73
Version 1.6.1 - 2018.12.30 - Improved date-time parsing for additional repositories; main MiSTer executable, menu.rbf and Linux system are always updated in /media/fat even if BASE_PATH is configured for another directory.
https://github.com/MiSTer-devel/Updater_script_MiSTer
Regards.
Locutus73
Re: MiSTer updater script
Thank you Locutus73
This script just keeps getting better.

This script just keeps getting better.

Re: MiSTer updater script
So I created an updater script using what was previously pasted here to always pull the latest update script and run it. It worked fine for the past 2 or 3 days. Today, when I launch it my MiSTer completely locks up (even menu clock freezes) before opening the script window. I put my SD into my PC and manually added the 1.6.1 script to run locally without internet and it STILL freezes instantly after trying to launch a script.
During the last successful use of a script the main MiSTer binary was updated. Any chance something changed that broke running scripts in general?
EDIT: I have confirmed that rolling back the main MiSTer binary to the version before 20181229 (20181227) lets my scripts all work fine again, but of course since running the updater updates the main binary to 20181229 again, you then can no longer run scripts again. I did try manually updating the main binary on my PC to make sure it wasn't the updater script that broke it somehow but it didn't help. So apparently the "tweaks" in the latest main binary yesterday broke scripts (or at least both flavors of updater scripts, local and live/online) although I have no other scripts to test with.
EDIT 2: @LeKrang - This updater did not delete my GBC bios, so I don't think it was an updater script issue.
During the last successful use of a script the main MiSTer binary was updated. Any chance something changed that broke running scripts in general?
EDIT: I have confirmed that rolling back the main MiSTer binary to the version before 20181229 (20181227) lets my scripts all work fine again, but of course since running the updater updates the main binary to 20181229 again, you then can no longer run scripts again. I did try manually updating the main binary on my PC to make sure it wasn't the updater script that broke it somehow but it didn't help. So apparently the "tweaks" in the latest main binary yesterday broke scripts (or at least both flavors of updater scripts, local and live/online) although I have no other scripts to test with.
EDIT 2: @LeKrang - This updater did not delete my GBC bios, so I don't think it was an updater script issue.
Last edited by esmith13 on Sun Dec 30, 2018 11:27 pm, edited 2 times in total.
Re: MiSTer updater script
Locutus73 wrote:New version of the mister_updater.sh script
Version 1.6.1 - 2018.12.30 - Improved date-time parsing for additional repositories; main MiSTer executable, menu.rbf and Linux system are always updated in /media/fat even if BASE_PATH is configured for another directory.
https://github.com/MiSTer-devel/Updater_script_MiSTer
Regards.
Locutus73
Hi Locutus73, just a heads up, after running the updater I noticed it got rid of my boot1.rom file located in the \Gameboy folder I had created for gameboy color support. It also placed the palettes there.
Re: MiSTer updater script
Hi, the script downloads palettes in the GameBoy folder, but that can be personalized with the ADDITIONAL_REPOSITORIES option: you can change $BASE_PATH/GameBoy to whatever you want.LeKrang wrote:Hi Locutus73, just a heads up, after running the updater I noticed it got rid of my boot1.rom file located in the \Gameboy folder I had created for gameboy color support. It also placed the palettes there.
Regarding the boot1.rom it’s strange, there’s no code for deleting anything in GameBoy directory.
Did you edit any option?
Regards.
Locutus73
Re: MiSTer updater script
Locutus73 wrote:Hi, the script downloads palettes in the GameBoy folder, but that can be personalized with the ADDITIONAL_REPOSITORIES option: you can change $BASE_PATH/GameBoy to whatever you want.LeKrang wrote:Hi Locutus73, just a heads up, after running the updater I noticed it got rid of my boot1.rom file located in the \Gameboy folder I had created for gameboy color support. It also placed the palettes there.
Regarding the boot1.rom it’s strange, there’s no code for deleting anything in GameBoy directory.
Did you edit any option?
Regards.
Locutus73
No I haven't. I will try it again and see if I get the same issue, I might just be the one who did something wrong.
Sorgelig seems to be updating several cores atm, I will wait for him to finish then run the updater again.
Thanks.
Re: MiSTer updater script
Should have made a new post but edited old one instead. Please see edits above.esmith13 wrote:So I created an updater script using what was previously pasted here to always pull the latest update script and run it. It worked fine for the past 2 or 3 days. Today, when I launch it my MiSTer completely locks up (even menu clock freezes) before opening the script window. I put my SD into my PC and manually added the 1.6.1 script to run locally without internet and it STILL freezes instantly after trying to launch a script.
During the last successful use of a script the main MiSTer binary was updated. Any chance something changed that broke running scripts in general?
EDIT: I have confirmed that rolling back the main MiSTer binary to the version before 20181229 (20181227) lets my scripts all work fine again, but of course since running the updater updates the main binary to 20181229 again, you then can no longer run scripts again. I did try manually updating the main binary on my PC to make sure it wasn't the updater script that broke it somehow but it didn't help. So apparently the "tweaks" in the latest main binary yesterday broke scripts (or at least both flavors of updater scripts, local and live/online) although I have no other scripts to test with.
EDIT 2: @LeKrang - This updater did not delete my GBC bios, so I don't think it was an updater script issue.
Re: MiSTer updater script
I think the OSD freeze is related to the script name length, the Script menu tries to write it on the left side of the OSD and, if it’s too long, the menu freezes. Try to rename your update script to something shorter i.e. update.sh and try again with the latest MiSTer binary.esmith13 wrote:So I created an updater script using what was previously pasted here to always pull the latest update script and run it. It worked fine for the past 2 or 3 days. Today, when I launch it my MiSTer completely locks up (even menu clock freezes) before opening the script window. I put my SD into my PC and manually added the 1.6.1 script to run locally without internet and it STILL freezes instantly after trying to launch a script.
During the last successful use of a script the main MiSTer binary was updated. Any chance something changed that broke running scripts in general?
EDIT: I have confirmed that rolling back the main MiSTer binary to the version before 20181229 (20181227) lets my scripts all work fine again, but of course since running the updater updates the main binary to 20181229 again, you then can no longer run scripts again. I did try manually updating the main binary on my PC to make sure it wasn't the updater script that broke it somehow but it didn't help. So apparently the "tweaks" in the latest main binary yesterday broke scripts (or at least both flavors of updater scripts, local and live/online) although I have no other scripts to test with.
EDIT 2: @LeKrang - This updater did not delete my GBC bios, so I don't think it was an updater script issue.
Regards.
Locutus73
Re: MiSTer updater script
Locutus73 wrote: I think the OSD freeze is related to the script name length, the Script menu tries to write it on the left side of the OSD and, if it’s too long, the menu freezes. Try to rename your update script to something shorter i.e. update.sh and try again with the latest MiSTer binary.
Regards.
Locutus73
Thanks, you called it. For some reason the name length wasn't an issue with 20181227 but is with 20181229. I guess the new datecode changes have an effect on the maxlength parameters somehow. somewhere between 11 and 12 characters (not counting extension) seems to be the cutoff now.