SRL Archive - SRL Archives

Autocolor.scar


Drakan

2008-05-18 10:22:40

Autocolor.scar really needs to be updated. Dirt road, water, stone color, and i think 1 more dont work anymore :S

Cazax

2008-05-18 11:48:03

You can help tarajunky bringing him the colors(go to a world, pick the color, wait for Loading screen, pick it again, change the world…).

Sir R. M8gic1an

2008-05-18 14:45:51

water still works in draynor at least. And i believe water is the same color everywhere?

~RM

king vash

2008-05-18 17:00:25

I updated Rock Color here's my procedure
http://www.srl-forums.com/forum/findrockcolor-t32626.html?


{*******************************************************************************
function FindRockColor: Integer;
By: Tarajunky
Description: Autodetecs Rock (Gray) Color on Minimap
*******************************************************************************}

function FindRockColor: Integer;
var
GC, a, l, TestColor: integer;
var
P:array of Tpoint;
begin
GC := 6444639;
Flag;
FindColorsSpiralTolerance(MMCX,MMCY, P, GC, MMX1,MMY1,MMX2,MMY2, 75);
l:=GetArrayLength(P);
for a:= 0 to l-1 do
begin
TestColor := GetColor(P[a].x,P[a].y);
if (GetColor(P[a].x-1,P[a].y)=TestColor-723980) then
begin
Result := TestColor;
WriteLn('Rock Color = ' + IntToStr(TestColor));
Exit;
end;
end;
WriteLn('Could not find Rock Color!');
Result := 0;
end;

king vash

2008-05-18 17:18:44

DARN they changed VarrockRoadColor again 7638673 is a very funky color it changes the ranges alot, tarajunky can explain how much cause it's alot of change

Cazax

2008-05-18 17:25:58

From: king vash
DARN they changed VarrockRoadColor again 7638673 is a very funky color it changes the ranges alot, tarajunky can explain how much cause it's alot of change


The ranges are failing…
Red - Blue = 29!?
Red - Green = 3
Green - Blue = 26!?
Holy dang, are you sure that is the Varrock road color?

Drakan

2008-05-18 21:17:28

Varrock road color is working fine for me :S

How do I get the ranges to update things like FindStoneColor?

tarajunky

2008-05-18 23:03:26

Varrock road is working for me too.

There's no "range" for FindRockColor and FindStoneColor. They're based on the colors adjacent to each other, not the RGB values.

Harry

2008-05-18 23:07:33

Ffs, Jagex is getting annoying, no ? Stop making little colour changes just to see if we are alive or not…

Sir R. M8gic1an

2008-05-20 15:34:02

i was wrong the other day when i posted, today i debug that part of my script, watercolor isn't working.



watercolor: 0 * 8
watercolor: 12162685 * 4


~RM

Markus

2008-05-24 14:06:58

Road, Water, Rock, Varrock Road and Stone work :) Only dirt now.

SKy Scripter

2008-05-24 15:28:48

if Tara isn't going to fix it, then i will.

tarajunky

2008-05-24 15:52:38

Yeah, I'm pretty inactive on coding these days, so I would appreciate that.

Hugolord

2008-05-24 15:54:47

From: tarajunky
Yeah, I'm pretty inactive on coding these days, so I would appreciate that.


ah… we still love you tara :rolleyes:

so if anyone needs me to manually pick some colors tell me..

SKy Scripter

2008-05-24 19:33:24

From: Hugolord
ah… we still love you tara :rolleyes:

so if anyone needs me to manually pick some colors tell me..


Lol, Please get some if you will?

I need some colors :o

Bobarkinator

2008-05-24 21:40:50

From: SKy Scripter
Lol, Please get some if you will?

I need some colors :o


We need to sort out what color we are supposed to get :p

ZephyrsFury

2008-05-24 23:05:32

I've got a function for the dirt colour in behind Lumby Castle. Except I only think it will work there. Where else is there this dirt colour?

HayHay89

2008-05-25 01:04:44

From: ZephyrsFury
I've got a function for the dirt colour in behind Lumby Castle. Except I only think it will work there. Where else is there this dirt colour?


umm theres edgeville near yew trees


and not sure on any others

Hugolord

2008-05-25 09:22:33

Yeah we should just find a remote place with dirt color and then we could make a script to change worlds and pick the color into an array for us?

ZephyrsFury

2008-05-26 04:43:29

From: Hugolord
Yeah we should just find a remote place with dirt color and then we could make a script to change worlds and pick the color into an array for us?


But how will it know which colour to pick unless you have an autocolour function that finds the colour to pick then gives it back to us to make another autocolour function. Besides I've already got the colours, its just the sorting at the end thats a problem. The dirt road colour is too similar to the normal dirt colour around the buildings and stuff.

Cazax

2008-05-27 18:50:58

Fix for FindStoneColor:
function FindStoneColor: Integer;
var
GC, a, l, TestColor: integer;
var
P:array of Tpoint;
begin
GC := 866895;
Flag;
FindColorsSpiralTolerance(MMCX, MMCY, P, GC, MMX1,MMY1,MMX2,MMY2, 60);
l:=GetArrayLength(P);
for a:= 0 to l-1 do
begin
TestColor := GetColor(P[a].x,P[a].y);
if (GetColor(P[a].x+1,P[a].y)=TestColor-790819) then
begin
Result := TestColor;
WriteLn('Stone Color = ' + IntToStr(TestColor));
Exit;
end;
end;
WriteLn('Could not find Stone Color!');
Result := 0;
end;

Nava2

2008-06-05 16:49:22

From: ZephyrsFury
But how will it know which colour to pick unless you have an autocolour function that finds the colour to pick then gives it back to us to make another autocolour function. Besides I've already got the colours, its just the sorting at the end thats a problem. The dirt road colour is too similar to the normal dirt colour around the buildings and stuff.


Maybe Jagex should stop being cheap and pav their roads. :)

Nava2