Jump to content

Recommended Posts

This is the hidden content, please

Metin2 Download

 

How to Update Client src c++20

Happy Daniel Bryan GIF by WWE

Thanks lot of @ Mali

 

First, we open the client source with visual studio 2022.

Select all projects and right click on them -> properties -> General -> c++ language standard -> Here we choose c++20.

https://metin2.download/video/Q0tB47SEBj0LU7q27Sy64U11018tamx5/.mp4

 

 need to make some step from this topic

This is the hidden content, please

 

If you don't understand something, you can ask your questions here.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 239
  • kekw 1
  • Eyes 2
  • Angry 1
  • Not Good 3
  • Confused 1
  • Good 84
  • muscle 3
  • Love 12
  • Love 147
Link to comment
https://metin2.dev/topic/27996-cclient-source-c20/
Share on other sites

  • 4 months later...
  • 4 months later...
  • 2 months later...
  • Premium
On 6/23/2022 at 7:06 PM, Luzer said:

You can create additional variable for each packet.  This will fix your problem.

c085e29bd3feee41a826e33ecada1258.png

3f770573cb6631bf325713f0bb50b130.png

Please don't start to make lot of useless variables.

The error is just because of reference in function parameter.

 

void Set(int header, TPacketType && rPacketType);
void CNetworkPacketHeaderMap::Set(int header, TPacketType && rPacketType)

 

  • Metin2 Dev 2
  • Love 1
Link to comment
https://metin2.dev/topic/27996-cclient-source-c20/#findComment-151537
Share on other sites

  • 2 months later...
  • Active+ Member

Thank you. However, it has a problem.
The following part in EterBase/Stl.h:

template <typename T>
void DeleteListItem(std::list<T> * pList, T pItem)
{
	auto itor = pList->begin();
	for (; itor != pList->end(); ++itor)
	{
		if (pItem == *itor)
		{
			if (1 == pList->size())
			{
				pList->clear();
			}
			else
			{
				pList->erase(itor);
			}
			break;
		}
	}
}

After doing this I get this error:

spacer.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/27996-cclient-source-c20/#findComment-153305
Share on other sites

  • 2 months later...
  • Active+ Member

Thank you for sharing this tutorial, for the Set function error

 

NetPacketHeaderMap.h

//Add under the SPacketType struct

        TPacketType& createPacketType(int iSize = 0, bool bFlag = false)

        {

            return *(new TPacketType(iSize, bFlag));

        }

 

and replace all the 

//replace

    CNetworkPacketHeaderMap::TPacketType(

//to this

    createPacketType(

 

i solve it like this without any errors.

Link to comment
https://metin2.dev/topic/27996-cclient-source-c20/#findComment-154873
Share on other sites

  • 6 months later...

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.