Jump to content
UPDATE 2 - External pictures are being replaced... ×
×
×
  • Create New...
  • 0

Color rank bug


Zeph

Question

  • Answers 19
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

19 answers to this question

Recommended Posts

  • 0
21 godzin temu, Den napisał:

Maybe root/colorinfo.py TITLE_RGB_GOOD_1 etc?

TITLE_RGB_GOOD_4 = (  0, 204, 255)
TITLE_RGB_GOOD_3 = (  0, 144, 255)
TITLE_RGB_GOOD_2 = ( 92, 110, 255)
TITLE_RGB_GOOD_1 = (155, 155, 255)
TITLE_RGB_NORMAL = (255, 255, 255)
TITLE_RGB_EVIL_1 = (207, 117,   0)
TITLE_RGB_EVIL_2 = (235,  83,   0)
TITLE_RGB_EVIL_3 = (227,   0,   0)
TITLE_RGB_EVIL_4 = (255,   0,   0)

Link to comment
Share on other sites

  • 0
  • Premium

Did you tried other binary?

edit: Check in uiCharacter.py does it match

Spoiler

    def RefreshAlignment(self):
        point, grade = player.GetAlignmentData()

        import colorInfo
        COLOR_DICT = {    0 : colorInfo.TITLE_RGB_GOOD_4,
                        1 : colorInfo.TITLE_RGB_GOOD_3,
                        2 : colorInfo.TITLE_RGB_GOOD_2,
                        3 : colorInfo.TITLE_RGB_GOOD_1,
                        4 : colorInfo.TITLE_RGB_NORMAL,
                        5 : colorInfo.TITLE_RGB_EVIL_1,
                        6 : colorInfo.TITLE_RGB_EVIL_2,
                        7 : colorInfo.TITLE_RGB_EVIL_3,
                        8 : colorInfo.TITLE_RGB_EVIL_4, }
        colorList = COLOR_DICT.get(grade, colorInfo.TITLE_RGB_NORMAL)
        gradeColor = ui.GenerateColor(colorList[0], colorList[1], colorList[2])

        self.toolTipAlignment.ClearToolTip()
        self.toolTipAlignment.AutoAppendTextLine(localeInfo.TITLE_NAME_LIST[grade], gradeColor)
        self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGNMENT_NAME + localeInfo.NumberToString(str(point)))
        self.toolTipAlignment.AlignHorizonalCenter()
 

 

Link to comment
Share on other sites

  • 0
Dnia 21.07.2017 o 22:51, Nevisor napisał:

Did you tried other binary?

edit: Check in uiCharacter.py does it match

  Odkryj ukrytą treść

    def RefreshAlignment(self):
        point, grade = player.GetAlignmentData()

        import colorInfo
        COLOR_DICT = {    0 : colorInfo.TITLE_RGB_GOOD_4,
                        1 : colorInfo.TITLE_RGB_GOOD_3,
                        2 : colorInfo.TITLE_RGB_GOOD_2,
                        3 : colorInfo.TITLE_RGB_GOOD_1,
                        4 : colorInfo.TITLE_RGB_NORMAL,
                        5 : colorInfo.TITLE_RGB_EVIL_1,
                        6 : colorInfo.TITLE_RGB_EVIL_2,
                        7 : colorInfo.TITLE_RGB_EVIL_3,
                        8 : colorInfo.TITLE_RGB_EVIL_4, }
        colorList = COLOR_DICT.get(grade, colorInfo.TITLE_RGB_NORMAL)
        gradeColor = ui.GenerateColor(colorList[0], colorList[1], colorList[2])

        self.toolTipAlignment.ClearToolTip()
        self.toolTipAlignment.AutoAppendTextLine(localeInfo.TITLE_NAME_LIST[grade], gradeColor)
        self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGNMENT_NAME + localeInfo.NumberToString(str(point)))
        self.toolTipAlignment.AlignHorizonalCenter()
 

 

