Discussion on [Release] CheckClientVersion Compare-BugFix within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
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:
Code:
client 1215955205 server 1215955205 = no logout
client 1215955204 server 1215955205 = logout
client 1215955206 server 1215955205 = no logout [bug]
client 9999999999 server 1215955205 = no logout [bug]
Yes, if clientversion > serverversion, the character'll not disconnect!
Here a dif to fix this problem:
Code:
This difference file has been created by IDA Pro
game_r2089M
000E0373: 8E 84
Code:
This difference file has been created by IDA Pro
game_r34083
000F4904: 8E 84
Code:
This difference file has been created by IDA Pro
game_r40250
00100819: 8E 84
Code:
This difference file has been created by IDA Pro
game_r40267
001000C9: 8E 84
Code:
This difference file has been created by IDA Pro
game_r40424
00100A79: 8E 84
With this edit, if clientversion != serverversion = character'll always disconnect!
Here is a little fix for this cool stuff.
This dif change the JLE in 'if' to JZ.
TESTED! Works, but the clientversion define with config is not working.
(clientversion: 1215955206)
You have to change the clientversion in game file on offset: 2FE3F7 in game_r2089M_32.
The original function is:
Code:
if [serverCV] > [binaryCV] do
send(warn_message)
do_logout()
Need some help with image compare 07/22/2012 - AutoIt - 0 Replies I managed to write this primitive code, I know it was possible to put loops or smthg and this code make to 100lines. So everything worked fine till i wrote variables like $1, $2. When I start code it gives me general error with that dont send, microsoft shit. Any idea why its is?
#include <GDIPlus.au3>
;===============================
Global $1,$2,$3,$4,$5
;===========================================
_GDIPlus_Startup()
;=========compare with===================
$fname1 = @ScriptDir & ...
Compare Between Pet 04/13/2010 - Grand Chase Philippines - 32 Replies Ask lang po ako... ano po ba mas mainam gamitin na pet sa dungeon at sa
pvp... same kc cla cute sarap gawing stuff toy ang mga to....
Value Compare 3/4 10/28/2007 - Kal Online - 3 Replies Also wie der Titel scho sagt versuch ich rauszufinden wie ich auf die Value komm, die man eintragen muss um beispielsweise auf Staggering Blow zu kommen!
Gibt hier zwar ne Liste wo drin steht, dass der Wert 3000 ist und klappt auch... aber wär doch interessant zu verstehen warum es jetzt genau 3000 is...also wo kann ich den Wert ablesen/wie find ich den raus?
Compare 07/20/2007 - Silkroad Online - 3 Replies hi guys.. this is my character's current stats.. can other pure str bladders tell me if my stat's are okay and the things i might need to do to improve it.. i'm currently lvl 78. here's a pic of my statshttp://i110.photobucket.com/albums/n94/shif7i 7down/me.jpg