Jump to content

Recommended Posts

Enumeration must be identical in client / server / SQL/ dump_proto

Example of a wrong enumeration OF source.

enum Server : std::uint8_t
{
POINT_WOLFMAN, // OK
POINT_WARRIOR, // OK
}

enum Client : std::uint8_t
{
POINT_WARRIOR, // WRONG
POINT_WOLFMAN, // WRONG
}

 

Example of a correct enumeration.

enum Server : std::uint8_t
{
POINT_WOLFMAN, // OK
POINT_WARRIOR, // OK
}

enum client : std::uint8_t
{
POINT_WOLFMAN, // OK
POINT_WARRIOR, // OK
}

 

Read more about how enum works here.  https://en.cppreference.com/w/cpp/language/enum

Most likely, I think you fucked the dump_proto enumerations.

 

Example of wrong dump_proto enumeration.

//Dump_proto
int get_Item_ApplyType_Value(string inputString)
{
	string arApplyType[] =
	{

		"APPLY_WOLFMAN", // ok
		"APPLY_BLEEDING", // ok
	};
	int retInt = -1;
  
// ProtoReader.cpp
int get_Item_ApplyType_Value(std::string inputString)
{
	std::string arApplyType[] =
	{
		"APPLY_BLEEDING", // wrong
		"APPLY_WOLFMAN", // wrong
	};

	int retInt = -1;

Check also the  SQL enumeration order, from item_attr

  • Love 2
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      Metin2 effect script files (MSE and MSA file) how can convert

    2. 10

      Multi Language System

    3. 0

      We are looking for a C++ and Python programmer

    4. 0

      [Quest Scheduler Request] Is there a way to make a quest run independet of player events? Lets say start quest automatically at server startup?

    5. 111

      Ulthar SF V2 (TMP4 Base)

    6. 0

      Quest function when 102.kill definition whereabouts help

    7. 5

      [M2 FILTER] Customized Client Filter

    8. 0

      [INGAME] RGB Color on chat broken

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