Scripting news

https://github.com/MiSTer-devel/Main_MiSTer/wiki

Moderators: Mug UK, Zorro 2, Greenious, spiny, Sorgelig, Moderator Team

Locutus73
Captain Atari
Captain Atari
Posts: 479
Joined: Wed Feb 07, 2018 6:13 pm

Re: Scripting news

Postby Locutus73 » Sun Apr 28, 2019 10:24 am

===========================
Scripts_MiSTer: 2019-04-28
- wiimote_on.sh - Version 1.1 - 2019-04-28 - Now the script checks if a Bluetooth interface is available before launching wminput; added WAIT_FOR_BT_INTERFACE option, "true" in order to wait for the Bluetooth interface (the USB dongle) to be available, useful when using this script at boot time; now START_AT_BOOT="true" works.
===========================

Regards.

Locutus73

Locutus73
Captain Atari
Captain Atari
Posts: 479
Joined: Wed Feb 07, 2018 6:13 pm

Re: Scripting news

Postby Locutus73 » Thu May 02, 2019 8:36 am

@Sorgelig
I really appreciate you implementing /media/fat/Scripts as default directory directly opened by the GUI, thank you, and I totally 200% agree with you with the big fat warning in the Scripting menu. I like disclaimers, they empower users and make script developers life easier.
But I was thinking to a quality of life improvement: what do you think about a scripts_disclaimer option in MiSTer.ini (default value 1, true, so warning page enabled) in order to let users, who understand what they're doing, to willingly disable the warning in order to have a quicker access to scripts?

Thank you in advance.
Regards.

Locutus73

Locutus73
Captain Atari
Captain Atari
Posts: 479
Joined: Wed Feb 07, 2018 6:13 pm

Re: Scripting news

Postby Locutus73 » Thu May 02, 2019 9:28 am

===========================
Updater_script_MiSTer: 2019-05-01
- update.sh - Version 2.1 - 2019-02-23 - CURL RETRY OPTIONS by wesclemens, now the script has a timeout and retry logic to prevent spotty connections causing the update to lockup; thank you very much.
- mister_updater.sh - Version 2.2 - 2019-05-01 - CURL RETRY OPTIONS by wesclemens, now the script has a timeout and retry logic to prevent spotty connections causing the update to lockup, thank you very much; review time sync test by frederic-mahe, thank you very much; now the scripts default path is /media/fat/Scripts, moving #Scripts directory there when needed.
===========================
===========================
Scripts_MiSTer: 2019-05-02
- wiimote_on.sh, wiimote_off.sh, cwiid dir - Moved the script to https://github.com/MiSTer-devel/Scripts ... superseded since its function is now natively embedded in MiSTer Linux system.
- security_fixes.sh - Version 1.2.5 - 2019-05-02 - Code review by makigumo, now the script runs from any terminal, not only SSH, thank you very much.
- ssh_on.sh - Version 1.0.3 - 2019-05-02 - Code review by by frederic-mahe, now the script performs more compact tests and operations, thank you very much.
===========================

Regards.

Locutus73

Locutus73
Captain Atari
Captain Atari
Posts: 479
Joined: Wed Feb 07, 2018 6:13 pm

Re: Scripting news

Postby Locutus73 » Mon May 13, 2019 4:05 pm

===========================
Scripts_MiSTer: 2019-05-13
- change_ini_property.sh.inc - Version 1.1.2 - 2019-05-13 - The script doesn't reboot the system at the end of the execution anymore, it just prompts the user; changed output when video_mode_ntsc_pal=1; corrected MiSTer.ini comment char from "#" to ";".
- change_ini_properties.sh.inc - Version 1.0 - 2019-05-13 - First commit.
- video_settings_optimal.sh - Version 1.0 - 2019-05-13 - First commit.
- video_settings_compatibility.sh - Version 1.0 - 2019-05-13 - First commit.
- mac_address_change.sh - Version 1.0 - 2019-05-13 - First commit.
- reboot.sh - Version 1.0 - 2019-05-13 - First commit.
===========================
https://github.com/MiSTer-devel/Scripts_MiSTer

===========================
Updater_script_MiSTer: 2019-05-13
- mister_updater.sh - Version 2.3 - 2019-05-13 - Added cheats download/update from gamehacking.org when UPDATE_CHEATS="true" ("once" for just downloading them once); added UPDATE_LINUX option instead of uncommenting SD_INSTALLER_PATH (this method still works for ini compatibility).
===========================
https://github.com/MiSTer-devel/Updater_script_MiSTer

Regards.

Locutus73

MattE888
Atari nerd
Atari nerd
Posts: 48
Joined: Fri Nov 02, 2018 5:34 pm

Re: Scripting news

Postby MattE888 » Tue May 14, 2019 2:12 am

Ty for including the cheats! I was having a hard time figuring out how they work until I realized I had to select a game first. Doh!

Locutus73
Captain Atari
Captain Atari
Posts: 479
Joined: Wed Feb 07, 2018 6:13 pm

Re: Scripting news

Postby Locutus73 » Sat May 18, 2019 11:49 am

