Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Guide] CL_SAFECODE CONNECT_CLIENT_CODE Server side client locking.

Newbie Spellweaver
Joined
Jul 21, 2006
Messages
95
Reaction score
10
Hi rxaicy,

To do this, you need to do the following. First set the above mentioned lines as this in your server hotuk:

*CONNECT_CLIENT_CODE 1
*CLSAFE_CODE 1
*DISCONNECT_CLIENT_BADCODE 1
*DISCONNECT_CLSAFE_CODE 1
*CL_PROTECT 1

Now, launch your client in full mode (that is without using the gm enable client side hotuk). Since you have the value set as 1 above, upon finishing loading ingame, you will disconnect from the server. Now, open up the “LogFile” folder and go to your daily logs folder. So based on today’s date, it will be 9-10.log. On opening it, you should see something like this:

4:33:27 - ID:( test ) / Name:( test00 ) / IP ( 127.0.0.1 ) Memory Function Code Error ( -1460179885 )( 9 )

So that code from the memory function code error -1460179885 goes as the value for both *CONNECT_CLIENT_CODE and *CLSAFE_CODE. Thus, it will become

*CONNECT_CLIENT_CODE -1460179885
*CLSAFE_CODE -1460179885
*DISCONNECT_CLIENT_BADCODE 1
*DISCONNECT_CLSAFE_CODE 1
*CL_PROTECT 1

But now, you need to do it again, as the server requires 2 values to maintain the connect. So after you do what I said above, save your hotuk, go to the server and say “reload config” and then log in via fullmode into your server again. Once again, you will disconnect.

Go to your “LogFile” folder and open ¬9-10.log again. And you should see a new memory function code error. This is your second code.

4:43:42 - ID:( test ) / Name:( test00 ) / IP ( 127.0.0.1 ) Memory Function Code Error ( 5585398765 )( 9 )

So after this, this should be the final setup for lines that you requested.

*CONNECT_CLIENT_CODE -1460179885
*CLSAFE_CODE -1460179885
*CONNECT_CLIENT_CODE 5585398765
*CLSAFE_CODE 5585398765
*DISCONNECT_CLIENT_BADCODE 1
*DISCONNECT_CLSAFE_CODE 1
*CL_PROTECT 1

So after you save that in the hotuk, do “reload config” on the server, and log back in your public client in fullmode. This time, you will be able to fully log in and not disconnect. You can test it by checking your wh or buying and selling from shops etc. Hope it all helps rxaicy :).
 
Last edited by a moderator:
Back
Top