Jump to content

Recommended Posts

Hello guys. I have a problem that my char level doesnt show ingame.

Here is the photo:

https://metin2.download/picture/Pj992FrPozJlAP2HP5FpFIQC96nHRpmq/.png

Any ideas?

Edited by Metin2 Dev
Core X - External 2 Internal

โ€œ๐“๐“ต๐“ต ๐”€๐“ฎ ๐“ฑ๐“ช๐“ฟ๐“ฎ ๐“ฝ๐“ธ ๐“ญ๐“ฎ๐“ฌ๐“ฒ๐“ญ๐“ฎ ๐“ฒ๐“ผ ๐”€๐“ฑ๐“ช๐“ฝ ๐“ฝ๐“ธ ๐“ญ๐“ธ ๐”€๐“ฒ๐“ฝ๐“ฑ ๐“ฝ๐“ฑ๐“ฎ ๐“ฝ๐“ฒ๐“ถ๐“ฎ ๐“ฝ๐“ฑ๐“ช๐“ฝ ๐“ฒ๐“ผ ๐“ฐ๐“ฒ๐“ฟ๐“ฎ๐“ท ๐“พ๐“ผ.โ€ ~ ๐“–๐“ช๐“ท๐“ญ๐“ช๐“ต๐“ฏ ๐“ฝ๐“ฑ๐“ฎ ๐“–๐“ป๐“ฎ๐”‚

Link to comment
https://metin2.dev/topic/29006-char-level-doesnt-show/
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Contributor

It's inย InstanceBaseEffect.cppย CInstanceBase::UpdateTextTailLevel.

I guess your source did not came to life and modifiy itself, so try to remember what modification did you done what could cause this.

Link to comment
https://metin2.dev/topic/29006-char-level-doesnt-show/#findComment-148863
Share on other sites

4 minutes ago, TMP4 said:

It's inย InstanceBaseEffect.cppย CInstanceBase::UpdateTextTailLevel.

I guess your source did not came to life and modifiy itself, so try to remember what modification did you done what could cause this.

Thats my function there:

void CInstanceBase::UpdateTextTailLevel(DWORD level)
{
	static D3DXCOLOR s_kPlayerLevelColor = D3DXCOLOR(152.0f / 255.0f, 255.0f / 255.0f, 51.0f / 255.0f, 1.0f);
#ifdef WJ_SHOW_MOB_INFO
	static D3DXCOLOR s_kMobLevelColor = D3DXCOLOR(119.0f / 255.0f, 246.0f / 255.0f, 168.0f / 255.0f, 1.0f);
#endif
#ifdef ENABLE_GROWTH_PET_SYSTEM
	static D3DXCOLOR s_kPetLevelColor = D3DCOLOR_XRGB(255, 255, 0);
#endif

	char szText[256];
	sprintf(szText, "Lv %d ", level);
#ifdef WJ_SHOW_MOB_INFO
	if (IsPC())
		if (level != 0)
			CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kPlayerLevelColor);
		else
			CPythonTextTail::Instance().DetachLevel(GetVirtualID());
#ifdef ENABLE_GROWTH_PET_SYSTEM
	else if (IsGrowthPet() && level > 0)
		CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kPetLevelColor);
#endif
	else if (IsEnemy() || IsStone())
		CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kMobLevelColor);
	else
		CPythonTextTail::Instance().DetachLevel(GetVirtualID());
#else
	if (level != 0)
		CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kPlayerLevelColor);
	else
		CPythonTextTail::Instance().DetachLevel(GetVirtualID());
#endif
}

ย 

โ€œ๐“๐“ต๐“ต ๐”€๐“ฎ ๐“ฑ๐“ช๐“ฟ๐“ฎ ๐“ฝ๐“ธ ๐“ญ๐“ฎ๐“ฌ๐“ฒ๐“ญ๐“ฎ ๐“ฒ๐“ผ ๐”€๐“ฑ๐“ช๐“ฝ ๐“ฝ๐“ธ ๐“ญ๐“ธ ๐”€๐“ฒ๐“ฝ๐“ฑ ๐“ฝ๐“ฑ๐“ฎ ๐“ฝ๐“ฒ๐“ถ๐“ฎ ๐“ฝ๐“ฑ๐“ช๐“ฝ ๐“ฒ๐“ผ ๐“ฐ๐“ฒ๐“ฟ๐“ฎ๐“ท ๐“พ๐“ผ.โ€ ~ ๐“–๐“ช๐“ท๐“ญ๐“ช๐“ต๐“ฏ ๐“ฝ๐“ฑ๐“ฎ ๐“–๐“ป๐“ฎ๐”‚

