Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×

[C++]Client source c++20


SamuraiHUN

Recommended Posts

  • Bronze

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
Link to comment
Share on other sites

  • 4 months later...
  • 4 months later...
On 2/18/2022 at 8:20 PM, Debloat said:

Hi, thank you for the tutorial! I am getting error here. Any idea guys? Error goes away in C++17

spacer.png

same

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

3 hours ago, Clawz said:

same

 

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

c085e29bd3feee41a826e33ecada1258.png

3f770573cb6631bf325713f0bb50b130.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 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)

 

Link to comment
Share on other sites

  • 2 months later...

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
Share on other sites



  • Activity

    1. 1

      Costume shining/costume effect system

    2. 992

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    3. 3

      Biologist Manager (C++ & LUA)

    4. 3

      Visual studio 2022 compiling issue

    5. 63

      Metin2 | Mount System Renewal

    6. 58

      Metin2 2004 Beta Client

    7. 0

      🔥Paradise2 PVP SERVER GLOBAL!! EN-ES-PT 🕐📢Apertura 11 de diciembre 21 horas de España!

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.