SRL Archive - SRL Bugs

IsUpText problem


Fwd Motion

2012-02-04 14:57:39

I'm not sure why its happening, but I've noticed (in two of my scripts) that when using this:
if (IsUpText(whatever)) then
...

It frequently doesn't read the uptext at all. I even tried moving the mouse over the item, waiting for 10 seconds then try to get the uptext, but it somehow fails.

Not sure why, I haven't looked into it much.

EDIT:

After some more testing I decided the best way to get the problem was to use this:

WriteLn(GetUpText);

After using this, I ran my script for about 5 minutes or so and, strangely, here's the output that I got:

Withdraw-1 Swanr!p [oad./ 7 more options
Out Of SecItem
Successfully executed.


Rather than this:
Withdraw-1 Swamp toad./ 7 more options
Withdraw-1 Swamp toad./ 7 more options
Out Of SecItem
Successfully executed.

Narcle

2012-02-04 15:36:42

Just change the text your search for to one that you know it can find successfully. UpText is always work in progress as the color changes can be same (or damn near the same) as background sometimes. (so its mis-read sometimes)

Also I would use WaitUpText not IsUpText.

Fwd Motion

2012-02-04 15:50:21

Well the problem isn't what I'm searching for or how, its the fact that the output is incorrect.

Its showing "Swanr!p [oad" rather than "Swamp Toad"

If it has something to do with the background, maybe I could just have the camera rotate some if it has trouble finding it the word.

Narcle

2012-02-04 15:52:09

This is known, Wizzup made a official UpText thread for this.

Fwd Motion

2012-02-05 00:45:30

From: Narcle
This is known, Wizzup made a official UpText thread for this.


I wasn't aware, thank you!