===========================
Updater_script_MiSTer: 2019-05-18
- mister_updater.sh - Version 3.0 - 2019-05-18 - Added EXPERIMENTAL parallel processing for the update process when PARALLEL_UPDATE="true" (default value is "false"): use it at your own risk!
===========================
https://github.com/MiSTer-devel/Updater_script_MiSTer

Turbo mode for the updater, disabled by default: anyone wanting to help with testing, please enable it with PARALLEL_UPDATE="true" in the ini file and report back; use it at your own risk!

Regards.

Locutus73

Locutus73
Captain Atari
Captain Atari
Posts: 479
Joined: Wed Feb 07, 2018 6:13 pm

Re: Scripting news

Postby Locutus73 » Sat May 25, 2019 4:27 pm

Scripting news:
===========================
Updater_script_MiSTer: 2019-05-25
- mister_updater.sh - Version 3.0.1 - 2019-05-25 - Changed UPDATE_LINUX default value from "false" to "true".
===========================
https://github.com/MiSTer-devel/Updater_script_MiSTer

===========================
Scripts_MiSTer: 2019-05-25
- security_fixes.sh - Version 1.2.7 - 2019-05-25 - Refined the check for standard root password.
===========================
https://github.com/MiSTer-devel/Scripts_MiSTer

Regards.

Locutus73

Locutus73
Captain Atari
Captain Atari
Posts: 479
Joined: Wed Feb 07, 2018 6:13 pm

Re: Scripting news

Postby Locutus73 » Sun May 26, 2019 5:05 pm

Scripting news:
===========================
Scripts_MiSTer: 2019-05-26
- ini_settings.sh- Version 1.2.7 - Version 1.0 - 2019-05-26 - First commit
===========================
An INI settings GUI (plus advanced manual editor) taking advantage of the new framebuffer terminal.
ini_settings.png


https://github.com/MiSTer-devel/Scripts_MiSTer
You do not have the required permissions to view the files attached to this post.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4870
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Scripting news

Postby Sorgelig » Sun May 26, 2019 5:34 pm

tried ini_settings.sh - got lot of errors while downloading something.
Script tries to create /tmp folder which always there. And more strange - it tries to delete /tmp.
So after some preparation script simply hangs.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4870
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Scripting news

Postby Sorgelig » Sun May 26, 2019 5:47 pm

I didn't tried other scripts, so may be i miss something.
Try to clean your linux folder and run just ini_settings.sh

Locutus73
Captain Atari
Captain Atari
Posts: 479
Joined: Wed Feb 07, 2018 6:13 pm

Re: Scripting news

Postby Locutus73 » Sun May 26, 2019 6:10 pm

Sorgelig wrote:I didn't tried other scripts, so may be i miss something.
Try to clean your linux folder and run just ini_settings.sh


Can you try to open this URL?
http://http.us.debian.org/debian/pool/main/n/ncurses
I'm under the impression that some users from some countries have problems with that...

Regards.

Locutus73

Locutus73
Captain Atari
Captain Atari
Posts: 479
Joined: Wed Feb 07, 2018 6:13 pm

Re: Scripting news

Postby Locutus73 » Sun May 26, 2019 6:24 pm

Sorgelig wrote:I didn't tried other scripts, so may be i miss something.
Try to clean your linux folder and run just ini_settings.sh


I added some error checking (which shouldn't solve the problem, but will give some debug info) during DEB download.
Can you try again after updating the script and deleting /media/fat/linux/dialog please?

Thank you in advance.
Best regards.

Locutus73

NML32
Atari Super Hero
Atari Super Hero
Posts: 634
Joined: Tue Mar 11, 2014 1:54 am
Location: USA/Florida

Re: Scripting news

Postby NML32 » Sun May 26, 2019 6:30 pm

@Locutus73 This is what I get when I run the script.

Downloading dialog_1.3-20160828-2_armhf.deb
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 234k 100 234k 0 0 976k 0 --:--:-- --:--:-- --:--:-- 990k
Extracting dialog
Error searching for libncursesw5_6.0 in http://http.us.debian.org/debian/pool/main/n/ncurses

Locutus73
Captain Atari
Captain Atari
Posts: 479
Joined: Wed Feb 07, 2018 6:13 pm

Re: Scripting news

Postby Locutus73 » Sun May 26, 2019 6:33 pm

NML32 wrote:@Locutus73 This is what I get when I run the script.

Downloading dialog_1.3-20160828-2_armhf.deb
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 234k 100 234k 0 0 976k 0 --:--:-- --:--:-- --:--:-- 990k
Extracting dialog
Error searching for libncursesw5_6.0 in http://http.us.debian.org/debian/pool/main/n/ncurses


And can you find a libncursesw5_6.0+20161126-1+deb9u2_armhf.deb
when you browse to
http://http.us.debian.org/debian/pool/main/n/ncurses
?

Thank you in advance

Regards.

Locutus73

NML32
Atari Super Hero
Atari Super Hero
Posts: 634
Joined: Tue Mar 11, 2014 1:54 am
Location: USA/Florida

Re: Scripting news

Postby NML32 » Sun May 26, 2019 6:34 pm

Yes

Capture.JPG
You do not have the required permissions to view the files attached to this post.

Locutus73
Captain Atari
Captain Atari
Posts: 479
Joined: Wed Feb 07, 2018 6:13 pm

Re: Scripting news

Postby Locutus73 » Sun May 26, 2019 6:48 pm

NML32 wrote:Yes

Capture.JPG


Maybe I got it, but I don't understand why someone gets different results...
ayway...
can you try to update ini_settings.sh to the latest version (1.0.3), delete /media/fat/linux/dialog and retry?

Thank you in advance.
Regards.

Locutus73

NML32
Atari Super Hero
Atari Super Hero
Posts: 634
Joined: Tue Mar 11, 2014 1:54 am
Location: USA/Florida

Re: Scripting news

Postby NML32 » Sun May 26, 2019 7:20 pm

Locutus73 wrote:
NML32 wrote:Yes

Capture.JPG


Maybe I got it, but I don't understand why someone gets different results...
ayway...
can you try to update ini_settings.sh to the latest version (1.0.3), delete /media/fat/linux/dialog and retry?

Thank you in advance.
Regards.

Locutus73

Success!! :)

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4870
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Scripting news

