Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Colours in Fashion

Experienced Elementalist
Joined
Oct 11, 2010
Messages
218
Reaction score
37
I've been playing around with the hex codes to make matching sets of fashion (lol no surprises there, I am a girl! :lol: ). For those that are not sure what's in the hex, did a quick guide below, from Bohemian top, which needs 4 pigments to dye. With thanks to Draeker for his excellent Hex Guide!

1e 000000c232 01 0003000000

Orange is the level you have to be, converting 1e from Hex to number value is 30.

The octet I think relates to colours is highlighted in purple. I've been researching on Google for a way to convert the eight-code octet into hex colours, with no success. Do I need to convert the octet to decimal or float? Or are the colours, because they're random, determined by something in the elementclient.exe?

Red is the gender, 01 for female, 00 for male :) Not sure what the other octets are for yet, thought it may be dyes needed, but the top needs 4, not 3.

I am wondering if anyone has any thoughts on this, or could make any suggestions, it would be appreciated, thanks!
 
Last edited:
Skilled Illusionist
Joined
Oct 22, 2010
Messages
323
Reaction score
117
An strange advice:
1. Dye a few fasions with some colors.
2. Get their octets code from xml.
3. Match with html color codes.
or .
4. Interpolate them and make a table or formula.:thumbup:
 
Experienced Elementalist
Joined
Oct 11, 2010
Messages
218
Reaction score
37
Thank you very much for replying Ivanaivana :thumbup: It's the interpolation part I'm having trouble with :p , converting the four-code octet into hexidecimal colour codes, or html. Maths isn't my strong suit, and I've been giving myself a headache with learning about floats, binary, decimal and stuff :lol:

For example, c232 is a dark green, when converting it to decimal, binary, it's also coming up as a hex colour, yet I cannot input six-digit hex codes into the octet...well, not entirely sure, will go test it out :)
 
Black Magic Development
Loyal Member
Joined
Apr 29, 2010
Messages
2,170
Reaction score
600
Black - - 0 0 0 0 0 0
White - - 0 0 0 0 1 1
Blue - - 0.67 0.67 1 1 1 1
Green - - 0.33 0.33 1 1 0.8 0.8
Red - - 0 0 1 1 1 1

