SRL Archive - News and General

RS is a B****d to script in


Shuttleu

2008-10-22 16:18:24

dont expect scripting in rs to be as easy as it was
everytime you get a co-ordinate using the color picker in scar the client bloody changes canvas and so scar looses focus therefore meaning you have to select the client before you clickon a color
this is really annoying wen you are creating a script from scratch and you need all the colors and co-ordinates
in the last minuite i have had to retarget the client about 10-20 times

i think the only way to stop this is to make the scripts in unsigned java

~shut

EDIT: i just tried on insigned java and it makes no differance :(

noodlesalan

2008-10-22 16:30:36

Hmm.

So it's changing colors? Runescape is?

That sucks, just another one of those updates to piss off macroers…

BlackThursday

2008-10-22 16:36:16

Why not just take a screenshot of your screen and pick the colors from there?

NiCbaZ

2008-10-22 16:38:19

No runescape allways changed colors…

MylesMadness

2008-10-22 16:40:07

Oh fuck. Its true

NiCbaZ

2008-10-22 16:44:26

It really that big of a matter, i made a guild mier with it like that not 2 annoyoing.

P1nky

2008-10-22 16:45:41

its been like this?

trees change colors always

what about use scarscape? to start scripting

and other way is Reflection, though we still want color base.

Shuttleu

2008-10-22 16:52:19

i dont mean the colors change during script making but scar looses focus everytime you pick a color which means everytime you mant to pick a colour you have t otarget the client again

~shut

noodlesalan

2008-10-22 16:57:38

From: Shuttleu
i dont mean the colors change during script making but scar looses focus everytime you pick a color which means everytime you mant to pick a colour you have t otarget the client again

~shut


Can you change the tolerance? I'm guessing this invloves your Tut Island Runner?

Heavenzeyez1

2008-10-22 17:00:19

From: Shuttleu
i dont mean the colors change during script making but scar looses focus everytime you pick a color which means everytime you mant to pick a colour you have t otarget the client again

~shut


Hasn't it always been like that?
Well, then I was stupid and re-targeted it all over again with no reason. -.-
Not that hard, too.
~Eerik~

noidea

2008-10-22 17:32:02

So it changes colour when the client re-canvas'?

Narcle

2008-10-22 17:36:46

It use to do this before. Now it just does it more…

Nava2

2008-10-22 17:47:27

Hmm, I will write a quick script to fix this. Bullzeye did it.

Shuttleu

2008-10-22 17:50:02

From: noidea
So it changes colour when the client re-canvas'?

no the colours stay the same scar just looses focus
From: Narcle
It use to do this before. Now it just does it more…

did it?
i never noticed it before :/
From: Nava2
Hmm, I will write a quick script to fix this. Bullzeye did it.

ok well if it works then tysm :D

~shut

Nava2

2008-10-23 19:23:41

{*******************************************************************************
procedure ResetRS;
By: RSN/Nava2
Description: Finds RS Window and sets a timer to repeat every one second.
*******************************************************************************}

procedure ResetRS;
begin
Result := FindWindowBySize(766, 504);
SetTimeOut(1, 'ResetRS');
end;

Call it at the begining of a script. It SHOULD find it every one second. Haven't tested. Sorry.

noidea

2008-10-23 20:47:47

Would that work with SMART?

Jethr0x

2008-10-23 23:05:07

Isnt it time to move on from colors and coordinates? I mean, isnt Reflection-type things more efficient?

t3hl33tn00b

2008-10-24 01:46:36

From: Jethr0x
Isnt it time to move on from colors and coordinates? I mean, isnt Reflection-type things more efficient?


we moved from coordinates to colors, reflection is tiles

Jethr0x

2008-10-24 20:40:51

like i said… isnt it time to just move onto tiles… form something with freddy… put smart w\ scar.. add reflection to srl.. its pretty much needed now.

noidea

2008-10-24 20:58:28

I'm fine with staying with Colour…

Daniel

2008-10-24 23:15:32

From: Jethr0x
like i said… isnt it time to just move onto tiles… form something with freddy… put smart w\ scar.. add reflection to srl.. its pretty much needed now.

No, reflection is too unstable in these stages, and colour is still perfectly working. Big whoop if colour picking isn't as good as before! We can still do, even if we print screen and pick the colours from paint..

TViYH

2008-10-25 21:50:26

The reason it does this is because the RuneScape Java has a new "paint/destroy" function in it.

It paints the canvas, then destroys it once it loses focus.

Correct me if I'm wrong.

firefoxx

2008-10-27 02:56:12

I think this is the reason why I cant get any scripts work anymore, keeps giving canvas errors. something doesnt work in srl/scar I guess

Est Mortum

2008-10-27 04:44:05

Hmm, this could be the source of my problems as well. I'm going to go ahead and use the color picker from paint and see how it works. Thanks for the tip.:sasmokin: