SRL Archive - RS3 Help

Color detection help


Trollcrank

2014-09-23 22:18:56

Edit:

PROBLEM SOLVED, if anyone can lock this thread or something that would be great.








I can't figure out a good detection method for the sawmills in the citadel next to the banker due to the changing presence of the sawmill and the same colors on the wooden wall. If anyone can help me with this I would appreciate it. The metal part on the sawmill is small and there are lots of player with a wide variety of overrides so those colors make it harder to detect the sawmill too.

pics:
http://imgur.com/3Wc8aOR,ji2aitL
http://imgur.com/rkfsZl8
http://imgur.com/469hKNb

Includes sawmill, citadel, and a mass amount of ppl.

The Mayor

2014-09-23 22:42:07

From: Trollcrank
I can't figure out a good detection method for the sawmills in the citadel next to the banker due to the changing presence of the sawmill and the same colors on the wooden wall. If anyone can help me with this I would appreciate it. The metal part on the sawmill is small and there are lots of player with a wide variety of overrides so those colors make it harder to detect the sawmill too.


Probably best to post a picture as IDK whet you are talking about :p

vvarfare

2014-09-24 00:55:48

He is talking about portable sawmills, I think this one would be kind of hard because players can walk in and then you have the players on top, so the colors dissapear.

Trollcrank

2014-09-24 07:46:52

From: The Mayor
Probably best to post a picture as IDK whet you are talking about :p


http://imgur.com/3Wc8aOR,ji2aitL
By the time you have the sawmill colors and tolerence, the colors match the wall. There is a lot of people too and a mass number of overrides, outfits, and of course colors.

The Mayor

2014-09-24 07:48:44

From: Trollcrank
http://imgur.com/3Wc8aOR,ji2aitL
By the time you have the sawmill colors and tolerence, the colors match the wall. There is a lot of people too and a mass number of overrides, outfits, and of course colors.


That picture tells me nothing about "all the people at the bank" :p

Trollcrank

2014-09-24 16:31:26

From: The Mayor
That picture tells me nothing about "all the people at the bank" :p


I'm saying that the sawmill is small and using a smaller detailed piece of it and getting the color from there doesn't work due to the amount of people. And using the colors of the sawmill doesn't work due to the wall being a similar brown. I would've posted a picture but the sawmills were in shantaypass and not the citadel at the time. I'll edit later with a better picture.

Edit:
http://imgur.com/rkfsZl8
http://imgur.com/469hKNb
http://imgur.com/w43wYKf

JUST look at all the colors. And the amount of people, it's just a swell time for color detection.

Lipcot

2014-09-24 17:20:18

From: Trollcrank
I'm saying that the sawmill is small and using a smaller detailed piece of it and getting the color from there doesn't work due to the amount of people. And using the colors of the sawmill doesn't work due to the wall being a similar brown. I would've posted a picture but the sawmills were in shantaypass and not the citadel at the time. I'll edit later with a better picture.

Edit:
http://imgur.com/rkfsZl8
http://imgur.com/469hKNb
http://imgur.com/w43wYKf

JUST look at all the colors. And the amount of people, it's just a swell time for color detection.


if the sawmill is placed always on the same spot you could make a searchbox around your character , and move the mouse around inside it until you find the mouseovertext you want, and store it in a variable so once its found, it knows its there for the whole script run.

Im not familiarized with how this things work though! they are always put on the same spot? if you left click even though there is a characer on top of it, it works? Do you have to walk/move to use it?

PD: your photos arent very helpful since you put the white square, just post how things are without so much zoom so we can understand

Trollcrank

2014-09-24 19:07:34

From: undorak7
if the sawmill is placed always on the same spot you could make a searchbox around your character , and move the mouse around inside it until you find the mouseovertext you want, and store it in a variable so once its found, it knows its there for the whole script run.

Im not familiarized with how this things work though! they are always put on the same spot? if you left click even though there is a characer on top of it, it works? Do you have to walk/move to use it?

PD: your photos arent very helpful since you put the white square, just post how things are without so much zoom so we can understand


well the script is run with max zoom in..

Im not familiarized with how this things work though! they are always put on the same spot? if you left click even though there is a characer on top of it, it works? Do you have to walk/move to use it?
theres google for such things but ill explain anyways.
they can be placed anywere a fire can be lit but typically they're placed near a bank. The sawmill is placed two blocks north of the citadel banker or north east of the banker. It changes due to the host(portable sawmill placer) sometimes :/ . left clicking works.