From there I can assume those are all color related, how exactly that turns into that hex code (and Im assuming it also reads the 4 0's before it as well) I'm not 100% sure...

I'm kind of assuming that the numbers just repeat themselves one time and then it just shows the fraction of the 0-255 of the 24 bit color code...

Other then that I don't know exactly how it all relates as I can't figure out how the code you posted saying that its purple relates at all to it, but I also had the thought that it might be the color difference between the tint mask (which is a static blueish color) and the color desired

I'll definitely look into this a bit more... I'm intrigued by it now
 
Experienced Elementalist
Joined
Oct 11, 2010
Messages
218
Reaction score
37
Black - - 0 0 0 0 0 0
White - - 0 0 0 0 1 1
Blue - - 0.67 0.67 1 1 1 1
Green - - 0.33 0.33 1 1 0.8 0.8
Red - - 0 0 1 1 1 1

From there I can assume those are all color related, how exactly that turns into that hex code (and Im assuming it also reads the 4 0's before it as well) I'm not 100% sure...
Yes, that's what I've been wondering too, I have been reading up on different numbering systems i.e. hexidecimal, binary, decimal etc, have tried converting the hex code but got no results I could make sense of. I've been using .

I do know that changing the fifth digit either changes the saturation, or lightness/darkness, sorry for such a vague sentence, it's nearly 2am over here in the Uk, need sleep!

I'm kind of assuming that the numbers just repeat themselves one time and then it just shows the fraction of the 0-255 of the 24 bit color code...

Other then that I don't know exactly how it all relates as I can't figure out how the code you posted saying that its purple relates at all to it, but I also had the thought that it might be the color difference between the tint mask (which is a static blueish color) and the color desired

I'll definitely look into this a bit more... I'm intrigued by it now

lol sorry to confuse you about the purple section, the purple was just to highlight the octet, and I also forgot the first four-digits duh! Have amended my post, and thank you :)

I think you may be right about the tint mask, that has to factor in somewhere. I think more experimentation is in order, with screenshots :thumbup: I'm a stubborn bird, won't give this up til I crack it.

ps. I'm not the smartest tool in the box when it comes to math and programming, so I've probably missed something that you smart ones will spot LOL :p

p.p.s thought of something else, the only reason I thought it was just four-digit octet (there's a misnomer :p) was because changing the first four digits would have no effect on the colour at all. Though the pics you posted have really got me wondering even more now :/
 
Last edited:
Joined
Jan 6, 2010
Messages
744
Reaction score
1,051
a common color representation in programming is int ARGB

Example:

c232 (hex) -> 49714 (int)
R (byte) = 49714 % 256 = 50
G (byte) = (49714 / 256) % 256 = 194
B (byte) = (49714 / 256 / 256) % 256 = 0

[50, 194, 0]


for tint mask and solids (unable to dye sectios i.e. belts, logos, ...) check the .dds files, this is explained in the sCLOTHfix thread...
 
Experienced Elementalist
Joined
Oct 11, 2010
Messages
218
Reaction score
37
a common color representation in programming is int ARGB

Example:

c232 (hex) -> 49714 (int)
R (byte) = 49714 % 256 = 50
G (byte) = (49714 / 256) % 256 = 194
B (byte) = (49714 / 256 / 256) % 256 = 0

[50, 194, 0]


for tint mask and solids (unable to dye sectios i.e. belts, logos, ...) check the .dds files, this is explained in the sCLOTHfix thread...

Ah int aRGB!! Thank you lots, and for the example, not that I understand the math, told you my math sucks, you'd have to dumb it down :lol: So I can reverse the math, to get four-digit code from the RGB :p
 
Experienced Elementalist
Joined
Oct 11, 2010
Messages
218
Reaction score
37
RGB to hex is easier

256*256*B + 256*G + R = ... -> to hex

* note order of RGB may differ
Thanks again :) The converter I linked to earlier in this thread, can convert from hex to int aRGB, and vice versa. The issue is that when changing the code of colours in the hex on fashion items, it will only accept four-digits. If you try to replace the zero values in, say for example in the hex, 0000c232, the level requirement changes to something ridiculous like -7685412. You can't insert extra hex colour code, like six-digit hex or five-digit hex codes :/
 
Black Magic Development
Loyal Member
Joined
Apr 29, 2010
Messages
2,170
Reaction score
600
Considering that Ronny told us what it was and since I didn't know already

I made a nice little converter based on JQuery and Javascript like my

Available
 
Joined
Jul 17, 2007
Messages
665
Reaction score
104
i guess a bit necro but maybe someone else looking for this too like me, i not really found solution, normal rgb stuff not work since white is ex. ff 7f or 7f ff what far from html color (what is ff ff ff) and also different than old color stuff (red+green*16+blue*256 where white would be ff ff)

until someone have a solution i tested 32 pigment, and catched the colors, what i guess is the blue part (yellow level req, red gender, grey idk but fixed)

1e000000c232 0100 03000000

Color list

01.White
ff7f


02.Black
0000


03.Red
007c


04.Blue
1f00


05.Yellow
e07f


06.Brown
6055


07.Green
2003


08.Pink
137c


09.Perfect Pink
3f7f


10.Violet Red
0d7c


11.Purple
1f30


12.Magenta
1f7c


13.Fuchsia
1264


14.Violet
1f64


15.Lavander
9f49


16.Light Blue
3f1b


17.Aquamarine
ff03


18.Aqua
7302


19.Turquise
fa03


20.Saphire
5f02


21.Plum
7f66


22.Jade
f967


23.Cream
b77f


24.Copper
a07d


25.Orange
607e


26.Lime
e667


27.Light Yellow
f37f


28.Light Green
f34f


29.Bright Green
e003


30.Mango
007f


31.Grey
ff67


32.Smokey
1f63
 
Back
Top