Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 15:37

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[TUTORIAL][r40250] Bug-Fix for CheckClientVersion

Discussion on [TUTORIAL][r40250] Bug-Fix for CheckClientVersion within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
redrpci2008's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 29
Received Thanks: 24
[TUTORIAL][r40250] Bug-Fix for CheckClientVersion

Hello, dear community!

Since I've read lollo_9_1's topic ( ) about fixing the client version checking bug, I've thought that it would be useful that a fix for the source code would exist, since this is now used as a security measure.

Simply open the Srcs\Server\game\src\config.cpp file, go to line 1288,
and change this code:

Code:
if (version > date)
with this code:

Code:
if (version != date)
That's all! Happy compiling!
redrpci2008 is offline  
Thanks
2 Users
Old 01/03/2014, 07:13   #2
 
elite*gold: 25
Join Date: Sep 2011
Posts: 5,536
Received Thanks: 1,266
You just use the wrong binary
IchVerabschiedeMich is offline  
Old 01/03/2014, 07:16   #3
 
redrpci2008's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 29
Received Thanks: 24
Quote:
Originally Posted by Padrio View Post
why not just this:
Code:
if (true)
You just use the wrong binary
I'm using mainline.

And since there are 2 integer values that must be compared, this is the solution for my code.

redrpci2008 is offline  
Old 01/03/2014, 07:32   #4
 
.PolluX's Avatar
 
elite*gold: 81
Join Date: Nov 2012
Posts: 975
Received Thanks: 531
Why that mutch threads for source? One Big Thread for all of them like " Kleiner Releaeses " Would be batter than spamming this board with all of them..^^
.PolluX is offline  
Old 01/03/2014, 08:52   #5

 
elite*gold: 0
Join Date: Jan 2013
Posts: 348
Received Thanks: 353
I'd recommend taking out the if instead of replacing > with !=
TheMarv :< is offline  
Old 01/03/2014, 09:01   #6
 
redrpci2008's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 29
Received Thanks: 24
Quote:
Originally Posted by TheMarv :< View Post
I'd recommend taking out the if instead of replacing > with !=
If I take out the if, the core just simply disconnects all players
redrpci2008 is offline  
Old 01/03/2014, 09:07   #7

 
elite*gold: 0
Join Date: Jan 2013
Posts: 348
Received Thanks: 353
Quote:
Originally Posted by redrpci2008 View Post
If I take out the if, the core just simply disconnects all players
oh yeah just saw your screenshot
I thought the if-statement was for the opposite
TheMarv :< is offline  
Old 07/15/2014, 20:56   #8
 
lollo_9_1's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
Note: The ClientVersion is checked thrice:
Code:
$ fgrep "version > date" *
config.cpp:		if (version != date) // @fixme103 (version > date)
input_login.cpp:				if (version != date) // @fixme103 (version > date)
input_main.cpp:					if (version != date) // @fixme103 (version > date)
lollo_9_1 is offline  
Thanks
1 User
Old 07/15/2014, 21:04   #9
 
.T4Ump's Avatar
 
elite*gold: 0
Join Date: Oct 2013
Posts: 115
Received Thanks: 192
Everyone has corrected source..
.T4Ump is offline  
Reply

Tags
clientversion, config, cpp, r40250


Similar Threads Similar Threads
[TUTORIAL] Gamecore r40250 Source Code Configuration
11/26/2014 - Metin2 PServer Guides & Strategies - 32 Replies
Hello, community! This tutorial was made for the C++ noobs (those people who don't know the difference between a bool and an int), so please don't rage at me :D. In this short how-to topic, I'll show you how to configurate the basic functions of the core from the source code, so you won't have to mess up with Hex editors, .diff files and so on, because there may be a high chance that the adresses (or offsets! - those 0x3678ABCD -like things) won't match up, because of the different...
[Release] CheckClientVersion Compare-BugFix
12/30/2013 - Metin2 PServer Guides & Strategies - 32 Replies
If u don't know, in the client and in the game there's a "number" (a const char* converted as a number with atoi in game, ps. atoi evaluates to 0 if the "number" contains characters not-digits) The default value is 1215955205 (g_stClientVersion), if the client version is smaller than the game ur character'll disconnect in 10 seconds with a message like this "U must patch the client to play" (u can declare it in locale_string.txt) The problem is this: client 1215955205 server 1215955205 =...



All times are GMT +1. The time now is 15:38.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.