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!

[Release] Legend.mu client & server source code S16 1.1

Junior Spellweaver
Joined
Oct 4, 2007
Messages
173
Reaction score
74
I've the next error, i compiled it with Visual Studio 2019 but using Platform Toolset Visual Studio 2013 (v120)

mesosa - [Release] Legend.mu client & server source code S16 1.1 - RaGEZONE Forums


Read thread, you need to change some in code: http://forum.ragezone.com/f197/release-legend-mu-client-server-1195391-post9069370/#post9069370
Anyway, if you have some knowledge of c++ you can fix it by yourself
 
Skilled Illusionist
Joined
Jun 22, 2017
Messages
363
Reaction score
557
I tried to use full client of legend.mu + main.dll compiled by Jorge2016 from tuservermu and doesnt work
I tried to use full client of legend.mu + main.exe (from @myheart) + main.dll compiled by Jorge2016 from tuservermu and doesnt work

In both cases the main doesnt open

How we can connect to our local server to continue working and fix some problems that we could have when we try to connect to 127.0.0.1?

Srry If I ask some "newbie" questions, I'm web developer, it's my first time with C++/ mains/dlls compiled.. and a lot of new stuffs :p

use this client:
and change IpAddress in Offset.h from the mesosa source
 
Junior Spellweaver
Joined
Oct 4, 2007
Messages
173
Reaction score
74
Re: [Release] Legend.mu client & server source code S16 1.1

sVmF0sX - [Release] Legend.mu client & server source code S16 1.1 - RaGEZONE Forums


Boost_1_55_0 on windows10 64bits
What version of VS you have installed? I didnt wanted to bother with console error when compiling boost 1.55 with vs2019, after i was getting errors with server. So i used newest version.

It's seems that 1.55 boost doesnt know about my vs2019 or newest version from 2013 year and cant get proper tool set

So you can find some workarounds:
1) use mingw compiler
2) change end-of-line symbol
3) use some other hacks in .bat
4) try boost 1.54
That i found when googling



since Webzen switched to use themida, some people can't hooking dll. so i leave hooked main 1.19.46 here:
Btw, its unpacked now?



I tried to use full client of legend.mu + main.dll compiled by Jorge2016 from tuservermu and doesnt work
I tried to use full client of legend.mu + main.exe (from @myheart) + main.dll compiled by Jorge2016 from tuservermu and doesnt work

In both cases the main doesnt open

How we can connect to our local server to continue working and fix some problems that we could have when we try to connect to 127.0.0.1?

Srry If I ask some "newbie" questions, I'm web developer, it's my first time with C++/ mains/dlls compiled.. and a lot of new stuffs :p
Mine main.dll + main from @myheart is working, but i'm getting disconnected from server...



Code:
###### Log Begin ######
-------------------------------------------------------------------------------------
Mu online 1.19Ћ (Kor) executed. (1.19.46.0)
2021/03/10 10:31
------------------------------------------------------------------------------------
> To read config.ini.
> gg init success.
-------------------------------------------------------------------------------------
> Screen size = 800 x 600.
> Start window success.
> OpenGL init success.
-------------------------------------------------------------------------------------
CGFxMBoxShop Not Found Model : 6174
> Loading ok.
[Connect to Server] ip address = 127.0.0.1, port = 44405
Failed to connect. 
2021/03/10 10:31
[Send Packet Error] WSAGetLastError() != WSAEWOULDBLOCK
[Socket Closed][Clear PacketQueue]
[Socket Closed][Clear PacketQueue]
> Login Scene init success.
Destroy
So, it's kinda working but getting disconnect. Will check port



Anyone who need muerror.log decrypt, use or http://forum.ragezone.com/f197/xor-decoder-muerror-log-717452/




My main.exe (from myheart) and compiled main.dll by me.
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Sep 14, 2007
Messages
86
Reaction score
85
Re: [Release] Legend.mu client & server source code S16 1.1

I have same, all good but when main is load than it disconnect.
Maybe some ports in config server side or its problem main?
 
Junior Spellweaver
Joined
Oct 4, 2007
Messages
173
Reaction score
74
Re: [Release] Legend.mu client & server source code S16 1.1

I have same, all good but when main is load than it disconnect.
Maybe some ports in config server side or its problem main?
I think server side we can check with any client, ConnectServer will get proper error in log or console.



