SRL Archive - SRL Archives

Finalizing Project: NewAutoColor.scar!


Wizzup?

2008-03-11 10:54:19

Hello,

NewAutoColor works. I would like to see more (symbol) colors in it, though.

How can you add a color?
You need to start at one world. Make sure you get a loading screen.
After the loading screen, pick one of the colors(C_Old1) that are already in the NewAutoColor array, let's take the grey rock in this example. Pick the color that you would like to add (C_New1).

Switch to a new world. (Make sure the applet loads again)
Get that annoying loading screen so the colors with get their constant value.
Pick the grey rock color again(C_Old2). Pick the other color that you would like to add. (C_New2)

You should only add the color if it has a constant relationship with, in this case, the grey RockColor.
Which is true if: (C_Old1 - C_New1 = C_Old2 - C_New2)

Now, you cannot just add it to the array, because all the colors in the newAutoColor array are picked from one world (or picked from a different one, and adepted afterwards.)

Let us now adept the color.

Taken from NewAutoColor.scar:

{Note by Sumilion :
All colors in this list are from the same world. Might you find a
new color that fits in here aswell, and if you add it from your
world it will not work. What you should do then is get the constant
difference between your color and an item in this list (from your
world). Then apply that difference to the color that is set in this
list. You will the have the color like it should be in the world
these colors were taken in at the time.
}

So, what we do now is copy the Grey RockColor(5790810) from the array.
  srl_refColors[1].Name := 'Grey Rock';
srl_refColors[1].Color := 5790810;

We either take C_Old1, or C_Old2.
Now, we can get the 'difference'.
If we use C_Old1, the color we will add to the array will look like this:

NewColor := C_New1 + (C_Old1 - 5790810}));
{5790810 = grey rock color from old array}

If we used C_Old2, it would look like this:

NewColor := C_New2 + (C_Old2 - 5790810}));
{5790810 = grey rock color from old array}

One final note.
If you are going to add SymbolColors, make sure you 'pick' the symbol colors that SRL GetSymbolColor returns.


I hope you can help us add more colors to this wonderfull include!

~Wizzup?

Bobarkinator

2008-03-11 13:46:49

Thank you, I was looking to add colors to this earlier but I wasn't sure how. So thanks.

the scar noob

2008-03-12 13:06:32

Wiz, can you explain me in dutch plz?:o

I picked the upper left color (van de vin <- dutch) of the fish from the fishing symbol, after a "loading please wait" screen. The color is: 16764462.

-Tsn.

XcanadamanX

2008-03-20 16:59:58

Cactus color in Al Kharid
  srl_refColors[15].Name := 'Cactus';
srl_refColors[15].Color := 3972993;

Wizzup?

2008-03-20 17:07:36

Added. :)

XcanadamanX

2008-03-20 18:38:14

ill find somemore later tonight. off to bball practice now.:p

mastaraymond

2008-03-20 18:40:55

Use the RS Minimap?


http://www.runescape.com/worldmap/worldmap.ws

tarajunky

2008-03-20 19:03:20

From: mastaraymond
Use the RS Minimap?


http://www.runescape.com/worldmap/worldmap.ws



Worked for RockColor and StoneColor :eek:


Good thinking!

Wizzup?

2008-03-20 19:47:47

From: mastaraymond
Use the RS Minimap?


http://www.runescape.com/worldmap/worldmap.ws


Yes. I used the RS Minimap too.
The problem is, the colors on the RS Minimap are always constant, and some colors do not have a constant relation, like the tree symbol. You must first make sure the colors have no certain relation for the RS Minimap, hence why I removed it from my 'small tutorial' on how to pick the colors, slyboots. ;)

HyperSecret

2008-03-20 19:48:20

would this be able to work for things such as trees, possibly the different greens or possibly the trunk colors on MM. if so ill look into it, also is this possible for like fences, roadcolors, watercolors, etc…?

Wizzup?

2008-03-20 19:51:32

From: HyperSecret
would this be able to work for things such as trees, possibly the different greens or possibly the trunk colors on MM. if so ill look into it, also is this possible for like fences, roadcolors, watercolors, etc…?


Does not work for RoadColor, WaterColor, WallColor, TreeSymbol and probably quite some more colors, too.

XcanadamanX

2008-03-20 21:13:32

take out the one i gave you for cactus. worked for like three different worlds now doesnt work. man what a coincidence!

Wizzup?

2008-03-21 07:01:41

From: XcanadamanX
take out the one i gave you for cactus. worked for like three different worlds now doesnt work. man what a coincidence!


Alright, I'll remove it again. ;)
What other color did you use, to test the cactus color relation with?
I personally like using either the grey or brown rock, you can't easily pick the 'wrong' color, unlike when you use symbols. :)

mastaraymond

2008-03-21 09:14:27

From: Wizzup?
Alright, I'll remove it again. ;)
What other color did you use, to test the cactus color relation with?
I personally like using either the grey or brown rock, you can't easily pick the 'wrong' color, unlike when you use symbols. :)

The brown rock and the cactus have a firm relation.

Markus

2008-03-21 09:23:42

From: mastaraymond
The brown rock and the cactus have a firm relation.


I can confirm that. If that one doesn't have a constant relation I gonna kill myself.

mastaraymond

2008-03-21 09:40:02

From: Markus
I can confirm that. If that one doesn't have a constant relation I gonna kill myself.

And I'm gonna help you.

XcanadamanX

2008-03-21 13:58:23

From: Wizzup?
Alright, I'll remove it again. ;)
What other color did you use, to test the cactus color relation with?
I personally like using either the grey or brown rock, you can't easily pick the 'wrong' color, unlike when you use symbols. :)


i used the quest symbol color from the getsymbolcolor. so maybe it does work. i donno:rolleyes:

Raskolnikov

2008-03-21 23:50:09

Edit: I saw the end of the first post, don't add these colors in, I will be working at finding new ones.

Cut em2 it

Wizzup?

2008-04-03 08:16:15

Did anyone get some color relations yet?

XcanadamanX

2008-05-03 12:03:46

2 of them were not working for me.

   ref_Bank = 1431274; 
and
    ref_Mining_Spot = 8289911;

those are the fixes. they seem to be working fine right now.

tarajunky

2008-05-03 12:13:55

Jagex messed with some of the color relationships a couple of weeks ago.

Timothegreat

2008-05-10 22:31:07


rock old - new = difference

2438464 - 861506 = 1576958

cactus old - new = difference

2844994 - 1268036 = 1576958

the differences between those to old and new are the same… we got a relationship.

i did this between a few worlds and it worked.

XcanadamanX

2008-05-11 09:49:55

did you check the colors of the middle "easy to get" spots? to see if there is a connection there.

MylesMadness

2008-05-11 10:27:41

Thanks Timo, now I understand this

XcanadamanX

2008-05-19 21:00:22

brown rock by ak bank. tested and works with the cactus color. its the light color in the middle of the rock. see post above by Timo

ref_Ak_Brown_Rock = 2969732;

NiCbaZ

2008-05-20 02:02:14

i made an auto color function for the the rock in the desert.. it works on any world i usually get a color around this

Des_Rock =3560321