Postby Sorgelig » Sun May 26, 2019 7:31 pm

It works for me too

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4870
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Scripting news

Postby Sorgelig » Sun May 26, 2019 7:33 pm

How to delete the empty line in advanced editor?
Backspace doesn't delete the line

Also, double ESC i think should better to return to previous dialog instead of exit the app.

Btw, ini_settings.sh also works from USB console.

glaucon1984
Atari User
Atari User
Posts: 32
Joined: Fri Aug 04, 2017 12:23 pm

Re: Scripting news

Postby glaucon1984 » Sun May 26, 2019 8:05 pm

Not sure why, but in my case the fonts are configured with

Code: Select all

font=/font/filename

and if I try to point to /media/fat/font/filename it doesn't work, as if MiSTer was already adding /media/fat to the path.

This makes ini_settings.sh to fail when selecting fonts. Is it something wrong with my setup?

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4870
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Scripting news

Postby Sorgelig » Sun May 26, 2019 10:07 pm

I will include dialog and ncurses into linux.
Anyway i plan to update the Linux probably tomorrow.

Locutus73
Captain Atari
Captain Atari
Posts: 479
Joined: Wed Feb 07, 2018 6:13 pm

Re: Scripting news

Postby Locutus73 » Mon May 27, 2019 8:58 am

Sorgelig wrote:How to delete the empty line in advanced editor?
Backspace doesn't delete the line

I don't know, I started using dialog this week end :oops:
I noticed that backspace acts as delete... maybe there are some options, maybe in dialogrc which I customize and keep under /media/fat/config

Sorgelig wrote:Also, double ESC i think should better to return to previous dialog instead of exit the app.

Changed.

Sorgelig wrote:Btw, ini_settings.sh also works from USB console.

Maybe I should prompt for that too, but I guess it won't be used much.

Sorgelig wrote:I will include dialog and ncurses into linux.
Anyway i plan to update the Linux probably tomorrow.

Great! The script should be ready for that, since it searches for dialog command with which command first.

By the way, I noticed a strange behaviour: when using a color background, the background has a black stripe. You can try that editing /media/fat/config/dialogrc and reverting screen_color = (CYAN,BLACK,ON) to the original screen_color = (CYAN,BLUE,ON) value.
Yesterday I had problems with weird chars too... but I don't see that anymore and I'm currently unable to replicate the issue.

At this point, it seems to me that the next logical step is using the framebuffer terminal when launching scripts, instead of the current GUI output window, and injecting keystrokes when using the joypad, i.e. DPAD=Arrow Keys, Button1=Enter, Button2=ESC, Button3=Space, Button4=Tab. I'll see if it can be done, but please tell me if you're implementing it in order to avoid useless coding.

Thank you in advance.
Regards.

Locutus73

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4870
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Scripting news

Postby Sorgelig » Mon May 27, 2019 2:11 pm

Garbage screen can happen sometimes when you switch to terminal. I have no idea yet why it happens.
So if there is a garbage, try to switch to core's video then back to HPS. Sometimes it helps. Sometimes reset is required.

I'm going to release new linux with fixes as it's more important than new features. Then will think how can inject the keys.
Actually terminal is supposed to be used with keyboard.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4870
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Scripting news

Postby Sorgelig » Mon May 27, 2019 2:25 pm

yes, i see a black bar at the left. This bar doesn't exist in USB console. Probably it's a bug in framebuffer. My frame buffer driver relays on underlaid system functions servicing block copy. May be something wrong there.
Need more different tests to understand where is the problem.

Sorgelig
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4870
Joined: Mon Dec 14, 2015 10:51 am
Location: Russia/Taiwan

Re: Scripting news

Postby Sorgelig » Mon May 27, 2019 3:34 pm

i will implement key injection


Return to “MiSTer”

Who is online

Users browsing this forum: glaucon1984, Kintaro and 8 guests