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!

[Help] Gameserver and MsgRouter closing

Newbie Spellweaver
Joined
Oct 10, 2009
Messages
11
Reaction score
0
Hello guys,
Im new on GC server development, so I'm having a little problem here.

When I run the StartAll.bat file, all the 6 windows opens, and after 2 seconds, the GameServer and MsgRouter windows closes.

I checked the log and did not understand anything :eek:tt1:

I'll post the logs here, so you guys can help me :D

OBS: Since I have a router, I'm using NO-IP to connect to my server, and I have to Port Forward all the GC-Server ports, I forwarded the ports from 9000 to 1000 (also unlocked the 9401), if there is any port left, please tell me ;D

GameServer.exe log:


cout : KFailRate::SetWriteToDB(), 2009-12-28 21:17:00, Update to DB : false
Sh Drop ADsust Time : 2007-08-07 09:30:00
DriverConnect() success. m_strDSN : FILEDSN=C:\Server Files\Light 1017 SQL\GameServer\odbc_internal.dsn
DriverConnect() success. m_strDSN : FILEDSN=C:\Server Files\Light 1017 SQL\GameServer\odbc_stat.dsn
DriverConnect() success. m_strDSN : FILEDSN=C:\Server Files\Light 1017 SQL\GameServer\odbc_internal.dsn
DriverConnect() success. m_strDSN : FILEDSN=C:\Server Files\Light 1017 SQL\GameServer\odbc_stat.dsn
DriverConnect() success. m_strDSN : FILEDSN=C:\Server Files\Light 1017 SQL\GameServer\odbc_internal.dsn
DriverConnect() success. m_strDSN : FILEDSN=C:\Server Files\Light 1017 SQL\GameServer\odbc_stat.dsn
DriverConnect() success. m_strDSN : FILEDSN=C:\Server Files\Light 1017 SQL\GameServer\odbc_internal.dsn
Change LogLevel (from 2 to 2 ).
clog : KIOThread::Run(), clog : KIOThread::Run(), clog : KIOThread::Run(), clog : KIOThread::Run(), 2009-12-28 21:17:002009-12-28 21:17:002009-12-28 21:17:002009-12-28 21:17:00, clog : KUdpEcho::Run(), clog : KSimLayer::Run(), , , , Enter Run()2009-12-28 21:17:002009-12-28 21:17:00Enter Run()Enter Run()Enter Run()
, ,


Enter Run()Enter Run()

DB_ⓗ DB_EVENT_CHECK_OPEN_TIME_REQ (name:) (D:\Dev\071204_KncGC\GameServer\GSDBThread.cpp, 90)
clog : KGSDBThread::ON_DB_EVENT_CHECK_OPEN_TIME_REQ(), 2009-12-28 21:17:00,
vecData.size() : 7
cout : KDropSystem::EnableAdminEvent(), 2009-12-28 21:17:01, 운영자 기능이 비활성화 되었습니다.
Hacking Protection Mode.
KRoom::ms_bLogShortGame : true
ms_bIgnoreShortGame : true
KRoom::ms_dwThresholdTick : 30000
PCBang Gift Mode : true
Auth Type : 0x00000000
Message : 그랜드체이스 PC방 복장과_PC방 전용 수호의 반지를 획득했습니다.
ODBC key : __odbcGCPCBang
- Normal item ID list : 30
50530 50540 50550 50560 50570 50580 50600 50610 50620 50630 50640 50650 50670 50680 50690 50700 50710 50720 50740 50750 50760 50770 50780 50790 50810 50820 50830 50840 50850 50860
- Duration item ID list : 0