http://imgur.com/469hKNb

This photo shows where the sawmill is placed and the empty spaced south of the white block is another setting place that is sometimes used too.

The weird guy with a black cape and pink ponytail is the banker.
http://imgur.com/rkfsZl8

Trollcrank

2014-09-24 21:37:55

From: undorak7
if the sawmill is placed always on the same spot you could make a searchbox around your character , and move the mouse around inside it until you find the mouseovertext you want, and store it in a variable so once its found, it knows its there for the whole script run.


So I thought about it and that was a fantastically magical idea. I went ahead and made what you described and it runs without errors now. Unfortunately, I haven't gotten to test it yet and it might not work properly so stay tuned. Once again, thanks for the great idea; I couldn't have thought of that myself.

Edit: It doesn't work right now but I don't have time to fix it today. I guess I'll post the script part anyways:


procedure YouCantHide;
begin
clearDebug();
WriteLn('Searching for portable location, give it a second.');

begin
MouseOval(299,111,20,20,Mouse_Move); //N
if ismouseovertext(['awmill', 'Portable sa', 'mill', 'saw']) then
PortLocation := 1
else
Wait(RandomRange(800,2500));
end;

begin
MouseOval(199,198,20,20,Mouse_Move); //E
if ismouseovertext(['awmill', 'Portable sa', 'mill', 'saw']) then
PortLocation := 2
else
Wait(RandomRange(800,2500));
end;

begin
MouseOval(275,290,20,20,Mouse_Move); //S
if ismouseovertext(['awmill', 'Portable sa', 'mill', 'saw']) then
PortLocation := 3
else
Wait(RandomRange(800,2500));
end;

begin
MouseOval(183,178,20,20,Mouse_Move); //W
if ismouseovertext(['awmill', 'Portable sa', 'mill', 'saw']) then
PortLocation := 4
else
Wait(RandomRange(800,2500));
end;
end;

procedure PortablePosition;
begin
if not isLoggedIn() then
exit;

minimap.setAngle(MM_DIRECTION_NORTH);
mainScreen.setAngle(MS_ANGLE_HIGH);

Case PortLocation of //1=N 2=E 3=S 4=W
0:YouCantHide;

1:begin
PortableNorth;
exit;
end;

2:begin
PortableEast;
exit;
end;

3:begin
PortableSouth;
exit;
end;

4:begin
PortableWest;
exit;
end;
end;
end;

vanlacke

2014-09-25 01:12:45

Are those handles always visible? If so, just search for those colors and add some simple filters

Trollcrank

2014-09-25 16:16:19

From: vanlacke
Are those handles always visible? If so, just search for those colors and add some simple filters


I tried that but some people with overrides got in the way. It would detect them too. I used filters but no luck, anyways I'm going to keep try what the other guy said first. If anyone could check if the script part is good then let me know.

vanlacke

2014-09-25 17:20:57

From: Trollcrank
I tried that but some people with overrides got in the way. It would detect them too. I used filters but no luck, anyways I'm going to keep try what the other guy said first. If anyone could check if the script part is good then let me know.


Overrides? Does that mean it's not always visible?

Sorry, I've never seen this way of doing planks. Can I go to a clan citadel or whatever and check it out?

Trollcrank

2014-09-25 18:29:55

From: vanlacke
Overrides? Does that mean it's not always visible?

Sorry, I've never seen this way of doing planks. Can I go to a clan citadel or whatever and check it out?


Overrides=solomon store cosmetic overrides.(outfits with no stats, they look cool though)

The handles are always visible but with all the customs and the large amount of people it wasn't very practical. I already tried it before posting this thread.

Anyways, I made something that works now :D . Thanks everyone. Special thanks to undorak7 for the idea that worked.

Lipcot

2014-09-25 21:54:57

From: Trollcrank
Overrides=solomon store cosmetic overrides.(outfits with no stats, they look cool though)

The handles are always visible but with all the customs and the large amount of people it wasn't very practical. I already tried it before posting this thread.

Anyways, I made something that works now :D . Thanks everyone. Special thanks to undorak7 for the idea that worked.


im glad you got it working!