Jump to content

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 152
  • Good 34
  • Love 7
  • Love 88
Link to comment
https://metin2.dev/topic/30512-check-version-on-login/
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 4
Link to comment
https://metin2.dev/topic/30512-check-version-on-login/#findComment-156015
Share on other sites

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