Yes, im tried binary.

uiCharacter.py

def RefreshAlignment(self):
        point, grade = player.GetAlignmentData()

        import colorInfo
        COLOR_DICT = {    0 : colorInfo.TITLE_RGB_GOOD_4,
                        1 : colorInfo.TITLE_RGB_GOOD_3,
                        2 : colorInfo.TITLE_RGB_GOOD_2,
                        3 : colorInfo.TITLE_RGB_GOOD_1,
                        4 : colorInfo.TITLE_RGB_NORMAL,
                        5 : colorInfo.TITLE_RGB_EVIL_1,
                        6 : colorInfo.TITLE_RGB_EVIL_2,
                        7 : colorInfo.TITLE_RGB_EVIL_3,
                        8 : colorInfo.TITLE_RGB_EVIL_4, }
        colorList = COLOR_DICT.get(grade, colorInfo.TITLE_RGB_NORMAL)
        gradeColor = ui.GenerateColor(colorList[0], colorList[1], colorList[2])

        self.toolTipAlignment.ClearToolTip()
        self.toolTipAlignment.AutoAppendTextLine(localeInfo.TITLE_NAME_LIST[grade], gradeColor)
        self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGNMENT_NAME + str(point))
        self.toolTipAlignment.AlignHorizonalCenter()

 

Link to comment
Share on other sites

  • 0

Ok you can fix it by forxing the color from source code:

Search in InstanceBaseEffect.cpp from your client source this

Spoiler
const D3DXCOLOR& CInstanceBase::GetTitleColor()
{
	UINT uGrade = GetAlignmentGrade();
	if ( uGrade >= TITLE_NUM)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xffffffff);
		return s_kD3DXClrTitleDefault;
	}

	return g_akD3DXClrTitle[uGrade];
}

 

Replace all function with this :

Spoiler
const D3DXCOLOR& CInstanceBase::GetTitleColor()
{
	UINT uGrade = GetAlignmentGrade();
	if ( uGrade == 0)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xff00ccff);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 1)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xff0090ff);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 2)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xff5c6eff);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 3)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xff9b9bff);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 4)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xffffffff);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 5)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xffcf7500);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 6)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xffeb5300);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 7)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xffe30000);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 8)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xffff0000);
		return s_kD3DXClrTitleDefault;
	}
	return g_akD3DXClrTitle[uGrade];
}

 

Compile it and ther you go I hope this fixes it for you have a nice one.

Link to comment
Share on other sites

  • 0
Dnia 1.08.2017 o 20:46, Root napisał:

Ok you can fix it by forxing the color from source code:

Search in InstanceBaseEffect.cpp from your client source this

  Odkryj ukrytą treść

const D3DXCOLOR& CInstanceBase::GetTitleColor()
{
	UINT uGrade = GetAlignmentGrade();
	if ( uGrade >= TITLE_NUM)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xffffffff);
		return s_kD3DXClrTitleDefault;
	}

	return g_akD3DXClrTitle[uGrade];
}

 

Replace all function with this :

  Odkryj ukrytą treść

const D3DXCOLOR& CInstanceBase::GetTitleColor()
{
	UINT uGrade = GetAlignmentGrade();
	if ( uGrade == 0)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xff00ccff);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 1)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xff0090ff);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 2)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xff5c6eff);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 3)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xff9b9bff);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 4)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xffffffff);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 5)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xffcf7500);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 6)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xffeb5300);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 7)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xffe30000);
		return s_kD3DXClrTitleDefault;
	}
	else if (uGrade == 8)
	{
		static D3DXCOLOR s_kD3DXClrTitleDefault(0xffff0000);
		return s_kD3DXClrTitleDefault;
	}
	return g_akD3DXClrTitle[uGrade];
}

 

Compile it and ther you go I hope this fixes it for you have a nice one.

Work. Thank you!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.