DB_ⓗ DB_EVENT_SERVER_INFO_REQ (D:\Dev\071204_KncGC\GameServer\GSDBThread.cpp, 52)
#C1F0FF" color="#00FF00">cout : KGSDBThread::ON_DB_EVENT_SERVER_INFO_REQ(), 2009-12-28 21:17:01, 시간 제한 이벤트 얻어냄 : 0
clog : KGSSimLayer::UpdateMsgNames(), 2009-12-28 21:17:01, Update Msg And Names Table
m_mapMessageTable.size() : 4
m_vecNameTable.size() : 18DB_ⓗ DB_EVENT_TIME_SYNCRONIZE_NOT (name:
clog : KGSDBThread::ON_DB_EVENT_UPDATE_MONTHLY_REWARD_ITEM(), 2009-12-28 21:17:01, 월개근 아이템 리스트
vecRewardItemList.size() : 3
) (D:\Dev\071204_KncGC\GameServer\GSDBThread.cpp, 134)
clog : KGSDBThread::ON_DB_EVENT_UPDATE_LUCKYDAY_LIST(), 2009-12-28 21:17:01, 행운의 날 리스트
vecLuckyDayList.size() : 0
현재시각은... --> 2009-12-28 21:17:1:0 ( 0 )
clog : KGSDBThread::ON_EVENT_GET_CHATTING_EVENT_MSG_REQ(), 2009-12-28 21:17:01, 채팅 이벤트가 등록 되지 않음..
cwarn : KGSDBThread::ON_DB_EVENT_SERVER_INFO_REQ(), 2009-12-28 21:17:01, Insert into ConnectStatusDB - 192.168.1.4:9400
cerr : KGameServer::Init(), 2009-12-28 21:17:04, Getting Server Info from DB failed. (D:\Dev\071204_KncGC\GameServer\GameServer.cpp, 245)

cout : KGSSimLayer::DestroyAllUsers(), 2009-12-28 21:17:04, 서버 종료. 현재 유저 : 0 명
DB_ⓗ DB_EVENT_SERVER_INFO_REQ (D:\Dev\071204_KncGC\GameServer\GSDBThread.cpp, 52)
cwarn : KGSDBThread::ON_DB_EVENT_SERVER_INFO_REQ(), 2009-12-28 21:17:04, Insert into ConnectStatusDB - 192.168.1.4:9400
cout : KGSSimLayer::DestroyAllUsers(), 2009-12-28 21:17:04, 모든 유저 정상 종료
Elapsed Time : 500
Time Limit : 60000
non-safed release count : 0
-> KFailRate
데이터 수집 기간 : 0.0625 분 ( 4.34028e-005 일 )
데이터 DB 저장 여부 : false
Count Description
--------------------------------------------------------------------------------
0 총 방접속 시도횟수
0 서버에서 실패한 경우 제외 p2p 연결 시도횟수
0 존재하지 않는 방 ID
0 현재 채널에 퀵조인 가능한 방이 존재하지 않음
0 닫혀있는'STATE_CLOSED,FULL,PLAYING' 방 ID
0 비밀방인데 비밀번호가 틀림
0 방장에게 접속 알림 패킷을 제대로 전달하지 못함
0 이미 이벤트 아이템을 가지고 있어 이벤트중인 방에 입장 못함
0 P2P 프로토콜 버전이 맞지 않음
0 방에 이미 동일한 이름(uid)을 가진 유저가 존재함
0 JoinRoom Ack 에서 알수 없는 상황 발생
0 방에 남은 슬롯이 없음
0 이미 게임이 시작함
0 접속하는도중 방이 사라짐
0 플레이 상태가 아니다
0 P2P간의 알고있는 유저수가 다르다
0 게임중에 P2P간의 유저가 목록이 다르다. : 숫자 같음
0 Slot에서 알고있는 유저수가 다르다
0 게임중에 Slot 의 유저가 목록이 다르다. : 숫자 같음
0 Ping Under 120
0 Ping Bitween 120 ~ 180
0 Ping Over 180
0 에러 없음
0 P2P접속 대기자 명단
0 게임시작한 총 유저
0 게임에 들어가는 사람 카운팅
0 게임 시작하지 못한 총 유저
0 P2P컨넥션이 이루어진 유저수
0 릴레이를 이용해서 컨넥션이 이루어진 유저수
0 Zombie Destroy된 유저수

아직 수집된 통계 데이터가 없습니다.

cerr : KAccepter::Loop(), 2009-12-28 21:17:04, INVALID_SOCKET. WSAError : Uma operação de bloqueio foi interrompida por uma chamada a WSACancelBlockingCall.
(d:\dev\071204_kncgc\common\Socket/Accepter.h, 123)

cerr : KAccepter::Loop(), 2009-12-28 21:17:04, INVALID_SOCKET. WSAError : Foi tentada uma operação em algum item que não é um soquete.
(d:\dev\071204_kncgc\common\Socket/Accepter.h, 123)

cerr : KUdpEcho::Loop(), 2009-12-28 21:17:04, Uma operação de bloqueio foi interrompida por uma chamada a WSACancelBlockingCall.


