SRL Archive - SRL Bugs

Uptext?


Camaro'

2010-08-18 17:54:23

if (isuptextMultiCustom(['orta', 'nter', 'nte', 'ortal', 'rtal', 'rta'])) then   

Alot of the time it works, but sometimes it still seems to fail.

Uptext: 'Enter Portal / 2 more options'

The word portal is in blue

i luffs yeww

2010-08-18 17:57:18

Color is irrelevant.

Rich

2010-08-18 17:58:21

What do you mean it fails?

Camaro'

2010-08-18 17:59:26

From: R1ch
What do you mean it fails?


Fails means the mouse moves over the portal, the uptext is visible, and it just doesn't notice it is there.

i luffs yeww

2010-08-18 18:05:06

Writeln(GetUpText);

Camaro'

2010-08-18 18:06:59

Eter Po^al / 2 more options

Shuttleu

2010-08-18 18:10:04

[QUOTE=Camaro';731328]Eter Po^al / 2 more options[/QUOTE]

i had this problem too when getting the uptext of raw cowhides in the bank at alkharid.

try rotating the camera and see if that helps

~shut

WT-Fakawi

2010-08-18 18:27:24

[QUOTE=Camaro';731328]Eter Po^al / 2 more options[/QUOTE]

Maybe only use "ter Po" for the uptext. Or maybe the surroundings of the uptext are just too white. As shut says: Try tilitng the cam down.

Sex

2010-08-18 18:31:34

From: WT-Fakawi
Maybe only use "ter Po" for the uptext. Or maybe the surroundings of the uptext are just too white. As shut says: Try tilitng the cam down.
If he reruns the GetUpText it will return a different result. Tilt the camera in a different position so that the uptext is more visible. It should work then.

Wizzup?

2010-08-18 18:34:50

From: Camaro
)) then

Alot of the time it works, but sometimes it still seems to fail.

Uptext: 'Enter Portal / 2 more options'

The word portal is in blue


Screenshot please? :)
Also, you can try http://simba.villavu.com/bin/Tools/OCRTests/ and see if it makes you any wiser.

Camaro'

2010-08-18 19:47:21

From: Wizzup?
Screenshot please? :)
Also, you can try http://simba.villavu.com/bin/Tools/OCRTests/ and see if it makes you any wiser.


Going to try all your suggestions + get you a screenshot.


You guys were right, so do you guys think I should create a BMP of the uptext?

Blumblebee

2010-08-18 20:18:25

use waitOptionMulti I find it helps out a lot.

Illkillutill

2010-08-18 22:17:28

If all else fails, right click and choose option :p.

Heavenguard

2010-08-18 22:27:17

Countcol :O? lol :P Just throwin ideas in.


var
UpTextCheck : Integer;
begin
UpTextCheck := {The Amount of colors for that uptext}
MMouse(X, Y, 4, 4);
Wait(RandomRange(800, 1500));
if CountColor({UptextColor}, {TheBoundsofTheUptext}) = UpTextCheck then
{rightclick w/e :P}
end;

WT-Fakawi

2010-08-19 04:49:26

[QUOTE=Camaro';731349] You guys were right, so do you guys think I should create a BMP of the uptext?[/QUOTE]

Yup. I am very in favour of bitmaps. Take a bitmap or a slice of the blue[COLOR=Blue][B] L[/B][/COLOR] for instance and find it with a bitmaptolerance. I did the same with my Masterfarmer and the safecracker. Works all the time!

Wizzup?

2010-08-19 06:45:16

[QUOTE=Camaro';731349]Going to try all your suggestions + get you a screenshot.

[IMG]http://img94.imageshack.us/img94/5614/eterptal.png[/IMG]
[IMG]http://img815.imageshack.us/img815/5043/works.png[/IMG]

You guys were right, so do you guys think I should create a BMP of the uptext?[/QUOTE]

Thanks. Did you try the OCR Test application?

CountColor works OK in these occasions, but I may just be able to improve the Simba uptext algorithm so it will identify these too, which is by far the most favourable option. It would be nice if you could file a bug? :)

PS: It seems like using shadow for the uptext here would work quite well. Perhaps I can add a option to Simba to temporarily change to Shadow uptext rather than normal. (Include this in the bug report please?)
You can also test Shadow uptext with the OCR Test app.

Camaro'

2010-08-19 12:05:05

From: WT-Fakawi
Yup. I am very in favour of bitmaps. Take a bitmap or a slice of the blue L for instance and find it with a bitmaptolerance. I did the same with my Masterfarmer and the safecracker. Works all the time!


Will try.

From: Wizzup?
Thanks. Did you try the OCR Test application?

CountColor works OK in these occasions, but I may just be able to improve the Simba uptext algorithm so it will identify these too, which is by far the most favourable option. It would be nice if you could file a bug? :)