photo_2021-03-10_14-55-48 - [Release] Legend.mu client & server source code S16 1.1 - RaGEZONE Forums
And it's working, tested with 0.75 client, so main.exe + main.dll have wrong offsets i think
 

Attachments

You must be registered for see attachments list
Junior Spellweaver
Joined
Aug 7, 2010
Messages
137
Reaction score
137
Re: [Release] Legend.mu client & server source code S16 1.1

There are some logs like "crashlog" that are useless.

They were created for a purpose that we never finished.



This server does not require a specific client version.

Just need to be sure that packets are the same for some features.
 
Junior Spellweaver
Joined
Oct 4, 2007
Messages
173
Reaction score
74
Re: [Release] Legend.mu client & server source code S16 1.1

There are some logs like "crashlog" that are useless.

They were created for a purpose that we never finished.



This server does not require a specific client version.

Just need to be sure that packets are the same for some features.
Thx for reply, but i still dont know how to fix main.
Mine cant connect to 127.0.0.1:44405
 
Newbie Spellweaver
Joined
Dec 17, 2020
Messages
12
Reaction score
21
Re: [Release] Legend.mu client & server source code S16 1.1

you need to set GameServer.Active to 1 in settings table (mu_online_game) and flag to 1 in server_list table (mu_online_login)