cout : KThreadManager::EndThread(), 2009-12-28 21:17:04, 모든 스레드가 종료되도록 대기합니다. ** 남은 Queuing Event 개수 : 0
cout : KThreadManager::EndThread(), 2009-12-28 21:17:04, 대기 후 남은 스레드 수 : 0
m_vecThread.size() : 3
m_nTerminateCount : 3



MsgRouter.exe log:
DriverConnect() success. m_strDSN : FILEDSN=C:\Server Files\Light 1017 SQL\MsgRouter\odbc.dsn
DriverConnect() success. m_strDSN : FILEDSN=C:\Server Files\Light 1017 SQL\MsgRouter\odbc.dsn
DriverConnect() success. m_strDSN : FILEDSN=C:\Server Files\Light 1017 SQL\MsgRouter\odbc.dsn
Change LogLevel (from 2 to 2 ).
clog : KIOThread::Run(), clog : KIOThread::Run(), clog : KIOThread::Run(), 2009-12-28 21:17:00clog : KIOThread::Run(),
clog : KSimLayer::Run(), 2009-12-28 21:17:002009-12-28 21:17:002009-12-28 21:17:00, 2009-12-28 21:17:00clog : KActorManager::GetByName(), , , , Enter Run(), 2009-12-28 21:17:00Enter Run()Enter Run()Enter Run()
Enter Run(),



No Name. wanted:SOB_12/28/09_21:17:00_00000000000000000000
clog : KActorManager::CreateActor(), 2009-12-28 21:17:00, Name : SOB_12/28/09_21:17:00_00000000000000000000DB_ⓗ
DB_EVENT_SERVER_INFO_REQclog2 : KSession::SendPacket(), 2009-12-28 21:17:00(D:\dev\070315_MsgBug수정중\MsgRouter\MRDBThread.cpp, , 32패킷 최대사이즈 갱신. Name : )SOB_12/28/09_21:17:00_00000000000000000000

ms_kMaxPacketInfo.m_strDataDesc : EVENT_ACCEPT_CONNECTION_NOT
ms_kMaxPacketInfo.m_nDataSize : 45
ms_kMaxPacketInfo.m_nPacketSize : 74
cerr : KMRDBThread::ON_DB_EVENT_SERVER_INFO_REQ(), 2009-12-28 21:17:00, m_kODBC.Query( L"exec dbo.sp_executesql " L"N'update dbo.MsgRouterList with(rowlock) set UserNum = @1, ProtocolVersion = @2 where IP = @3 and Port = @4', " L"N'@1 int, @2 int, @3 nvarchar(15), @4 int', %d, %d, N'%s', %d", kPacket_.m_nCurUserNum, kPacket_.m_nProtocolVer, kPacket_.m_strIP.c_str(), kPacket_.m_usPort )
(&m_kODBC)->m_szDiagMsg :
(char*)(&m_kODBC)->m_sqlState :

ⓡ EMR_VERIFY_ACCOUNT_REQ (name:SOB_12/28/09_21:17:00_00000000000000000000) (D:\dev\070315_MsgBug수정중\Common\Performer.cpp, 84)
ⓗ EMR_VERIFY_ACCOUNT_REQ (name:SOB_12/28/09_21:17:00_00000000000000000000) (D:\dev\070315_MsgBug수정중\MsgRouter\MRUser.cpp, 54)
clog : KMRUser::ON_EMR_VERIFY_ACCOUNT_REQ(), 2009-12-28 21:17:00, , Name : SOB_12/28/09_21:17:00_00000000000000000000
kPacket_.m_nOK : 2359299
kPacket_.m_strName :
clog : KActorManager::GetByName(), 2009-12-28 21:17:00, No Name. wanted:
clog : KMRUser::ON_EMR_VERIFY_ACCOUNT_REQ(), 2009-12-28 21:17:00,
NetError::GetLastErrMsg() : 성공
kPacket : 0
kPacket_.m_nOK : 2359299
kPacket_.m_strName :
ⓢ EMR_VERIFY_ACCOUNT_ACK (name:) (d:\dev\070315_msgbug수정중\common\Socket/Session.h, 143)
cerr : KMsgRouter::Init(), 2009-12-28 21:17:03, Getting Server Info from DB failed. (D:\dev\070315_MsgBug수정중\MsgRouter\MsgRouter.cpp, 78)

