Newbie Spellweaver
- Joined
- Feb 20, 2012
- Messages
- 15
- Reaction score
- 0
Re: Mobile 3D MORPG 暗黑战神 full source released - Unity 3D Engine
Help,start server.
Help,start server.
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!2015-03-09 02:20:31,750 [INFO]: Driver.Awake(): --------------------------------------Game Start!-----------------------------------------
2015-03-09 02:20:32,863 [INFO]: VersionManager.LoadLocalVersion(): cannot find local version,export from streaming assets
2015-03-09 02:20:32,866 [INFO]: <DownloadNotice>c__Iterator17.MoveNext(): -----------------------------------001333---Game Start!-----------------------------------------
2015-03-09 02:20:32,884 [INFO]: <DownloadNotice>c__Iterator17.MoveNext(): -----------------------------------0013---Game Start!-----------------------------------------
2015-03-09 02:20:32,892 [INFO]: <DownloadNotice>c__Iterator17.MoveNext(): -----------------------------------003---Game Start!-----------------------------------------
2015-03-09 02:20:55,312 [ERROR]: tcp close
DoReceive at offset 0 in file:line:column <filename unknown>:0:0
2015-03-09 02:20:56,312 [EXCEPT]: Exception. the tcpClient do connecting error.System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it.
at System.Net.Sockets.Socket.Connect (System.Net.IPAddress[] addresses, Int32 port) [0x00000] in <filename unknown>:0
at System.Net.Sockets.Socket.Connect (System.String host, Int32 port) [0x00000] in <filename unknown>:0
at Mogo.Util.TCPClientWorker.Connect (System.String IP, Int32 Port) [0x00000] in <filename unknown>:0 at Mogo.Util.TCPClientWorker.Connect (System.String IP, Int32 Port) [0x00000] in <filename unknown>:0
at Mogo.Game.RemoteProxy.Connect (System.String ip, Int32 port) [0x00000] in <filename unknown>:0
@DNC,
delete server folder from VM then copy original server folder (not modified) there
there are only 3 point to edit
1. #-D__PLAT_PLUG_IN_NEW in Makefile
2. SERVER_MULTI_MIN_ID = 5 in pluto.h
3. fd number in epoll_server.cpp (I am working on this)
addFdAndMb() uses fd=18..... but socket number 18 is already used for internal client connection (you can find it on log files)
so our only Isseue is fd number in my opnion
correcton addFdAndMb() function is not easy to me...
maybe xuanphung001 will help us
2015-03-09 03:32:11,475 [DEBUG]: RemoteProxy.Connect(): connect error: System.Exception: Exception. the tcpClient do connecting error.System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it.
at System.Net.Sockets.Socket.Connect (System.Net.IPAddress[] addresses, Int32 port) [0x00000] in <filename unknown>:0
at System.Net.Sockets.Socket.Connect (System.String host, Int32 port) [0x00000] in <filename unknown>:0
at Mogo.Util.TCPClientWorker.Connect (System.String IP, Int32 Port) [0x00000] in <filename unknown>:0
at Mogo.Util.TCPClientWorker.Connect (System.String IP, Int32 Port) [0x00000] in <filename unknown>:0
at Mogo.Game.RemoteProxy.Connect (System.String ip, Int32 port) [0x0002f] in client\Assets\Scripts\GameLogic\ServerProxy.cs:204 Index = 56
/// <summary>
/// 连接远程服务。
/// </summary>
/// <param name="ip">服务器IP</param>
/// <param name="port">服务端口</param>
public override Boolean Connect(string ip, int port)
{
try
{
LoggerHelper.Debug("connect : " + ip + " p: " + port);
m_tcpWorker.Connect(ip, port);
reConnectCnt = 0;
return true;
}
catch (Exception ex)
{
LoggerHelper.Debug("connect error: " + ex.ToString());
LoggerHelper.Except(ex);
if (MogoWorld.thePlayer != null)
{
CloseHandler();
}
return false;
}
}
but since the original and your modifications both show
SERVER_MULTI_MIN_ID = 5
/root/server/common/pluto.h line 72
I instead modified your modification.
string strAccount = "111111@test"; //loveomg forse login
string strPasswd = "111111@test";
int32_t nFd = 6;
to
string strAccount = "111111@test"; //loveomg forse login
string strPasswd = "111111@test";
int32_t nFd = 5;
Currently my error:
Code:2015-03-09 02:20:31,750 [INFO]: Driver.Awake(): --------------------------------------Game Start!----------------------------------------- 2015-03-09 02:20:32,863 [INFO]: VersionManager.LoadLocalVersion(): cannot find local version,export from streaming assets 2015-03-09 02:20:32,866 [INFO]: <DownloadNotice>c__Iterator17.MoveNext(): -----------------------------------001333---Game Start!----------------------------------------- 2015-03-09 02:20:32,884 [INFO]: <DownloadNotice>c__Iterator17.MoveNext(): -----------------------------------0013---Game Start!----------------------------------------- 2015-03-09 02:20:32,892 [INFO]: <DownloadNotice>c__Iterator17.MoveNext(): -----------------------------------003---Game Start!----------------------------------------- 2015-03-09 02:20:55,312 [ERROR]: tcp close DoReceive at offset 0 in file:line:column <filename unknown>:0:0 2015-03-09 02:20:56,312 [EXCEPT]: Exception. the tcpClient do connecting error.System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it. at System.Net.Sockets.Socket.Connect (System.Net.IPAddress[] addresses, Int32 port) [0x00000] in <filename unknown>:0 at System.Net.Sockets.Socket.Connect (System.String host, Int32 port) [0x00000] in <filename unknown>:0 at Mogo.Util.TCPClientWorker.Connect (System.String IP, Int32 Port) [0x00000] in <filename unknown>:0 at Mogo.Util.TCPClientWorker.Connect (System.String IP, Int32 Port) [0x00000] in <filename unknown>:0 at Mogo.Game.RemoteProxy.Connect (System.String ip, Int32 port) [0x00000] in <filename unknown>:0
Of course, I only made one modification since downloading your VM (after fixing redis).
I'll review why it immediately refuses the connection.
yes friend, this is simple in code:
string strAccount = "111111@test"; //loveomg forse login
string strPasswd = "111111@test";
int32_t nFd = 6;
nFd will has value that equals with fd value from client request(from original code), but here was assigned 6 by loveomg.
Client request fd=18 so here also should be 18. Yes, change it to 18, you will pass login.
Cheer.
@DNC
you are right. that's best solution.
@xuanphung001
can you upload your server folder on Mega?
I testes with my first VM server but it's same
maybe your client have the key or you changed more
string strAccount = "111111@test"; //loveomg force login
string strPasswd = "111111@test";
int32_t nFd = 18;