PS: It seems like using shadow for the uptext here would work quite well. Perhaps I can add a option to Simba to temporarily change to Shadow uptext rather than normal. (Include this in the bug report please?)
You can also test Shadow uptext with the OCR Test app.


Done, and I downloaded it but then something came up and I forgot to run :).. Will run it now.

Kasi

2010-08-19 12:42:38

this happend to me i think it's cus of the spacing i think cus it finds the text if it's just one letter or you could try all letters but just searching for them seperatly

Wizzup?

2010-08-19 13:09:45

From: pur3b100d
this happend to me i think it's cus of the spacing i think cus it finds the text if it's just one letter or you could try all letters but just searching for them seperatly


The problem here is that the white text is not recognized properly (the background is seen as white too), as the white colour ``leaks'' through the characters. Example (with diff background) here:


Above red text is the final shadow result, above the final shadow result is the final non-shadow result.
The OCR filters away a lot of the wrong colours, by using analysing some attributes of the text. Detailed explanation is in the code, https://git.villavu.com/?p=simba.git;a=blob;f=Units/MMLCore/ocr.pas

But it is true that the 'rt' have no spacing at all. (At times, anyway)

Kasi

2010-08-19 13:33:39

they seem to work fine for me if i try checking for one letter at a time so thats whyy i thought it was the spacing =S

Wizzup?

2010-08-19 13:35:08

From: pur3b100d
they seem to work fine for me if i try checking for one letter at a time so thats whyy i thought it was the spacing =S


Hm. You may be right after all. I didn't see it picking up that much characters. Still, the missing 'n' is probably because it is fused with other chars.

Camaro'

2010-08-19 13:50:13

From: Wizzup?
Hm. You may be right after all. I didn't see it picking up that much characters. Still, the missing 'n' is probably because it is fused with other chars.


I don't think its the spacing, cause with a simple rotate of my camera, it worked. (As shown above)

Kasi

2010-08-19 13:53:35

[QUOTE=Camaro';731483]I don't think its the spacing, cause with a simple rotate of my camera, it worked. (As shown above)

the spacing changes with the cam rotation i also noticed this when i tryed it
this would also explain it only working half the time

Shuttleu

2010-08-19 16:51:56

From: Wizzup?
Screenshot please? :)
Also, you can try http://simba.villavu.com/bin/Tools/OCRTests/ and see if it makes you any wiser.


tad bit offtopic i know, but when i run that it tells me that 100.bmp doesnt exist when i know it does


~shut

Wizzup?

2010-08-19 17:22:28

Ah, the OCR tools are probably a bit outdated. I'll update them when I get home. (That's when I may get time to work on this as well)

Camaro'

2010-08-19 21:40:05

From: Wizzup?
Ah, the OCR tools are probably a bit outdated. I'll update them when I get home. (That's when I may get time to work on this as well)


Ok, for now, a bitmap should work just fine. Thanks wizzy for your help.

Wizzup?

2010-09-04 18:32:09

I'm hoping to work on this soon.

Shuttleu

2010-09-04 19:05:09

From: Wizzup?
I'm hoping to work on this soon.

the OCRTools or the uptext in simba?

~shut

Wizzup?

2010-09-05 18:43:09

From: Shuttleu
the OCRTools or the uptext in simba?

~shut


Both.