Server VM link : https://mega.co.nz/#!hZkyXRqS!F_F4bo...bsZMvbS2mjfHVI
Pass: 7182H5ucf8l8q4KL
VM ip : 192.168.200.102
VM ip : 192.168.200.102
----------------------------------------
VM -> Edit -> Virtual Network Editor -> VMnet8 -> Subnet IP: 192.168.200.0
-----------------------------------------
Account : root / 123456 (connect with SSH tool)
Source location : /root/server
for server run : /root/server/bin/run.sh
server www root : /var/www
Client link : https://mega.co.nz/#!IZ9WEDBB!rCbVSi...Ako0VfUB0KjcVg
Compile tool : Unity 4.1 ~ latest (I recommand 4.3)
PC downloaded data link : https://mega.co.nz/#!NFFlkBaI!8kDKkP...OnhEcKEZYarhb0
copy location : C:\Users\Administrator\AppData\LocalLow\ (Win7)
copying thies files are very important for client connection
We stucked in login function.
you can see login screen, but your login request will not accepted
check the logs in /root/server/bin/*****.log then you can understand what happened
I modified some sources for seeing login screen (reper bellow lists)
------------------------------------------- source updated for client connection --------------------------------------------
Client: Remarked for passing 'Downloading Notice' error
Client/resource/script/GameLogic/NoticeManager.cs ---> line 70 to end
-----------------------------------------------------------------------------------
Client: [ERROR]: Passing 'Language key 10700 is not exist' error
Client/MogoSolution/GameData/LanuageData.cs ----> added some condition statments line 41
If (key = 10700) key = 1;
-----------------------------------------------------------------------------------
Server: Edited server 'Makefile'
D__PLAT_PLUG_IN_NEW is compil option for Sponser (ex: QQ, Bidu, 4933)
it will block you not to login directly. We want login directly right? ^^
-----------------------------------------------------------------------------------
Server: Edited for Passing Version check (add return 0;)
Server/loginapp/world_login.cpp ---- line 93
Return 0;
-----------------------------------------------------------------------------------
Server: Function _AccountLoginImpl had some problem,
Server/loginapp/world_login.cpp ----- line 345~~~~~~
T_VECTOR_OBJECT* p <--- this vector must have 3 velues, but it have 7 velues in Windows Unity. I don't know why.
so I edited many lines here
//if(p->size() != 3)
//{
// return -1;
//}
string strAccount = "1111@test";
string strPasswd = "1111@test";
int32_t nFd = 6;
//string& strAccount = VOBJECT_GET_SSTR((*p)[0]);
//string& strPasswd = VOBJECT_GET_SSTR((*p)[1]);
//int32_t nFd = VOBJECT_GET_I32((*p)[2]);
/*
if (this->m_cfg)
{
...........
}
*/
-----------------------------------------------------------------------------------
Server: Function CWorldDbmgr::LoadEntitiesOfType had some problem,
Server/dbmgr/world_dbmgr.cpp ----- line 596~~~~~~
/* //loveomg remarked
#if __PLAT_PLUG_IN || __PLAT_PLUG_IN_NEW
if(p->size() != 3)
if(p->size() != 4)
{
LogDebug("CWorldDbmgr::SelectAccount", "--------------- SelectAccount Error ----- p->size()=%d", p->size());
return -1;
}
*/
.
.
const char* s2 = "111111@test";
-----------------------------------------------------------------------------------
Server: Function CCDbOper::SelectAccount had some problem,
Server/dbmgr/world_dboper.cpp ----- line 811~~~~~~
/* //loveomg remarked
//loveomg editted
//任意帐号都通过验证
u.Encode(MSGID_LOGINAPP_SELECT_ACCOUNT_CALLBACK) << fd << pszAccount << (uint8_t)1 << EndPluto;
LogDebug("CDbOper::SelectAccount", "-------------- MSGID_LOGINAPP_SELECT_ACCOUNT_CALLBACK --------------");
return 0;
*/
static const char* _pszSql = "select sm_name from tbl_Account where sm_name='%s'";
//static const char* _pszSql = "select account from account where account='%s'"; <-- table name and field name wrong. (Mình không test lên anh em tự tìm hiểu nhé)
Nguồn: Ragezone
Post a Comment