if_error,<command>,<error_action> is a useful command, which sets an error action <error_action> for instances of <command> following if_error instance.
<error_action> could be the following:
- continue - ignore any possible error and continue running the script
- ignore - the same as continue
- abort - abort running the script after the command which caused an error
- halt - seems to be the same as abort
I think if_error is very useful sometimes, for example, when one makes a region backup before erasing the region. Saving the backup could fail, but erasing the region won't
For example, let's consider the following update.txt script:
When it's run the following update.log is produced:Code:Please Login or Register to see the links
Region number 1 doesn't exist, so all instances of rrgn,1, should have caused an error. But because of if_error,rrgn,ignore the first two completed successfully. And then because of if_error,rrgn,halt the third one aborted the script.Code:Please Login or Register to see the links
Note that if a script is aborted, last_id.bin is not saved, even if write_last_id,1 is present. Therefore, the script would run many times if used on the same device.
@kunix
I can't get 'if_error' to work in 1xxx series.
I get an error, with either 'abort' or 'holt' in a 1350 and 1200 respectively:Code:Please Login or Register to see the links
Code:Please Login or Register to see the linksNo problem with a 2445 with same command. Seems like it doesn't work with 1xxx? I guess in that case 2x5[W], 465, 765 etc may also fail.Code:Please Login or Register to see the links
Code:Please Login or Register to see the links
'Thanking Posts' are banned. To thank someone, and/or to see hidden links and content, use the [Only registered and activated users can see links. ] button below left of the helpful post then refresh your browser [F5 key]. 'Thanking Posts' are banned.
Please don't spam. Posts serving no purpose other than to thank or to ask about hidden links are trashed or deleted, it's GPSPower's policy. Please don't spam.
[Only registered and activated users can see links. ] should make their first post as a new Intro Thread in [Only registered and activated users can see links. ].
Yeah, 13xx/14xx's boot.bin missess the "if_error" string.
Also why do you write "holt" instead of "halt" sometimes?
Sorry kunix, just a silly typo. I typed the first coded command manually into that post, but the actual update.txt was correct with 'halt'. The 1200 & 1350 update.log files texts were copy/paste.
Thanks for the explanation. Same with all 2, 3 & 6 series that i've checked, and seemingly even the AU fw 1690 boot.bin doesn't support the command "if_error", or at least I couldn't get it to work in my AU 1690. Perhaps the boot.bin for other localisations such as EU are different to the AU because Kanopus found the command in the ldr.bin from Garmin Germany's '1690_demoremove' pack, but with AU ldr.bin in Updater i get this again in update.log:
HaHA! No, i wouldn't want to live there [Holt's too bl**dy COLD in winter, about the same as your summers you poor sods!]. I'm just a crap typist, blind as a bat and more than a little dyslexic .....Code:Please Login or Register to see the links
Got anything constructive to say about 'if_error' string missing from early nuvi fw G?
PS: kunix, I get the same error of invalid command 'if error' with full EU fw flashed to it.
How did Kanopus find the string in ldr.bin? Small words please, remember that my software examination knowledge can be written on the back of a postage stamp in large letters.![]()
Last edited by Neil; 4th May 2014 at 08:11 AM. Reason: aDD ps.
'Thanking Posts' are banned. To thank someone, and/or to see hidden links and content, use the [Only registered and activated users can see links. ] button below left of the helpful post then refresh your browser [F5 key]. 'Thanking Posts' are banned.
Please don't spam. Posts serving no purpose other than to thank or to ask about hidden links are trashed or deleted, it's GPSPower's policy. Please don't spam.
[Only registered and activated users can see links. ] should make their first post as a new Intro Thread in [Only registered and activated users can see links. ].
Could someone explain why nothing happens with my nuvi200 when trying to execute update.exe with following line ?
copy,1:/Garmin/voice/English_British_.vpm,0:/Garmin/voice/English_British_.vpm
reboot
Need to copy english voice from SD to Nuvi as their usb is broken. File update.txt copied in garmin/updater/0660/
Thx a lot
How you run/use updater.exe if your usb data transver not works ?
you need some .bin file i think there is not good help for that. I do not even know what is 2.bin and where i can download it.
do i need make it with rgn tool and get boot.bin and rename 2.bin or what. or i need classes.
You wrote here: [Only registered and activated users can see links. ]
that you don't have folder voice on your device so then this command will not work, becouse you don't have folder voice.
Try with this command: copy,1:/Garmin/voice/,0:/Garmin/voice/
or
copy,1:/Garmin/voice,0:/Garmin/voice
This will copy folder voice to device.
You must have in folder 0660 update.txt and ldr.bin
p.s.
Nuvi 200 have two HWID: Regular = 0660 and MTK = 0834
Bookmarks