Link to comment
https://metin2.dev/topic/29006-char-level-doesnt-show/#findComment-148864
Share on other sites

  • Contributor
12 minutes ago, Jimmermania said:

Thats my function there:

void CInstanceBase::UpdateTextTailLevel(DWORD level)
{
	static D3DXCOLOR s_kPlayerLevelColor = D3DXCOLOR(152.0f / 255.0f, 255.0f / 255.0f, 51.0f / 255.0f, 1.0f);
#ifdef WJ_SHOW_MOB_INFO
	static D3DXCOLOR s_kMobLevelColor = D3DXCOLOR(119.0f / 255.0f, 246.0f / 255.0f, 168.0f / 255.0f, 1.0f);
#endif
#ifdef ENABLE_GROWTH_PET_SYSTEM
	static D3DXCOLOR s_kPetLevelColor = D3DCOLOR_XRGB(255, 255, 0);
#endif

	char szText[256];
	sprintf(szText, "Lv %d ", level);
#ifdef WJ_SHOW_MOB_INFO
	if (IsPC())
		if (level != 0)
			CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kPlayerLevelColor);
		else
			CPythonTextTail::Instance().DetachLevel(GetVirtualID());
#ifdef ENABLE_GROWTH_PET_SYSTEM
	else if (IsGrowthPet() && level > 0)
		CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kPetLevelColor);
#endif
	else if (IsEnemy() || IsStone())
		CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kMobLevelColor);
	else
		CPythonTextTail::Instance().DetachLevel(GetVirtualID());
#else
	if (level != 0)
		CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kPlayerLevelColor);
	else
		CPythonTextTail::Instance().DetachLevel(GetVirtualID());
#endif
}

ย 

It look fine except that yourย ENABLE_GROWTH_PET_SYSTEM depends onย WJ_SHOW_MOB_INFO, but that's not the problem.

What is theย DWORD level's value? If its > 0 then go and check yourย AttachLevel function.

Link to comment
https://metin2.dev/topic/29006-char-level-doesnt-show/#findComment-148865
Share on other sites

1 hour ago, TMP4 said:

It look fine except that yourย ENABLE_GROWTH_PET_SYSTEM depends onย WJ_SHOW_MOB_INFO, but that's not the problem.

What is theย DWORD level's value? If its > 0 then go and check yourย AttachLevel function.

I dont know why, but i commented these two things

		// pkInstFind->SetLevelText(c_rkNetUpdateActorData.m_dwLevel);
		// pkInstFind->SetLevel(c_rkNetUpdateActorData.m_dwLevel);


in NetworkActorManager and at functionย CNetworkActorManager::UpdateActor and the level of the player is ok.

Thats my function there:

