Jump to content
Sign in to follow this  
Ezrekith

[C++] "Family Friendly" version checker

Recommended Posts

Hi folks!

 

Basically you check the version from the client src and from the auth version file and if its not correct the client will give you a popup msg at the login phase like: "Your client is outdated as fun ;) , please use the patcher program!"

Lets go:
 

Binary / packet.h

 

Search for:

Please login or register to see this code.

Add this into the list:

Please login or register to see this code.

 

Binary / AccountConnector.cpp

Add #include "Locale_inc.h" into your includes

Search for:

Please login or register to see this code.

You can see this little friend right there:

Please login or register to see this code.

Replace with this:

Please login or register to see this code.

 

Binary / Locale_inc.h

Add this:

Please login or register to see this code.

 

Server Source / game / packet.h

Search for:

Please login or register to see this code.

Add this into the list:

Please login or register to see this code.

 

Server Source / game / input_auth.cpp

 

Search for:

Please login or register to see this code.

Add above:

Please login or register to see this code.

Search for this:

Please login or register to see this code.

Add under this:

Please login or register to see this code.

 

Now go to your cd /usr/game/auth folder

-Create a file named VERSION

-Write 3333 into it

 

Client / root / intrologin.py

Search for this:

Please login or register to see this code.

Add this into the list:

Please login or register to see this code.

 

Have fun with it!

 

EDIT:
 

If you don't have the client version check enabled:

Server Source / game / config.cpp

Search for this:

// END_OF_LOG_KEEP_DAYS_EXTEND

Add under this:

LoadClientVersion();

Edited by Ezrekith

Share this post


Link to post
Share on other sites
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.