View Full Version : "RUNATEND: Bad arguments!" error when patching 3315 FLS

24-12-2004, 10:35 AM
When I patch my 3315 flash using NokiX 1.0, I get this error:

# Input flash: 633-ORIGINAL.fls
# Loading... OK

# Processing: advanced_calculator.nrx
# RUNATEND: Bad arguments!
# *-* runatend script "THE_END" (-160)
# +++ RC=1 +++
Strings file: advanced_calculator_ppm.txt

# Script error!What does that mean? I read the information about this nrx script, and it does not say that I need to give any arguments to it.

24-12-2004, 12:54 PM
Ok guys,

lets get something cleared once and for all!!

BAD ARGUMENTS means that something that was called is missing

what happens is that the script runs once and waits for its priority to run again (-160). the problem is that it asks for the name of the script to run again and all it finds is the word "script" and not the required name.

this issue was covered in several threads before and the solutin is to replace the word "script" by the name of the script itself between "" ;)

runatend script "THE_END" (-160)

in this case the line should lool like this:

runatend "advanced_calculator.nrx" "THE_END" (-160)

if some mod can make this thread sticky i think users probs would cease :)


24-12-2004, 04:45 PM
Thank you for your help! I followed your advice and everything is working! Thank you so much!

24-12-2004, 08:42 PM
Thank you for your help! I followed your advice and everything is working! Thank you so much!

your welcome :grin:

24-12-2004, 09:19 PM
if some mod can make this thread sticky i think users probs would cease :)


Sure, it's Ur forum too. ;)


04-01-2005, 04:45 AM
I also have some error.
i use nokix in my computer win 98 se is ok.
but when i copy the nokix dir from my computer to my bro com winxp.
then it show the some error.
y xp can't find the word "script"
i try many diff script also some when the script want to call add_ppm_strings.
pls help

04-01-2005, 12:27 PM
I think you're having a different problem :P

when you copied the whole dir you also copied the project's path for the scripts but to a different computer and, probably, to a different relative place.

you have to change the path of the paramters files so that nokix looks for them in the new location ;)

post results

05-01-2005, 06:49 AM
I try to open a new project ,add a new seript,
but get some results.

06-01-2005, 05:25 AM
I know what's wrong already.
edit add_ppm_strings.rx,

runatend script "THE_END" (-160)

change it to

runatend "add_ppm_strings.rx" "THE_END" (-160)

other script have runatend commands also want to
change the word(script) to the title name.

But 1 thing i don't understand ,
y my 98se can n my bro xp want to change the name?

06-01-2005, 11:06 AM
hey, did u read my first post of this thread??? :-o

i already explained that you have to change the word "script"!!

why fill this thread with more questions if issue is the same? please try all your solutions before posting, then.


07-01-2005, 08:22 AM
Sorry,i misunderstand ur first post.
i just directly copy paste (runatend "advanced_calculator.nrx" "THE_END" (-160) )
in add_ppm_strings.rx ,cos i don't understand parse source mean (now i know).
I play around last night ,finaly that is my
little mistake make the runatend command not work.
the (parse source . . script) can find the script location.
but in the location one dir name have () character.
i just rename the dir name without () n the error is gone.
So i don't need to edit the script now.
Any way thx to mestrini for help.

07-01-2005, 01:01 PM
okay, i'm glad u understand it now :smile:

i'm sorry i was so hard (maybe bad night sleep :lol: )


17-01-2005, 11:27 AM
I only wanted to add that you can change runatend script "THE_END" to runatend '"'script'"' "THE_END" (script word sourounded with single quote, double quote, single quote) to solve this problem. This has been already done in currently available snapshot.

13-07-2005, 10:21 AM
Number of IDs created: 21 nonvolatile and 2 volatile
Creating configs EEPROM table entry...
# ERROR: Not enough free EEPROM space, needed 8, found 7 bytes!
# 207 +++ fail "Not enough free EEPROM space, needed "len*idx", found "free" bytes!"
# 119 +++ eeprom_id=eeprom("create",buffer_length)
# Error 4 running "N:\handy\nokix\scripts\EEPROM.rx", line 207: Program interrupted

# ERROR: Script failure!

Does anybody know how I can resolve this error??

Mr Wolf
20-07-2006, 10:34 AM
I had the same problem, read here: