Re: [SRC+FILES] HGServer-Client-Files

#72
LifeX wrote:
Wed Apr 18, 2018 1:18 am
Glad I could help. Good luck.
So I noticed colors are a bit off in the server, like Elvine Hero Robe is exceptionally bright whereas Ares Hero Robe looks normal. Critical weapons are pink instead of orange, righteous weapons are blue instead of white, etc.

I saw in Game.h for GServer that there is declaration for white, green, red and noticed red was actually using hex code for blue. I thought this may have been the problem so I changed it to red and recompiled but the issue persists. I'm gonna have to dig in to this deeper later but is this something that rings a bell with you? I poked really quickly into Game.h for Client and didn't see similar settings.

Re: [SRC+FILES] HGServer-Client-Files

#73
Hei there. Colour contents is not in Game.h

Below are the original RGB for HB. Search it inside -> BOOL CGame::bInit(HWND hWnd, HINSTANCE hInst, char * pCmdLine)

Code: Select all

//Weapon Dyes
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  70,  70,  80), &m_wWR[1], &m_wWG[1], &m_wWB[1]); // Light-blue
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  70,  70,  80), &m_wWR[2], &m_wWG[2], &m_wWB[2]); // light-blue
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  70,  70,  80), &m_wWR[3], &m_wWG[3], &m_wWB[3]); // light-blue
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  70, 100,  70), &m_wWR[4], &m_wWG[4], &m_wWB[4]); // Poison
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 130,  90,  10), &m_wWR[5], &m_wWG[5], &m_wWB[5]); // Critical
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  42,  53, 111), &m_wWR[6], &m_wWG[6], &m_wWB[6]); // Sharp
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 145, 145, 145), &m_wWR[7], &m_wWG[7], &m_wWB[7]); // Righteous
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 120, 100, 120), &m_wWR[8], &m_wWG[8], &m_wWB[8]); // Ancient
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  75,  10,  10), &m_wWR[9], &m_wWG[9], &m_wWB[9]); // Giant Battle Hammer - Red
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 255, 215,	  0), &m_wR[10], &m_wG[10], &m_wB[10]);	// Black

	// Armor Dyes
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 200/2,  200/2,  200/2),  &m_wR[0], &m_wG[0], &m_wB[0]);
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(0x50/2, 0x50/2, 0xC0/2),  &m_wR[1], &m_wG[1], &m_wB[1]); // Indigo
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(    79,     79,     62),  &m_wR[2], &m_wG[2], &m_wB[2]); // Brown
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(   135,    104,     30),  &m_wR[3], &m_wG[3], &m_wB[3]); // Gold	 255,	215,	  0
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 255/2,   36/2,      0),  &m_wR[4], &m_wG[4], &m_wB[4]); // Crimson 220,	20,		 60
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(    10,     60,     10),  &m_wR[5], &m_wG[5], &m_wB[5]); // Green
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(0x50/2, 0x50/2, 0x50/2),  &m_wR[6], &m_wG[6], &m_wB[6]); // Gray
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(0x5F/2, 0x9E/2, 0xA0/2),  &m_wR[7], &m_wG[7], &m_wB[7]); // Aqua
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(0xFF/2, 0x69/2, 0xB4/2),  &m_wR[8], &m_wG[8], &m_wB[8]); // Pink     255,	105,	180
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(    90,     60,     90),  &m_wR[9], &m_wG[9], &m_wB[9]); // Violet
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(     0,     35,     60),  &m_wR[10], &m_wG[10], &m_wB[10]); // Blue
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(0xD2/2, 0xB4/2, 0x8C/2),  &m_wR[11], &m_wG[11], &m_wB[11]); // Tan
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(0xBD/2, 0xB7/2, 0x6B/2),  &m_wR[12], &m_wG[12], &m_wB[12]); // Khaki
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(    85,     85,      8),  &m_wR[13], &m_wG[13], &m_wB[13]); // Yellow
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(    75,     10,     10),  &m_wR[14], &m_wG[14], &m_wB[14]); // Red
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  0x30,   0x30,   0x30),  &m_wR[15], &m_wG[15], &m_wB[15]); // Black

LifeX

www.hblegends.net

Re: [SRC+FILES] HGServer-Client-Files

#74
LifeX wrote:
Thu Apr 19, 2018 4:13 pm
Hei there. Colour contents is not in Game.h

Below are the original RGB for HB. Search it inside -> BOOL CGame::bInit(HWND hWnd, HINSTANCE hInst, char * pCmdLine)

Code: Select all

//Weapon Dyes
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  70,  70,  80), &m_wWR[1], &m_wWG[1], &m_wWB[1]); // Light-blue
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  70,  70,  80), &m_wWR[2], &m_wWG[2], &m_wWB[2]); // light-blue
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  70,  70,  80), &m_wWR[3], &m_wWG[3], &m_wWB[3]); // light-blue
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  70, 100,  70), &m_wWR[4], &m_wWG[4], &m_wWB[4]); // Poison
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 130,  90,  10), &m_wWR[5], &m_wWG[5], &m_wWB[5]); // Critical
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  42,  53, 111), &m_wWR[6], &m_wWG[6], &m_wWB[6]); // Sharp
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 145, 145, 145), &m_wWR[7], &m_wWG[7], &m_wWB[7]); // Righteous
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 120, 100, 120), &m_wWR[8], &m_wWG[8], &m_wWB[8]); // Ancient
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  75,  10,  10), &m_wWR[9], &m_wWG[9], &m_wWB[9]); // Giant Battle Hammer - Red
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 255, 215,	  0), &m_wR[10], &m_wG[10], &m_wB[10]);	// Black

	// Armor Dyes
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 200/2,  200/2,  200/2),  &m_wR[0], &m_wG[0], &m_wB[0]);
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(0x50/2, 0x50/2, 0xC0/2),  &m_wR[1], &m_wG[1], &m_wB[1]); // Indigo
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(    79,     79,     62),  &m_wR[2], &m_wG[2], &m_wB[2]); // Brown
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(   135,    104,     30),  &m_wR[3], &m_wG[3], &m_wB[3]); // Gold	 255,	215,	  0
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 255/2,   36/2,      0),  &m_wR[4], &m_wG[4], &m_wB[4]); // Crimson 220,	20,		 60
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(    10,     60,     10),  &m_wR[5], &m_wG[5], &m_wB[5]); // Green
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(0x50/2, 0x50/2, 0x50/2),  &m_wR[6], &m_wG[6], &m_wB[6]); // Gray
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(0x5F/2, 0x9E/2, 0xA0/2),  &m_wR[7], &m_wG[7], &m_wB[7]); // Aqua
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(0xFF/2, 0x69/2, 0xB4/2),  &m_wR[8], &m_wG[8], &m_wB[8]); // Pink     255,	105,	180
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(    90,     60,     90),  &m_wR[9], &m_wG[9], &m_wB[9]); // Violet
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(     0,     35,     60),  &m_wR[10], &m_wG[10], &m_wB[10]); // Blue
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(0xD2/2, 0xB4/2, 0x8C/2),  &m_wR[11], &m_wG[11], &m_wB[11]); // Tan
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(0xBD/2, 0xB7/2, 0x6B/2),  &m_wR[12], &m_wG[12], &m_wB[12]); // Khaki
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(    85,     85,      8),  &m_wR[13], &m_wG[13], &m_wB[13]); // Yellow
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(    75,     10,     10),  &m_wR[14], &m_wG[14], &m_wB[14]); // Red
	m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB(  0x30,   0x30,   0x30),  &m_wR[15], &m_wG[15], &m_wB[15]); // Black

Thanks for the fast reply LifeX! I'll take a look and give this a shot when I get home from work tonight, stay awesome.

[Edit] - It looks like there are extra colors in the file I have, off-hand I don't know how/what it will affect if I reduce the lines to the ones given. I'll expirement tonight when I get off of work.

Re: [SRC+FILES] HGServer-Client-Files

#75
Right now in files, default there is only 15 different colours only. As you can see its -> &m_wR[15] if you want to add, you need to increase its array of m_wR[15] to be higher.

If you don't know what you're doing, best dont touch too much on this. You could change the color in its RGB following RGB color charts that can be found -> https://www.rapidtables.com/web/color/RGB_Color.html.

Good luck.
LifeX

www.hblegends.net

Re: [SRC+FILES] HGServer-Client-Files

#76
LifeX wrote:
Fri Apr 20, 2018 2:54 am
Right now in files, default there is only 15 different colours only. As you can see its -> &m_wR[15] if you want to add, you need to increase its array of m_wR[15] to be higher.

If you don't know what you're doing, best dont touch too much on this. You could change the color in its RGB following RGB color charts that can be found -> https://www.rapidtables.com/web/color/RGB_Color.html.

Good luck.
Just to be clear I am not talking about armor dyes, the items are dropping or spawning discolored; check this link out: https://imgur.com/a/erTXNa1

Re: [SRC+FILES] HGServer-Client-Files

#77
That code is the color of items and armor. I have already classify for you already. m_wWR is weapon dyes, and m_wG is armor dyes.

//Weapon Dyes
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 70, 70, 80), &m_wWR[1], &m_wWG[1], &m_wWB[1]); // Light-blue

and

// Armor Dyes
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 200/2, 200/2, 200/2), &m_wR[0], &m_wG[0], &m_wB[0]);

From your pictures, you Ancient items which is colour code 8 is wrong inside client, hence its coming up as red. And your special magic casting which is colour 9 i think, is also wrong. The RGB that i provided below is the original codes, you can paste it in your client and see it again, it will show you the original colours. You can edit those colours if you want by visiting the website i provided to see whats the RGB.

And the magic text colour is in another function, I am in office now without source, I will explain tonight.
LifeX

www.hblegends.net

Re: [SRC+FILES] HGServer-Client-Files

#78
LifeX wrote:
Fri Apr 20, 2018 5:15 am
That code is the color of items and armor. I have already classify for you already. m_wWR is weapon dyes, and m_wG is armor dyes.

//Weapon Dyes
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 70, 70, 80), &m_wWR[1], &m_wWG[1], &m_wWB[1]); // Light-blue

and

// Armor Dyes
m_Misc.ColorTransfer(m_DDraw.m_cPixelFormat, RGB( 200/2, 200/2, 200/2), &m_wR[0], &m_wG[0], &m_wB[0]);

From your pictures, you Ancient items which is colour code 8 is wrong inside client, hence its coming up as red. And your special magic casting which is colour 9 i think, is also wrong. The RGB that i provided below is the original codes, you can paste it in your client and see it again, it will show you the original colours. You can edit those colours if you want by visiting the website i provided to see whats the RGB.

And the magic text colour is in another function, I am in office now without source, I will explain tonight.
Ok I got home and got to test it and confirmed replacing values with yours gave proper colors back. Now I'm going to try to find the code for spell text color, I'll let you know if I find it before you get to do so. As always I appreciate the help LifeX, you da MvP

Who is online

Users browsing this forum: No registered users and 1 guest

cron