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!

[Tutorial] How to find client version - Source Code change

Joined
Sep 27, 2007
Messages
14
Reaction score
4
I'll show below how to find the client version and the path I walked to get there (source code change).
You don't have to rebuild the source code. It's just curiosity for those interested on it.


PROBLEM
When you try to log in using any DR client you may receive the following message:

"Your version is not up-to-date. Please go to 'http://forum.dr-int.com' to receive an update."

CAUSE
This occurs because the client and server are running different versions.


SOLUTION
Change client or server side to the same version number.

I actually only know how to change server version, so that's what is shown below.

Client version is a secret number called "MY_CODE" and it's stored in the top of the files proxyserver.ini, dbdemon.ini and agentserver.ini.

Example:
proxyserver.ini
Code:
[extra]
[SIZE=3][B]MY_CODE = 3124[/B][/SIZE]
statuspath=C:\drserver\statuslog.txt

[nation_set]
nation_name = USA
BETA_SERVER = 1

[server_set_info]
own_server_set_number = 100
default_max_user_can_login = 500
default_max_user_can_login_per_sec = 50

[server_info]
own_server_ip_for_server=127.0.0.1
own_server_port_for_server=3001
own_server_ip_for_user=127.0.0.1
own_server_port_for_user=9004
primary_proxy_server_ip=127.0.0.1
primary_proxy_server_port=3001
secondary_proxy_server_ip=127.0.0.1
secondary_proxy_server_port=3002

[server_manager]
num_of_available_manager_ip = 1
manager_ip0 = 127.0.0.1
[external_server_info]
num_of_external_servers = 104

To find the client version (MY_CODE), you need to:

1 - Attempt to log in using any info (example: user: 1, pass:1);

2 - Watch DBDemon logs (picture 2) and look for MY_CODE*;

3 - Now, get this number and change it on the files (proxyserver.ini, dbdemon.ini and agentserver.ini).

*Since the DBDemon version I had didn't output MY_CODE, I've modified the source code to show it and recompiled.


HOW TO CHANGE THE SOURCE CODE

I won't describe how to setup an environment, because I myself don't know it well, and because it would take a lot of time.
But considering you already have "Microsoft Visual Studio C++" installed, I'll show where you change the source code so it outputs the client MY_CODE when a login attempt occurs.

1- Open DBDemon project;

2- Open DragonLogInServer.cpp;

3- Look for the following code:
::MyLog( 0, "Not match MY_CODE : ID[ %s ] - IP[ %s ]", pCN->id, pCN->ip_address );

4- Change it to:
::MyLog( 0, "Not match MY_CODE : ID[ %s ] - IP[ %s ] - MY_CODE[ %d] ", pCN->id, pCN->ip_address, code );

5- Rebuild the project (it's called ultra_server in the source I have);

6- Take the new DBDemon.exe from the Debug folder and place it in your DRserver folder (c:\DRServer\DBdemon\);

7- Restart the server (proxy, dbdemon and agent), attempt to login and see the magic. Now it will output the MY_CODE;

8- Change it in the server files and you will be able to log in.


client-not-up-to-date.JPG - [Tutorial] How to find client version - Source Code change - RaGEZONE Forums dbdemon-my_code.JPG - [Tutorial] How to find client version - Source Code change - RaGEZONE Forums same-version.JPG - [Tutorial] How to find client version - Source Code change - RaGEZONE Forums login-success.JPG - [Tutorial] How to find client version - Source Code change - RaGEZONE Forums source-code-change.JPG - [Tutorial] How to find client version - Source Code change - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Last edited:
Initiate Mage
Joined
Apr 23, 2020
Messages
24
Reaction score
2
我可以在没有可用源代码的情况下上传副本吗?我有源代码的副本,但出现cl.exe错误。我的英语不好,对不起



Is there any source code that can be used? There is a cl.exe error when compiling DragonLogInServer.cpp in my source code! For help. My English is not good, sorry.



Can you upload a usable client, thank you very much!
 
Initiate Mage
Joined
Apr 23, 2020
Messages
24
Reaction score
2
How to compile the source code, is there a supporting client? Please help me, friend
 
Back
Top