void CNetworkActorManager::UpdateActor(const SNetworkUpdateActorData& c_rkNetUpdateActorData)
{
	std::map<DWORD, SNetworkActorData>::iterator f=m_kNetActorDict.find(c_rkNetUpdateActorData.m_dwVID);
	if (m_kNetActorDict.end()==f)
	{
#ifdef _DEBUG
		TraceError("CNetworkActorManager::UpdateActor(dwVID=%d) - NOT EXIST VID", c_rkNetUpdateActorData.m_dwVID);
#endif
		return;
	}

	SNetworkActorData& rkNetActorData=f->second;

	CInstanceBase* pkInstFind=__FindActor(rkNetActorData);
	if (pkInstFind)
	{
		pkInstFind->ChangeArmor(c_rkNetUpdateActorData.m_dwArmor);
		pkInstFind->ChangeWeapon(c_rkNetUpdateActorData.m_dwWeapon);
		pkInstFind->ChangeHair(c_rkNetUpdateActorData.m_dwHair);

#ifdef ENABLE_ACCE_SYSTEM
		pkInstFind->ChangeAcce(c_rkNetUpdateActorData.m_dwAcce);
#endif
#ifdef ENABLE_EFFECT_SYSTEM
		pkInstFind->SetSpecialEffect(c_rkNetUpdateActorData.m_dwBodyEffect, c_rkNetUpdateActorData.m_dwWeaponEffectRight, c_rkNetUpdateActorData.m_dwWeaponEffectLeft);
#endif
		pkInstFind->ChangeGuild(c_rkNetUpdateActorData.m_dwGuildID);
		pkInstFind->SetAffectFlagContainer(c_rkNetUpdateActorData.m_kAffectFlags);
		pkInstFind->SetMoveSpeed(c_rkNetUpdateActorData.m_dwMovSpd);
		pkInstFind->SetAttackSpeed(c_rkNetUpdateActorData.m_dwAtkSpd);
		pkInstFind->SetAlignment(c_rkNetUpdateActorData.m_sAlignment);
		// pkInstFind->SetLevelText(c_rkNetUpdateActorData.m_dwLevel);
		// pkInstFind->SetLevel(c_rkNetUpdateActorData.m_dwLevel);
		pkInstFind->SetPKMode(c_rkNetUpdateActorData.m_byPKMode);
		pkInstFind->SetStateFlags(c_rkNetUpdateActorData.m_dwStateFlags);
#ifdef ENABLE_SKILL_COLOR_SYSTEM
		pkInstFind->ChangeSkillColor(*c_rkNetUpdateActorData.m_dwSkillColor);
#endif
		//if( c_rkNetUpdateActorData.m_dwMountVnum != 0 )
		//{
		//	pkInstFind->MountHorse(c_rkNetUpdateActorData.m_dwMountVnum);
		//}
		//else
		//{
		//	if( pkInstFind->IsMountingHorse() )
		//	{
		//		pkInstFind->DismountHorse();
		//	}
		//}
	}

	rkNetActorData.m_kAffectFlags=c_rkNetUpdateActorData.m_kAffectFlags;
	rkNetActorData.m_dwGuildID=c_rkNetUpdateActorData.m_dwGuildID;
// #if defined(ENABLE_GROWTH_PET_SYSTEM)
	rkNetActorData.m_dwLevel = c_rkNetUpdateActorData.m_dwLevel;
// #endif
	rkNetActorData.m_dwMovSpd=c_rkNetUpdateActorData.m_dwMovSpd;
	rkNetActorData.m_dwAtkSpd=c_rkNetUpdateActorData.m_dwAtkSpd;
	rkNetActorData.m_dwArmor=c_rkNetUpdateActorData.m_dwArmor;
	rkNetActorData.m_dwWeapon=c_rkNetUpdateActorData.m_dwWeapon;
	rkNetActorData.m_dwHair=c_rkNetUpdateActorData.m_dwHair;

#ifdef ENABLE_ACCE_SYSTEM
	rkNetActorData.m_dwAcce = c_rkNetUpdateActorData.m_dwAcce;
#endif
#ifdef ENABLE_EFFECT_SYSTEM
	rkNetActorData.m_dwBodyEffect=rkNetActorData.m_dwBodyEffect;
	rkNetActorData.m_dwWeaponEffectRight=rkNetActorData.m_dwWeaponEffectRight;
	rkNetActorData.m_dwWeaponEffectLeft=rkNetActorData.m_dwWeaponEffectLeft;
#endif
	rkNetActorData.m_sAlignment=c_rkNetUpdateActorData.m_sAlignment;
	rkNetActorData.m_byPKMode=c_rkNetUpdateActorData.m_byPKMode;

#ifdef ENABLE_SKILL_COLOR_SYSTEM
	memcpy(rkNetActorData.m_dwSkillColor, c_rkNetUpdateActorData.m_dwSkillColor, sizeof(rkNetActorData.m_dwSkillColor));
#endif
}

The only problem now is that the level and the name of the pet doesnt work. Here is the image:

https://metin2.download/picture/US7F46t8P6yMSSU99cfq7UPqznh1LRk5/.png

Edited by Metin2 Dev
Core X - External 2 Internal

โ€œ๐“๐“ต๐“ต ๐”€๐“ฎ ๐“ฑ๐“ช๐“ฟ๐“ฎ ๐“ฝ๐“ธ ๐“ญ๐“ฎ๐“ฌ๐“ฒ๐“ญ๐“ฎ ๐“ฒ๐“ผ ๐”€๐“ฑ๐“ช๐“ฝ ๐“ฝ๐“ธ ๐“ญ๐“ธ ๐”€๐“ฒ๐“ฝ๐“ฑ ๐“ฝ๐“ฑ๐“ฎ ๐“ฝ๐“ฒ๐“ถ๐“ฎ ๐“ฝ๐“ฑ๐“ช๐“ฝ ๐“ฒ๐“ผ ๐“ฐ๐“ฒ๐“ฟ๐“ฎ๐“ท ๐“พ๐“ผ.โ€ ~ ๐“–๐“ช๐“ท๐“ญ๐“ช๐“ต๐“ฏ ๐“ฝ๐“ฑ๐“ฎ ๐“–๐“ป๐“ฎ๐”‚

Link to comment
https://metin2.dev/topic/29006-char-level-doesnt-show/#findComment-148867
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
ร—
ร—
  • Create New...

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.