Page 1 of 1

Unhandled Exception in parser...

Posted: 2007-01-08 07:03:40
by Umuri
Sorry for the trouble, but this script only runs a couple dozen iterations, usually no more then a hundred or so, then gives an "unhandled exception in parser". If I click ok then try to do more actions in the client, it soon freezes and gives the injection "wait 5 seconds dialogue. However, I get this same error on a lot of other scripts I have. Is there any way to see if it's something about injection or the client causing this, or how can i fix it?

The script in question is this, although I don't think it matters:

Code: Select all

sub itemfinder()
VAR hexnum
VAR num
var i
var BackP = 0x4000D00E  # ID of your backpack, to cancel targetting
var itemName
var itemTemp
uo.textopen()
uo.textclear()
UO.DeleteJournal()
# for i=1 to 65535  This is how it should be
for i=12288 to 65535
num = uo.Int2Hex(i)
hexnum=num[2]+num[3]+num[4]+num[5]
uo.waittargetobject(BackP)
UO.Say(".add " + hexnum)
UO.DeleteJournal()
while not UO.Injournal("would you like to place") and not UO.Injournal("a valid command")
wait(200)
wend
wait(500) # included to cut down on spam filter
if UO.Injournal("would you like to place") then
itemTemp = uo.journal(uo.injournal("would you like to place")-1)
itemName = mid(itemTemp,34,len(itemTemp)-35)
uo.textprint("Item Number " + hexnum + " is: " + itemName)
end if
if UO.Injournal("a valid command") then
uo.textprint("Item Number " + hexnum + " does not exist. ***********")
end if
next


end sub

Posted: 2007-01-08 10:55:41
by Nmy
i guess too many items and injection normaly crashes :lol: ya know you can try the same thing but try to add items to some container in ur bank just close it and .add everything... let me know...

Posted: 2007-01-08 12:33:49
by Umuri
This script doesn't actually add the items. It adds, waits for the cursor to come up, then cancels. Then works from what the dialogue is for the add cursor to determine what the item is.

I really don't think this is script dependent, as sometimes it crashes 20 in, sometimes 200 in, and it happens on other scripts, it just seems to happen when i repeat a script a lot. Yoko injection 505.18 VeNdOr, script parser version: 0.3. Yoko build 212.11. Any updates since then?

Posted: 2007-01-08 19:38:21
by dmitrykit
If you wanna forget for "unhandled exception in parser", use Pinject project dll. you can get it there: http://pinject.darukuo.ru.
But you need to know other language: PERL.

Posted: 2007-01-11 15:58:44
by Umuri
So this is a bug with the parser injection uses and there is no way to fix it without switching? Not even an ugly workaround I could do?