also, i edited ServerList.bmd for server code 0 (original doesn't have entry for code 0).

 
Newbie Spellweaver
Joined
Aug 23, 2015
Messages
77
Reaction score
46
Re: [Release] Legend.mu client & server source code S16 1.1

also, i edited ServerList.bmd for server code 0 (original doesn't have entry for code 0).
What Editor did you use to edit ServerList.bmd?

I only have some older versions (for Season 8) and they don't seem to be able to decode the BMD of this client

Edit:
I found this editor MuEditor 1.9.25.zip:
- http://forum.ragezone.com/f197/release-mu-bmd-editor-eng-1148757/

And updated the file using:
- BMD Files -> ServerList.bmd -> S10

Now I can see the Server but I get disconnected when trying to connect.

2021-03-10 18_34_13-MU - [Release] Legend.mu client & server source code S16 1.1 - RaGEZONE Forums

Note:
I have added my local IP: 192.168.1.150 in Offset.h.
No updates for: ClientVersion and ClientSerial

If I use 127.0.0.1 I get disconnected when I open main.exe and the Servers List is not displayed and I get this MuError.log:
GFxMBoxShop Not Found Model : 6174> Loading ok.
[Connect to Server] ip address = 127.0.0.1, port = 44405
Failed to connect. 2021/03/10 18:40
[Send Packet Error] WSAGetLastError() != WSAEWOULDBLOCK
[Socket Closed][Clear PacketQueue]
[Socket Closed][Clear PacketQueue]
> Login Scene init success.
Destroy

2021-03-10 18_41_09-Main 2008 - Microsoft Visual Studio - [Release] Legend.mu client & server source code S16 1.1 - RaGEZONE Forums

ConnectServer log:
ProtocolCore: C1,04,F4,06,
ProtocolCore: C1,06,F4,03,00,00,

MuError.log (with my local IP: 192.168.1.150)
(decoded with: http://forum.ragezone.com/f197/xor-decoder-muerror-log-717452/)
CGFxMBoxShop Not Found Model : 6174> Loading ok.
[Connect to Server] ip address = 192.168.1.150, port = 44405
> Login Scene init success.
Send Request Server List.
Success Receive Server List.
Success Receive Server List.
[ReceiveServerConnect][Socket Closed][Clear PacketQueue]
[Connect to Server] ip address = 192.168.1.150, port = 55509
¼­¹ö¿ÍÀÇ Á¢¼ÓÁ¾·á.
[Socket Closed][Clear PacketQueue]
[Socket Closed][Clear PacketQueue]
Destroy

##########

Also, I didn't compile the older version of Boost and I just downloaded the latest compiled version for Boost 1.75.0 - MSVC 14.2 (32 bit) to use with the latest Visual Studio (2019) and C++17:
-

The problem with that is that in the latest version of Boost the boost::asio::io_service got deprecated and replaced by boost::asio::io_context ( ).

I just want the server to start so I just blindly replaced io_service with io_context but I don't know if that replacement is the only necessary change related to this io_service deprecated API.

Anyway, here's a temporary patch to compile the project and get to see the Servers List:
- View attachment diff_c++17_io_context.txt

The patch can be applied on the Teleport & Gates commit:
-
Here's the complete DB I exported. Use only for fast-testing and don't rely on it since this is a mix of everything that was posted in this thread:
- View attachment DB-exported-2021.03.10-19.09-v1.zip

ServerList.bmd with the first server (Legend x50) set to ID 0:
- View attachment serverlist.zip

Used client:
- Handrey04 - Full Client (TEST) - http://forum.ragezone.com/f197/release-legend-mu-client-server-1195391/#post9068930

Used main.exe: (without this main nothing happened on execution)
- posted by myheart
- http://forum.ragezone.com/f197/release-legend-mu-client-server-1195391/index8.html#post9070569
-

Tools: (posted by solarismu):
- http://forum.ragezone.com/f197/release-legend-mu-client-server-1195391/index8.html#post9070542
-

Note:
- WampServer can be used as the MySQL server -
- MySQL Workbench can be used to edit the database - To also update the version of MySQL, copy
FROM:
C:\wamp32\bin\mysql\mysql5.7.31\include
TO:
Lgd-Server-git\Dependencies\MySQL\include

FROM:
C:\wamp32\bin\mysql\mysql5.7.31\lib
TO:
Lgd-Server-git\Libraries
and
the MySQL DLL TO: Lgd-Server-git\Release
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Dec 17, 2020
Messages
12
Reaction score
21
got login window :D


to connect, you need to set (in settings table, mu_online_game):

Account.ConnectCheckTime - 180
GameServer.Serial -> same as serial in Offset.h (main.dll source)
GameServer.Version -> same as version in Offset.h (main.dll source)
Network.MaxConnectionPerIP - must be higher than 0

also, u need to copy EncDec key (or set your own) in PacketEncDec.h (main.dll source) and EncDec.h (server source) (key_1 and key_2 arrays)
 
Newbie Spellweaver
Joined
Aug 23, 2015
Messages
77
Reaction score
46
got login window :D
to connect, you need to set (in settings table, mu_online_game):

Account.ConnectCheckTime - 180
Can you export your complete database? Because mine is really trashed and I got missing tables. At the moment there's too many posts with incomplete and different tables. We need an export that works.
 
Newbie Spellweaver
Joined
Aug 23, 2015
Messages
77
Reaction score
46
got login window :D

to connect, you need to set (in settings table, mu_online_game):

Account.ConnectCheckTime - 180
GameServer.Serial -> same as serial in Offset.h (main.dll source)
GameServer.Version -> same as version in Offset.h (main.dll source)
Network.MaxConnectionPerIP - must be higher than 0

also, u need to copy EncDec key (or set your own) in PacketEncDec.h (main.dll source) and EncDec.h (server source) (key_1 and key_2 arrays)

I confirm this works.

Updated database:
- View attachment DB-exported-2021.03.10-20.06-v2.rar

The entries in the database were updated to:
static const char ClientVersion[8] = "1.07.17";
static const char ClientSerial[17] = "jw45af7xf4wxj198";

Update the Client PacketEncDec.h with the values from the Server EncDec.h
static const uint8 key_1[MAX_KEY_1] = { 0x75, 0x99, 0x5C, 0xBA, 0x44, 0x2C, 0x87, 0x66 };
static const uint8 key_2[MAX_KEY_2] = { 0xF3, 0xB3, 0x64, 0x36, 0xBE, 0xF6, 0x52, 0x01 };

static const uint8 key_final[MAX_KEY_1][MAX_KEY_2] =
{
0x22, 0x8F, 0x3B, 0x0A, 0x8E, 0x6A, 0x51, 0x32,
0xBA, 0xCC, 0xAA, 0xBF, 0xFB, 0x54, 0x24, 0x47,
0x00, 0xA1, 0x21, 0x02, 0x02, 0x21, 0xAB, 0x9F,
0xFE, 0x3A, 0xB0, 0x86, 0xBA, 0xAF, 0x34, 0x55,
0xCB, 0x63, 0x8D, 0xEA, 0x56, 0xE8, 0x51, 0x29,
0x7D, 0x2B, 0x5F, 0xC3, 0xB1, 0xE9, 0x8A, 0xFB,
0xBC, 0x89, 0x9F, 0xB2, 0xE7, 0x23, 0xA8, 0x3A,
0x6D, 0xFF, 0x5C, 0x58, 0x8B, 0x25, 0xAF, 0x62
};
 

Attachments

You must be registered for see attachments list
Junior Spellweaver
Joined
Oct 4, 2007
Messages
173
Reaction score
74
Re: [Release] Legend.mu client & server source code S16 1.1

Also, I didn't compile the older version of Boost and I just downloaded the latest compiled version for Boost 1.75.0 - MSVC 14.2 (32 bit) to use with the latest Visual Studio (2019) and C++17:
-

The problem with that is that in the latest version of Boost the boost::asio::io_service got deprecated and replaced by boost::asio::io_context ( ).

I just want the server to start so I just blindly replaced io_service with io_context but I don't know if that replacement is the only necessary change related to this io_service deprecated API.

Anyway, here's a temporary patch to compile the project and get to see the Servers List:
- View attachment 169322
I think, this line of code is useless. If you check all other Socket class usage you can find that no one is using this protected method by any kind.
Btw, if i'm googled right, proper way to get io_context now is
_socket.get_executor().context()



Dunno what i'm doing wrong.
Updated serverlist.bmd, settings, encdec, version and serial, but still getting disconnect.

Btw, about settings table.
So server = -1 it's default values. If you need to set to specific server, like server = 0 and GameServer.Active.
Add in table
insert into settings (`server_id`, `key`, `value`) values (0, 'GameServer.Active', 1)

p.s. why 0.75 client didnt got disconnect then?
I think it's problem with client
 
Last edited:
Newbie Spellweaver
Joined
Sep 14, 2007
Messages
86
Reaction score
85
How to create account? Now i didnt have disconnect, but i doing something wrong with create account because account invalid...
 
Newbie Spellweaver
Joined
Aug 23, 2015
Messages
77
Reaction score
46
Re: [Release] Legend.mu client & server source code S16 1.1

p.s. Why 0.75 client didnt got disconnect then?
I think it's problem with client

note:
i have added my local ip: 192.168.1.150 in offset.h.
No updates for: clientversion and clientserial

if i use 127.0.0.1 i get disconnected when i open main.exe and the servers list is not displayed and i get this muerror.log:

used client:
- handrey04 - full client (test) - http://forum.ragezone.com/f197/release-legend-mu-client-server-1195391/#post9068930

used main.exe: (without this main nothing happened on execution)
- posted by myheart
- http://forum.ragezone.com/f197/release-legend-mu-client-server-1195391/index8.html#post9070569
-

What IP have you set in Offset.h? 127.0.0.1 or your local IP? With 127.0.0.1 I also got disconnected so I had to add my local IP to the client DLL.

Note: I didn't edit any config file from: Lgd-Server-git\Release\*.conf except the MySQL user and password. So, the IPs in those configs are the default ones (127.0.0.1)
 
Skilled Illusionist
Joined
May 1, 2006
Messages
381
Reaction score
167
How to create account? Now i didnt have disconnect, but i doing something wrong with create account because account invalid...


PHP:
INSERT INTO `mu_login`.`accounts` ( `account`, `password`, `email`, `security_code`, `register`, `golden_channel`, `secured` )
VALUES
	(
	'user234',
	SHA2 ( CONCAT( "user234", ":", "password" ), 256 ),
	'user@email.com',
	'12digitsphra',
	NOW( ),
	1500434821,
	1 
	);
 
Junior Spellweaver
Joined
Feb 1, 2008
Messages
113
Reaction score
9
I'm getting this error at log files when trying to run server, i don't know what can be wrong, maybe someone can give me a hint or a tip.


Code:
2021-03-11_03:25:39 INFO Opening DatabasePool 'database_characters'. Asynchronous connections: 1, synchronous connections: 2.

ERROR Could not connect to MySQL database at 127.0.0.1: Authentication plugin 'caching_sha2_password' cannot be loaded: The specified module can not be found.

2021-03-11_03:25:39 ERROR DatabasePool database_characters NOT opened. There were errors opening the MySQL connections. Check your SQLDriverLogFile for specific errors.

- - - Updated - - -

Now, i need help with gameserver, it closes right after it open
I changed server code in db and gameserver config, i cant even see logs to know what's wrong

- - - Updated - - -

thanks to metallica i know where the crashlog for gameserver is, but i dont know why it gives me this error, because LoginServer, ConnectServer and ServerLink connects to the database...

\GameServer_Log\System\GameServer

Code:
[B]ERROR Cannot connect to GameServer database 127.0.0.1;3306;root;root;database_game[/B]

My databases are

database_game
database_login
database_log
database_characters


maybe i'm missing anything?

i'm using db from ispyder
 
Last edited:
Back
Top