Jump to content

Recommended Posts

can you help me? i have some errors in binnary.

Exemple: Error    261    error C2039: 'GetMotionPointer' : is not a member of 'CGraphicThing'   

Error    14    error C2039: 'shared_ptr' : is not a member of 'std'   
Error    200    error C2065: 'm_motions' : undeclared identifier    

Error    362    error C2143: syntax error : missing ',' before '<'    

Can someone help me?

  • Metin2 Dev 1
  • Premium
2 hours ago, zoowiS said:

can you help me? i have some errors in binnary.

Exemple: Error    261    error C2039: 'GetMotionPointer' : is not a member of 'CGraphicThing'   

Error    14    error C2039: 'shared_ptr' : is not a member of 'std'   
Error    200    error C2065: 'm_motions' : undeclared identifier    

Error    362    error C2143: syntax error : missing ',' before '<'    

Can someone help me?

Try with "std::shared_ptr"

Ulthar

Error    14    error C2440: '=' : cannot convert from 'std::shared_ptr<CGrannyMotion>' to 'const CGrannyMotion *'    \source\EterGrnLib\ThingInstance.cpp    478    1    EterGrnLib
 

Edited by zoowiS
  • 2 weeks later...
  • Premium
On 1/21/2023 at 3:21 AM, welzi said:

Hello, I have a problem where the server freezes as soon as I equip a costume weapon and won't let me back into character.

Hello. Re-do everything, cuz you did something wrong in a wrong section. ?

  • Good 1

Ulthar

  • 7 months later...
  • 4 months later...
  • 4 weeks later...
  • 1 month later...
On 8/15/2022 at 9:45 AM, Ulthar said:

I dont know why, but its not working for me ? Compiled without any error in vs2022, but the attached sashes with animations still without animation as before the edits ?
Weapon is good, but sash isnt
https://metin2.download/picture/sjbb1YNr9u0HbOH60t0pYLh8L4rruPQx/.gif


 

EDIT

fixed



Problem was:

This part:

if (CGrannyLODController* pLODController = m_LODControllerVector[CRaceData::PART_SASH])
    {
        if (CGrannyModelInstance* pWeaponModelInstance = pLODController->GetModelInstance())
        {
            CGraphicThing* pItemGraphicThing = pItemData->GetModelThing();
            if (std::shared_ptr<CGrannyMotion> pItemMotion = pItemGraphicThing->GetMotionPointer(0))
            {
                pWeaponModelInstance->SetMotionPointer(pItemMotion);
            }
        }
    }

will go to: 

void CActorInstance::AttachSash(CItemData * pItemData, float fSpecular)
(in actorinstanceattach.cpp)

Instead of:
void CActorInstance::AttachWeapon(DWORD dwParentPartIndex, DWORD dwPartIndex, CItemData * pItemData)


I know it's like ancient post by now but might be useful to someone, don't forget to add 
 

case CRaceData::PART_SASH:

in ThingInstance.cpp:
 

	for (int i = 0; i < m_LODControllerVector.size(); ++i)
	{
		switch (i)
		{
		case CRaceData::PART_WEAPON:
		case CRaceData::PART_WEAPON_LEFT:
		case CRaceData::PART_SASH:
			break;

		default:
			SetMotionPointer(m_LODControllerVector[i]);
			break;
		}
	}
	return true;
}

 

Edited by steveballs10
  • 2 months later...

 

Le tutoriel empêche la compilation en DEBUG
Pour les personnes ayant des problèmes avec la compilation en DEBUG, voici des modifications qui aiderons a ce que vous puissiez compiler en DEBUG
1.Thing.cpp

Spoiler

9382474de57f5729a19388f2a394c331.png

daac347357cb46df7cafac0b4db22477.png

00081969dfdac16651c9980caee60e6b.png



2.Model.h

Spoiler

437c1c84e53685c1035e0d4c72408948.png


3.Model.cpp

Spoiler

e7aec549098bfdacd22216987f4d0b2f.png

bcdfbcdcba504f4dc04d4c54f6c81487.png

987c3affd178bfc335b53441f17d5e39.png

 

Edited by Metin2 Dev International
Core X - External 2 Internal
  • 7 months later...
  • Honorable Member
On 12/30/2019 at 11:12 AM, Alpha said:

But thats already built into the game you can enable it by just adding  the

->Deform();

Part for buildings all you are adding seems to be LOD to the animations and that is basically GrannySampleModelAnimationsAcceleratedLOD

Some of the M2M Map Objects have Animations builtin and also some metin2 objects there is a watermill for example that has an animation in its gr2 file

I can confirm this, Metin2 2004 Closed Beta(0:03):

Spoiler

 

Old clients had this, but then they changed method. They forgot(?) to call Deform in change:

Spoiler

.png

If you have some diffing skills you can even use @ Distraught's code in the rain(404) sf client:

Spoiler

.gif

  • Metin2 Dev 1
  • Love 1

 

On 2/18/2025 at 8:55 PM, Mali said:

I can confirm this, Metin2 2004 Closed Beta(0:03):

  Reveal hidden contents

 

Old clients had this, but then they changed method. They forgot(?) to call Deform in change:

  Hide contents

.png

If you have some diffing skills you can even use @ Distraught's code in the rain(404) sf client:

  Hide contents

.gif

Instead of making changes to the tutorial, can you just add Deform to the function?

I couldn't, if anyone can help.

Edited by Klaus
  • Good 1

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.