SRL Archive - SRL Bugs

is rightclick option memnu broke?


Scaper

2012-01-18 20:02:39

Imunsure since lates update today when rightclicking say ring duel to select cwars it wont it will just right click and miss it as well as pouchs in invent etc to fill

anyone else experincing this>?

Coh3n

2012-01-18 21:55:52

This was fixed several days ago, make sure you have the updated SRL.

Scaper

2012-01-18 22:06:52

Yea everything was working earlier? then I updated and now wont empty my pouchs, or tele back to cwars? just right clicks and doesnt select option.

Coh3n

2012-01-18 22:39:59

Debug it. I've been using ChooseOption for the last few days and I've had no problems.

Scaper

2012-01-18 22:47:16

Yea strange it was working then when i reploaded client for client token there was an SRL update and now it wont tele or empty fill or withdraww ess for that matter, ill try debugging but iv tried messing round with script im gunna un install simba etc and then see if problem persists.

Narcle

2012-01-18 22:49:49

Screen shot of ChooseOption with ring when it fails?

Brandon

2012-01-18 23:03:19

It does this as well with the Familiars.. Lets say the first option is "Interact" and I put ChooseOption('') then it will randomly choose the right option.. meaning that sometimes it will right click and then move the mouse to MSBox.. then try again.. sometimes it will actually choose the option though.

This is what is happening with the dueling rings.. It's that it will right click but will NOT choose.. It's a hit and miss sorta thing.

Coh3n

2012-01-18 23:09:28

Can you guys replace your ChooseOptionMultiEx with this version? It debugs the options. Then we can see what Simba's seeing as opposed to what's actually there.

function ChooseOptionMultiEx(Texts: TStringArray; TextType: String; Action: fnct_ActionOptions): Boolean;
var
B: TBox;
i, H, ii, L: Integer;
T: TPoint;
Options: array of TOptions;
begin
Result := False;
Options := GetChooseOptions(TextType);
if (Length(Options) < 1) then
Exit;
H := High(Options);

for i := 0 to h do
writeln(options[i].str);

L := High(Texts);
for i := 0 To L do
begin
for ii := 0 to H do
If Pos(Texts[i], Options[ii].Str) > 0 Then
begin
Result := True;
B := Options[ii].Bounds;
GetMousePos(T.x, T.y);
case Action of
ClickLeft: if PointInBox(T, B) then
ClickMouse2(true)
else
MouseBoxEx(B.x1 + 5, B.Y1, B.x2 - 5, B.Y1 + 5,5, 1);
Move: if not PointInBox(T, B) then
MouseBoxEx(B.x1 + 5, B.Y1, B.x2 - 5, B.Y1 + 5,5, 3);
Nothing: begin end;
else
srl_warn('ChooseOptionMultiEx', 'ClickRight not a valid click for RS menus!', warn_AllVersions);
end;
Exit;
end;
end;
B := IntToBox(Options[0].Bounds.X1, Options[0].Bounds.Y1,
Options[H].Bounds.X2, Options[H].Bounds.Y2);//to mmouse away
if Action <> Nothing then
begin
MMouse(Max(B.X1 - 50, 0), Max(B.Y1 - 50, 0), 40, B.Y2 - B.Y1);
Wait(200 + Random(100));
end;
end;

Brandon

2012-01-18 23:18:17


Face NoMh //face north..
Cancel
Int%@t //interact..
Cast //Cast Goad..
Attack
Renew Familiar
Take BoB
Dismiss
Call Follower
Follower Details
Select leM-click option //select left-click option..
Cancel
Its supposed to say:


Will let it keep running and update that report above in a sec. Oh and sometimes it doesn't print anything at all.. for the duelling ring, it prints absolutely nothing.. just stands there right clicking.. For the follower, it prints what is above..

Coh3n

2012-01-18 23:20:20

^ Please include what it's supposed to say as well. Looks like some characters need updating.

Fatigue

2012-01-19 02:05:57

From: Coh3n
Can you guys replace your ChooseOptionMultiEx with this version? It debugs the options. Then we can see what Simba's seeing as opposed to what's actually there.


I tried this and ran the gatestone script, and it output this before the script logs me out:

/ ^
?T
t
/ ^
?T
t
/ ^
?T
t
/ ^
?T
t
/ ^
?T
t
/ ^
?T
t
/ ^
?T
t
/ ^
?T
t
/ ^
?T
t
/ ^
?T
t
/ ^
?T
t

The options are supposed to be:

Cast Create Gatestone
Quick-cast Create Gatestone
Cancel

Yanhua

2012-01-19 02:29:20

