SRL Archive - SRL Bugs

Uptexts Broken?


Brandon

2012-02-27 16:31:19

Please see the official uptext thread.


No matter how much I run:

writeln(WaitUptextMulti(['Summoning', 'mmoning', 'monin pot', 'ummon', 'ning po'], 1000))..

It always writes False.. Doesn't matter how long I put the wait timer..

Results When it does get the uptext:

Bur!yippc!1ch <— Bunyip pouch
Praye- po!:ion k4 <— Prayer potion
Swalloy, y,hole scroll <— Swallow whole scroll

Withdraw-1 Cas!:le wa!-s brace (3) / 7 more options
Withdraw-1 Crinrison charm / 7 more options
Withdraw-1 Sunr!ns!Wnin!g potion (4) / 7 more options
Withdraw-1 Sunr!ns!Wnin!g potion (d) / 7 more options
. . .
Withdraw-1 Roclr!:ail / .7 more options
Withdraw-1 Roclr!:ail / .7 more options

Any Item I hover over, the uptext is completely broken for it.. The ones posted above are just a couple examples..

kingarabian

2012-02-27 16:34:03

UpText works perfectly fine for me. Try something else other than WaitUptextMulti?

Mat

2012-02-27 16:35:00

I've been having similar problems with this and ChooseOption :/

Jokester

2012-02-27 16:35:50

Anti-Bot maybe?

kingarabian

2012-02-27 16:36:49

At times ChooseOption would not work at all for me as well.

Brandon

2012-02-27 16:37:23

From: kingarabian
UpText works perfectly fine for me. Try something else other than WaitUptextMulti?


Already did..

Withdraw-1 Void nr!age helnn / 7 more options
Withdraw-1 Praye!- po!:ion (4) / 7 more options

Withdraw-1 Sunr.nr!onin!g potion k4I / 7 more options

Dr*gon spe*r <– Dragon Spear
r*ck*!l <– Rocktail

WaitUptext
GetUptext
IsUptext.. All of them print like that.. Recently I got some SRL Update so Iunno :S

kingarabian

2012-02-27 16:41:29

Okay wow. Well ima thoroughly test out my script, and see what I get.

Jokester

2012-02-27 16:44:02

Does it have anything to do with the font? Maybe its just the SS you have on the first post but I think it looks a little different…

Brandon

2012-02-27 16:45:55

From: FallenSabre
Does it have anything to do with the font? Maybe its just the SS you have on the first post but I looks a little different…


Can say it can't just be me :S I just deleted the Settings.XML.. Removed the Fonts folder.

Restarted Simba. It free'd the fonts and downloaded new ones.. After that, restart simba.. re-enabled all extensions and plugins..

Ran it again.. bam bad uptexts.. U can try it at Zanaris bank and see for yourself.

Jokester

2012-02-27 16:49:09

From: ggzz
Can say it can't just be me :S I just deleted the Settings.XML.. Removed the Fonts folder.

Restarted Simba. It free'd the fonts and downloaded new ones.. After that, restart simba.. re-enabled all extensions and plugins..

Ran it again.. bam bad uptexts.. U can try it at Zanaris bank and see for yourself.


Jagex maybe changed the font? As their "destroy all bots nuke update"? I read a post saying color will be taken down too. Could this be part of it?

kingarabian

2012-02-27 16:50:18

It's working for me O_o.

Brandon

2012-02-27 16:53:09

From: kingarabian
It's working for me O_o.


If your members.. Go To Zanaris.. Open the bank.. Have any of the DTM items on screen and run this which doesn't work at all.. The uptexts return bad:


program TestingUptexts;
{$DEFINE SMART}
{$I SRL/SRL.Simba}

Function FindItems: boolean;
var
X, Y, DTM: Integer;
begin
//Pouch
//DTM := DTMFromString('m1gAAAHic42JgYDjIxMBwjAlC70PCIP4RKD4JxJyMDAxcQMwLxSA+GxIGiXEAcWFJPENxeSKDv78tGOcXxzIUlMQxFJUlMGSkhYDFyqqSGbiAdhODGYnECAAAECwT5g==');

//Prayer
//DTM:= DTMFromString('mQwAAAHicY2ZgYJjKyMAwC4inAXEOkF8ExFVAbLmzm0GrNRnIYmJgB5IwzIiEgQAAB8EFzQ==');

//Scrolls
//DTM:= DTMFromString('mWAAAAHicY2FgYPjAyMDwB4h/AvF7IP4MFHsHxH+A+DsQe3oYAEkmMI6Ims/ADmQhY0Y0DAIAeJ4J5w==');

//SummoningPotion
DTM:= DTMFromString('mWAAAAHicY2FgYHBigmBXIPYEYn1GBgYrILaE4vz8Ega5a3cZZC/dBKpmYkgBkuxImBENgwAAgewHaA==');

Result:= FindDTM(DTM, X, Y, MBX1, MBY1, MBX2, MBY2);
if Result then
MMouse(X, Y, 0, 0);
wait(1000);
FreeDTM(DTM);
Writeln(GetUptext);
end;

begin
Smart_Server := 72;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;

SetupSRL;
ClearDebug;
FindItems;
end.

Coh3n

2012-02-27 17:19:38

It has nothing to do with the fonts or the functions you're using. It's Simba's OCR uptext filters. I think, the filters have certain colors (the colors of the text) with a certain tolerance, and sometimes background colors can interfere with the filter. That's why it'll work perfectly in some areas, but results in gibberish in other areas.

Please see the official uptext thread.

E: Closing this. Please continue discussion in the official thread.