Jump to content

Check Version on Login


Recommended Posts

Hello community,

Checking the game version made by ymir never really entered my mind.

I decided to put the game version confirmation in the login as it makes more sense in my eyes.

With this measure you will no longer have players saying "I can't log in, I'm going straight down".
 

Preview

HCaxaab.png


Step by Step

This is the hidden content, please

Edited by Metin2 Dev International
Core X - External 2 Internal
  • Metin2 Dev 91
  • Good 14
  • Love 5
  • Love 37
Link to comment
Share on other sites

  • Nitro Booster
Nobody don't want compile source in every version change so you can add simple config.

Config.cpp

short g_NewClientVersion = 0;


		TOKEN("client_version")
		{
			str_to_number(g_NewClientVersion, value_string);
			fprintf(stderr, "CLIENT_VERSION: %d\n", g_NewClientVersion);
			continue;
		}

Config.h
  
  extern short g_NewClientVersion;

input_login.cpp
  
	if (pinfo->NewCheckVersion != g_NewClientVersion)
	{
		TPacketGCLoginFailure failurePacket;

		failurePacket.header = HEADER_GC_LOGIN_FAILURE;
		strlcpy(failurePacket.szStatus, "VERSION", sizeof(failurePacket.szStatus));
		d->Packet(&failurePacket, sizeof(TPacketGCLoginFailure));
		return;
	}

and change int NewCheckVersion to short NewCheckVersion, bcs which crazy guy will make 1231312312 the version.

 

  • Good 3
Link to comment
Share on other sites

Announcements



  • Similar Content

  • Activity

    1. 113

      Ulthar SF V2 (TMP4 Base)

    2. 2

      Feeding game source to LLM

    3. 0

      Target Information System

    4. 2

      Feeding game source to LLM

    5. 2

      anti exp explanation pls

    6. 2

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

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