[Release] CheckClientVersion Compare-BugFix

04/20/2013 17:01 lollo_9_1#1
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!
04/20/2013 17:17 serq#2
No one is using it anyway.
04/20/2013 17:20 .Rebel#3
Quote:
Originally Posted by serq View Post
No one is using it anyway.
no one use 2089 thats why and because many of us guys just know can change client version just some weeks ago

tanks lollo_9_1 that very cool from u release that
04/20/2013 17:33 serq#4
Quote:
Originally Posted by .Rebel View Post
no one use 2089 thats why and because many of us guys just know can change client version just some weeks ago

tanks lollo_9_1 that very cool from u release that
weeks ? you mean years. At lest we knew it. Let me see

Code:
http://www.mpcforum.pl/topic/285168-tutsprawdzanie-wersji/
29.01.2011
04/20/2013 17:43 xP3NG3Rx#5
Thanks, but I already corrected myself almost two months ago.

I wanted to release it.. But I forget :awesome:
Here is my prewritten post:
10/27/2013 15:57 qAleXso#6
The game34083 does not work ...
10/27/2013 16:18 [SA]Tears aka.[BlackBite]#7
it work, tested :3

i mean on my game it works :d which version you have stripped? not stripped 8 mb? not stripped with func names 62 mb?
10/27/2013 16:48 Marius Sorin#8
Tested on 8mb version and not working :)
10/27/2013 18:40 qAleXso#9
Quote:
Originally Posted by [SA]Tears aka.[BlackBite] View Post
it work, tested :3

i mean on my game it works :d which version you have stripped? not stripped 8 mb? not stripped with func names 62 mb?
My Game has 6 MB.
10/27/2013 18:45 Shutox#10
Not working ^^.
But thanks.
10/28/2013 04:20 [SA]Tears aka.[BlackBite]#11
hmm i8 have the ~63mb version and there it works :D
10/28/2013 11:37 Marius Sorin#12
Strange , maybe in 6~8MB some bytes are changed ..
10/28/2013 11:58 [SA]Tears aka.[BlackBite]#13
possible that the offsets/bytes are different and thats the reason why it work only on my game :D
10/28/2013 12:02 Sean_Derulo#14
Funtkuniert nicht!
Doesn´t Work!
10/28/2013 12:45 amukaçi35#15
63MB r34083 game test %100 working

6 ~~ 8 mb fail