Jump to content
TLThings

[C++] "Family Friendly" version checker


Guest Ezrekith

Recommended Posts

Guest Ezrekith

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
Link to post
Share on other sites
  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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