Yoko: Unhanled exception in parser error

General Injection issues

Moderators: Murderator+, Murderator

Post Reply
Drakull
Posts: 36
Joined: 2004-07-01 06:02:22

Yoko: Unhanled exception in parser error

Post by Drakull »

Hi, Yoko, first thank you for the wonderful work you're doing with this making it the best tool available to play UO.
Let's get into the details :). I'm playing with an AOS installation on a RunUo server shard. The client I'm using is v4.0.0c. I've created a pretty complex script that's using several functions, returning values from some of them to the others and that basically what's doing is checking the inventory to make sure you've pickaxes enough, creating them and creating tinkering tools if needed, recalling to a spot to mine, mine the ores, recall to the bank to drop the ores and keep recalling choosing the following rune from a set of runebooks. You can have on it as many runebooks as you want to setup (just needing the runebook id and the number of runes inside it) and the same thing choosing banks where to recall (in case some of the positions to recall are blocked :) ).
I've installed injection from scratch on this computer, as it was a new one. I installed it with the script.dll version 40?.? (wheel u+), that is dated August 16th 2004. When running my script, it starts and works fine with no error, but after a while working (the moment is really random and can be 5 minutes or can be 2 hours), it stops with an error from injection that says "Unhandled exception in parser"). After that, If I try to run any script or keep playing again the client will just crash, and I need to re-start it before continuing.
I read that some people was having similar problems and you recommended them to update to the latest version, so I checked the website for it and installed the new script.dll version on my machine
(YokoInjection 40?.? (AoP maps2) ), but the problem still remains the same. After reviewing all my script several times and finding no errors that could cause that problem (checked all the array indexes and all functions) I checked the forum again and saw that some other people seems to have a similar problem. Also, I spoke with a friend that plays on the same shard and it seems that his script that was previously working find is also giving him the same errors using this new version, so I tried installing the old version I was using on my old computer (YokoInjection 312.19 (+reconnect) Base 0.3.30.4) and tried the same script without modifying a line (the same one that's breaking with the latest versions in at maximum 2 hours). Well... it has been running for most of the day without giving any error at all, so it seems that the problem is not the script itself but the script.dll (as with this older version seems to be totally stable).

Please, let me know if you need other kind of information to help you solving this problem, and, if you need so, I'll also send you my script so you can test it yourself and see what I'm talking about (I didn't install any software debugger on this computer so I cannot debug the error to find where is breaking and sending you the information either).

On another question, I've been looking at the way EasyUO handles the necro/paladin spells and it seems pretty straight forward, and it's something that i really miss on these latest versions of Injection. Will you include the necro/chivalry spells casting on a future version too?

Thanks a lot,
Drakull
Drakull
Posts: 36
Joined: 2004-07-01 06:02:22

Post by Drakull »

UPDATE: The script has worked during all night with no errors at all using the old script.dll version. Unfortunatelly other new features I was using on other scripts are not working on it, so I'll have to "flip" between versions depending on what I'm trying to do... :(
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

Thank you of quite full explanation, thorough testing and modest requests.
Alas i do not know exactly what is a problem with random exceptions but i hope that it will be intently examined in next week.
Remind me please from next week if no progress posted here.
Drakull
Posts: 36
Joined: 2004-07-01 06:02:22

Post by Drakull »

I downloaded and instaled the latest version to keep testing this problem and it looks like crashing sometimes when opening a gump or a container (I don't know if that will help you).
Does any function on this new versions keep variables on memory that are not "cleaned up" after used ( Like keeping track of the gumps or something like that) that may cause that the "stack" gets overflooded?
Badza
Posts: 19
Joined: 2004-06-19 10:49:57
Contact:

Post by Badza »

Still not solved :( After 20minutes - 2 hours of runing script client crashed :(
Prehistoric versions are stable (script.dll) :(
ziemni
Posts: 22
Joined: 2004-09-07 22:36:09
Location: Poland

Post by ziemni »

Badza wrote:Still not solved :( After 20minutes - 2 hours of runing script client crashed :(
Prehistoric versions are stable (script.dll) :(


I had the same with my mining script ;) But once it worked for 16 hours without crash. It seems to be quite random.
Askaneli
Sphere expert
Posts: 1143
Joined: 2004-10-01 08:27:38
Location: Уфа

Post by Askaneli »

Как я понял, всем плоха в этой жизни.
Я мурыжил 1 скрипт до невозможности, задержки статически и динамические ставил. И всё таки добился его стабильной работы.
И дело было вовсе не в задержках.
Причём скорости на грани фаст лута. Это скрипт на раскладку карт по координатам.
Как я понял, надо просто всё продумывать и доводить до ума. Тада краша не будет.
Сделал дело - флуди смело !!!
Badza
Posts: 19
Joined: 2004-06-19 10:49:57
Contact:

Post by Badza »

Askaneli - online translate by http://www.online-translator.com wrote:As I have understood, all is bad in this life. I detained 1 script up to impossibility, delays statically and dynamic put. And all taki has achieved its stable work. And business was at all in delays. And speeds on the verge of fast luta. It is a script on an allocation of cards on coordinates. As I have understood, it is necessary to think over and lead up all to mind simply. Tada krasha will not be.
_________________
HAS MADE BUSINESS - FLUDI SAFELY!!!


This topic is in english, pls continue in english.
Post Reply