Yes, I am experiencing the same problem as ggzz. ChooseOption or WaitOption won't work for me on the duelling ring either.

Please look into this, I believe there is some kind of font error or colour that is causing it.

For now, I've implemented my own fix so that this works for me, using GetMousePos and then adding the the Y axis.

Er1k

2012-01-19 02:34:16

Much of the spellbook is also broken by this.


~
./ ?T
/ ^

is supposed to be


Cast
Cancel

Yanhua, do you mean - Right click then move mouse to relative y offset then click?

Coh3n

2012-01-19 03:17:52

That's odd. What functions are you guys using? I'm using waitUptext right now in my superheater and having no problems. Did you guys download different fonts from somewhere?

Er1k

2012-01-19 03:28:02

I think waitUptext is working fine. We're having problems with the ChooseOption series functions. I did not modify my SRL includes except adding the debug print suggested by you.

E: It breaks particularly often when right-clicking and trying to chooseoption in the spellbook. Don't know why.

Yanhua

2012-01-19 03:30:46

From: nosaj.421
Much of the spellbook is also broken by this.


~
./ ?T
/ ^

is supposed to be


Cast
Cancel

Yanhua, do you mean - Right click then move mouse to relative y offset then click?


Since the option I choose is always the same, I do.


GetMousePos(X, Y);
Mouse(X, Y+40, 5, 5, Mouse_left);

From: Coh3n
That's odd. What functions are you guys using? I'm using waitUptext right now in my superheater and having no problems. Did you guys download different fonts from somewhere?


ChooseOption doesn't work for the duel ring for some reason.

Narcle

2012-01-19 04:40:11

Its finding a similar color in magic tab. I have an idea how to fix it, will push after.

Yanhua

2012-01-19 04:53:59

From: Narcle
Its finding a similar color in magic tab. I have an idea how to fix it, will push after.


Do you mean the equipment tab?

Anyway, sweet! Glad you've got a solution to fixing this. I hope you push it through soon. :)

Shuttleu

2012-01-19 05:40:32

From: Narcle
Its finding a similar color in magic tab. I have an idea how to fix it, will push after.


was this after me nagging you to change the colour yesterday? :s

if so, sorry

~shut

Narcle

2012-01-19 05:47:47

From: Shuttleu
was this after me nagging you to change the colour yesterday? :s

if so, sorry

~shut


Yes and it was done in a hurry :p

I found better colors and added additional fail safes to it. Should see SRL update on the hour.

Flight

2012-01-19 06:35:54

From: Narcle
Yes and it was done in a hurry :p

I found better colors and added additional fail safes to it. Should see SRL update on the hour.


*Waiting for an hour*

Yeah I can go along with this "bug". Choosing an option anywhere else works just fine, but it absolutely will not find options when interacting with the ring slot.

Narcle

2012-01-19 06:45:27

From: Flight
*Waiting for an hour*

Yeah I can go along with this "bug". Choosing an option anywhere else works just fine, but it absolutely will not find options when interacting with the ring slot.


Remove Ring of duelling (7
Duel Arena Ring of duelling (7
Castle Wars Ring of duelling (7)
Mobilising Armies Ring of duelling (7
Fist of Guthix Ring of duelling (7
Examine Ring of duelling (7
Cancel

Idk why it but it doesn't like )

Also I noted that sometimes 'ft' and 'rt' are actually stuck together and it mistakes them as a M because there's no space between them.

Flight

2012-01-19 06:48:51

What SRL rev # is that, Narcle?

Yanhua

2012-01-19 06:49:23

From: Narcle
Remove Ring of duelling (7
Duel Arena Ring of duelling (7
Castle Wars Ring of duelling (7)
Mobilising Armies Ring of duelling (7
Fist of Guthix Ring of duelling (7
Examine Ring of duelling (7
Cancel

Idk why it but it doesn't like )

Also I noted that sometimes 'ft' and 'rt' are actually stuck together and it mistakes them as a M because there's no space between them.


Maybe they changed the style of the ()?

Have you tried to make a new bitmap for them?

Narcle

2012-01-19 06:51:20

Its because they "stick" similar to ft and rt.

Scaper

2012-01-19 09:57:58

wont even find upText now or right click anything :/

Narcle

2012-01-19 14:18:48

From: Scaper
wont even find upText now or right click anything :/


If your going to post like this I'm not going to help anymore… You need to say what its not finding, where its not finding it etc. and/or a screen shot would be best…

And why is UpText related to ChooseOption?

Yanhua

2012-01-19 16:51:38

Narcle, have you pushed the update for the duelling ring yet?