cout : KMRSimLayer::DestroyAllUsers(), 2009-12-28 21:17:03, 서버 종료. 현재 유저 : 1 명
DB_ⓗ DB_EVENT_SERVER_INFO_REQ (D:\dev\070315_MsgBug수정중\MsgRouter\MRDBThread.cpp, 32)
cerr : KMRDBThread::ON_DB_EVENT_SERVER_INFO_REQ(), 2009-12-28 21:17:03, m_kODBC.Query( L"exec dbo.sp_executesql " L"N'update dbo.MsgRouterList with(rowlock) set UserNum = @1, ProtocolVersion = @2 where IP = @3 and Port = @4', " L"N'@1 int, @2 int, @3 nvarchar(15), @4 int', %d, %d, N'%s', %d", kPacket_.m_nCurUserNum, kPacket_.m_nProtocolVer, kPacket_.m_strIP.c_str(), kPacket_.m_usPort )
(&m_kODBC)->m_szDiagMsg :
(char*)(&m_kODBC)->m_sqlState :

">clog : KIOThread::Loop(), clog : KSession::~KSession(), 2009-12-28 21:17:032009-12-28 21:17:03, , closed by local machine. dwKey : SA 삭제. Name : 3499211613
, SPI : 17912
clog2 : KIocp::GetSockObject(), 2009-12-28 21:17:03, ¿äûÇÑ ¼ÒÄÏÀÇ Æ÷ÀÎÅ͸¦ ãÀ» ¼ö ¾øÀ½. Key : 3499211613
m_mapSockObj.size() : 0
(D:\dev\070315_MsgBug수정중\Common\Socket\IOCP.cpp, 155)
cout : KMRSimLayer::DestroyAllUsers(), 2009-12-28 21:17:04, 모든 유저 정상 종료
Elapsed Time : 500
Time Limit : 60000
non-safed release count : 0
cerr : KAccepter::Loop(), 2009-12-28 21:17:04, INVALID_SOCKET. WSAError : Uma operação de bloqueio foi interrompida por uma chamada a WSACancelBlockingCall.
(d:\dev\070315_msgbug수정중\common\Socket/Accepter.h, 124)

cerr : KAccepter::Loop(), 2009-12-28 21:17:04, INVALID_SOCKET. WSAError : Foi tentada uma operação em algum item que não é um soquete.
(d:\dev\070315_msgbug수정중\common\Socket/Accepter.h, 124)

cerr : KAccepter::Loop(), 2009-12-28 21:17:04, INVALID_SOCKET. WSAError : Foi tentada uma operação em algum item que não é um soquete.
(d:\dev\070315_msgbug수정중\common\Socket/Accepter.h, 124)

cerr : KAccepter::Loop(), 2009-12-28 21:17:04, INVALID_SOCKET. WSAError : Foi tentada uma operação em algum item que não é um soquete.
(d:\dev\070315_msgbug수정중\common\Socket/Accepter.h, 124)

cerr : KAccepter::Loop(), 2009-12-28 21:17:04, INVALID_SOCKET. WSAError : Foi tentada uma operação em algum item que não é um soquete.
(d:\dev\070315_msgbug수정중\common\Socket/Accepter.h, 124)

cerr : KAccepter::Loop(), 2009-12-28 21:17:04, INVALID_SOCKET. WSAError : Foi tentada uma operação em algum item que não é um soquete.
(d:\dev\070315_msgbug수정중\common\Socket/Accepter.h, 124)

cerr : KAccepter::Loop(), 2009-12-28 21:17:04, INVALID_SOCKET. WSAError : Foi tentada uma operação em algum item que não é um soquete.

(d:\dev\070315_msgbug수정중\common\Socket/Accepter.h, 124)

cout : KThreadManager::EndThread(), 2009-12-28 21:17:04, 모든 스레드가 종료되도록 대기합니다. ** 남은 Queuing Event 개수 : 0
cout : KThreadManager::EndThread(), 2009-12-28 21:17:04, 대기 후 남은 스레드 수 : 0
m_vecThread.size() : 3
m_nTerminateCount : 3
 
Skilled Illusionist
Joined
Jan 9, 2009
Messages
359
Reaction score
43
Re: Gameserver and MsgRouter closing, help !

Try doing it without a router first. If it runs successfully, then it's the router's fault (or your configuration, it might be both).
 
Back
Top