Page 1 of 1

Unhandled exception in parser

Posted: 2006-03-02 16:37:11
by WeedDevil
Hi back with following problem:

I macro, script works well,.. after some time (totally random 1-20 hours)
i get "unhandled exception in parser"
is it some overflow prob?

Code: Select all

sub kind()
Var x,y
repeat
for x = 0 to 6000
for y = 0 to 4000
      uo.print(str(x)+","+str(y))
      uo.waittargettile(3291,x,y,0)
      wait(40)
      uo.useobject("xxx")
      wait(40)
next
next
until false
end sub


help appreciated,..
thx

Posted: 2006-03-02 22:20:43
by Mitya

Code: Select all

UO.waittargettile( TileNum, STR(mx), STR(my), STR(0) )

Posted: 2006-03-03 04:02:21
by WeedDevil
thx but didnt change anything,.. still works,... but then out of a sudden it scrashes with "Unhandled excpetion in parser"

Posted: 2006-03-03 22:10:09
by WeedDevil
yoko, could you hae a look at it please?

im getting some serious errors with it,. after some hours
"character doesnt exist... fatal error" and
"Unhandled exception in parser"

Posted: 2006-03-03 22:43:48
by Edred
this is a common problem of most scripts what work very long times. Script module of injection isn't very good thing.

ps: maybe, your problem is waittargettile. correct all pauses in your scripts, add block for analyse a 'save world' messages, add checklag function.

Posted: 2006-03-07 09:27:53
by SergeyVP
try that :

#in the beginning of the script place function

UO.Set("quiet","1")

#you wouldn`t see Injection text in client window
# by the command UO.Print("hello world")
# but script will work longer.