We moved our repositories to BitBucket!

If you can't login or you can't register to the forums do not rise an issue, instead please write to support (at) l2jserver.com

Check our wiki!

Report server issues here

Forum has been updated to phpBB 3.2, let's see if this fixes some minor bugs we had.

Thank you for visiting http://www.l2jserver.com/

Who know colors range in L2

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
User avatar
KGB1st
Posts: 227
Joined: Sat Jul 26, 2014 5:58 pm
Location: ИРК, РФ, СИБИРЬ!
Contact:

Who know colors range in L2

Post by KGB1st » Fri Nov 13, 2015 4:12 pm

Who know colors range for nick and title in L2? Thanks.
SPOILER:
Image
### GameServer: Started, free memory 1794 Mb of 3641 Mb
## -Xms2048m -Xmx4096m -XX:+AggressiveOpts
# GameServer: Server loaded in 51 seconds.

User avatar
SaveGame
Posts: 121
Joined: Thu Oct 30, 2014 9:54 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Who know colors range in L2

Post by SaveGame » Sat Nov 14, 2015 10:17 am

24 bit true color

Red in the 8 lsbs, blue – 8 msbs.
Also, see https://bitbucket.org/_dev_/netpro/src/ ... ew-default:

Code: Select all

import java.awt.Color;
…
final int bgr = (int) value;
final Color c = new Color(bgr & 0xFF, (bgr >> 8) & 0xFF, (bgr >> 16) & 0xFF);
Image

User avatar
KGB1st
Posts: 227
Joined: Sat Jul 26, 2014 5:58 pm
Location: ИРК, РФ, СИБИРЬ!
Contact:

Re: Who know colors range in L2

Post by KGB1st » Sat Nov 14, 2015 1:18 pm

SaveGame wrote:24 bit true color

Red in the 8 lsbs, blue – 8 msbs.
Also, see https://bitbucket.org/_dev_/netpro/src/ ... ew-default:

Code: Select all

import java.awt.Color;
…
final int bgr = (int) value;
final Color c = new Color(bgr & 0xFF, (bgr >> 8) & 0xFF, (bgr >> 16) & 0xFF);
Vyrry cherry thanks :crazy: :roll:
but I don't full understand what is it.. I think that it's a converter. But what should be a value? And how it works?)
SPOILER:
Image
### GameServer: Started, free memory 1794 Mb of 3641 Mb
## -Xms2048m -Xmx4096m -XX:+AggressiveOpts
# GameServer: Server loaded in 51 seconds.

User avatar
KGB1st
Posts: 227
Joined: Sat Jul 26, 2014 5:58 pm
Location: ИРК, РФ, СИБИРЬ!
Contact:

Re: Who know colors range in L2

Post by KGB1st » Sat Nov 14, 2015 7:46 pm

I don't know how works your stuff so I tested my simple method with random int.

Code: Select all

int i_NickClr = getRandomNumberInRange(1, 1677721);
I've a question. Why getRandomNumberInRange generate colors in two ranges, red or green. Where is blue?
SPOILER:
Image
### GameServer: Started, free memory 1794 Mb of 3641 Mb
## -Xms2048m -Xmx4096m -XX:+AggressiveOpts
# GameServer: Server loaded in 51 seconds.

User avatar
SaveGame
Posts: 121
Joined: Thu Oct 30, 2014 9:54 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Who know colors range in L2

Post by SaveGame » Sat Nov 14, 2015 8:45 pm

[0;16777216)
Image

User avatar
KGB1st
Posts: 227
Joined: Sat Jul 26, 2014 5:58 pm
Location: ИРК, РФ, СИБИРЬ!
Contact:

Re: Who know colors range in L2

Post by KGB1st » Sun Nov 15, 2015 4:57 am

it's def rgb :problem: :crazy:

I don't understand how I can convert HEX to Lineage2 Format :(

I see that defaulth value it's HEX but when I type some hex code in really it doesn't work, I see another color :\

HEX #ffe4b5 in game I see another color: 16113331 INT
LOL pcAppearance contains some rgb converter, it's the same that you told to me yesterday :lol:
SPOILER:
Image
### GameServer: Started, free memory 1794 Mb of 3641 Mb
## -Xms2048m -Xmx4096m -XX:+AggressiveOpts
# GameServer: Server loaded in 51 seconds.

User avatar
SaveGame
Posts: 121
Joined: Thu Oct 30, 2014 9:54 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Who know colors range in L2

Post by SaveGame » Sun Nov 15, 2015 8:34 am

KGB1st wrote:
it's def rgb :problem: :crazy:

I don't understand how I can convert HEX to Lineage2 Format :(

I see that defaulth value it's HEX but when I type some hex code in really it doesn't work, I see another color :\

HEX #ffe4b5 in game I see another color: 16113331 INT
LOL pcAppearance contains some rgb converter, it's the same that you told to me yesterday :lol:
How do you measure what you are seeing in-game? If directly (or from BMP screenshots), please make sure to use letters that have large areas that are unaffected by AA or fractional metrics (subpixel accuracy). You should check UserInfo for the actual color that was given to client.
Image

User avatar
KGB1st
Posts: 227
Joined: Sat Jul 26, 2014 5:58 pm
Location: ИРК, РФ, СИБИРЬ!
Contact:

Re: Who know colors range in L2

Post by KGB1st » Sun Nov 15, 2015 11:56 am

I don't understand you. I find method with rgb format..

Shot00097.jpg
You do not have the required permissions to view the files attached to this post.
SPOILER:
Image
### GameServer: Started, free memory 1794 Mb of 3641 Mb
## -Xms2048m -Xmx4096m -XX:+AggressiveOpts
# GameServer: Server loaded in 51 seconds.

User avatar
SaveGame
Posts: 121
Joined: Thu Oct 30, 2014 9:54 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Who know colors range in L2

Post by SaveGame » Sun Nov 15, 2015 1:05 pm

Explain where do you get F5DEB3 after using FFE4B5.

I understand that all these things may be hard to understand without having a background in computer architecture (or, alternatively, computer graphics/effects), but you should word your question differently if you want a short answer.
Image

User avatar
KGB1st
Posts: 227
Joined: Sat Jul 26, 2014 5:58 pm
Location: ИРК, РФ, СИБИРЬ!
Contact:

Re: Who know colors range in L2

Post by KGB1st » Tue Mar 20, 2018 3:27 am

SaveGame wrote:
Sun Nov 15, 2015 1:05 pm
Explain where do you get F5DEB3 after using FFE4B5.

I understand that all these things may be hard to understand without having a background in computer architecture (or, alternatively, computer graphics/effects), but you should word your question differently if you want a short answer.
I understood it when I did a color gradient in HTML for temperature indication of my GPU
But in my test server I did this without this knowelge, was used standart function for rgb formating.

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable