[QUOTE = edwinc3020; 8937399]要用中文聊天,請確保正確設置代碼頁。
聊天與加密的gui無關,gui是gui
codepage = 936簡體中文GBK
代碼頁= 950繁體中文BIG5
[/ QUOTE]![]()
Can you share your Chinese GUI? I want to convert the language to Chinese.
[QUOTE = Fusion7; 8958015]介意如何修復?[/ QUOTE]
Can you share your Chinese GUI? I want to convert the language to Chinese.

NetMsg.emFB = EMCTF_RANKING_UPDATE_FB_ADD;
for ( int i = 0; i < m_vecSwPRankNew.size(); ++i )
{
TWP_RANK_INFO_MAP_ITER iter = sSchoolWAR.m_mapCtfScore.find( m_vecSwPRankNew[i].dwCharID );
if ( iter == sSchoolWAR.m_mapCtfScore.end() ) continue;
STWP_RANK_INFO& sRankInfo = iter->second;
//if ( m_vecSwPRankNew[i].nIndex != sRankInfo.nIndex ||
// m_vecSwPRankNew[i].wCharRanking != sRankInfo.wCharRanking )
{
sRankInfo.wCharRanking = m_vecSwPRankNew[i].wCharRanking;
sRankInfo.nIndex = m_vecSwPRankNew[i].nIndex;
//sRankInfo.dwCharID = m_vecSwPRankNew[i].dwCharID;
//sRankInfo.dwGaeaID = m_vecSwPRankNew[i].dwGaeaID;
//sRankInfo.dwClass = m_vecSwPRankNew[i].dwClass;
//sRankInfo.dwDamageNum = m_vecSwPRankNew[i].dwDamageNum;
//sRankInfo.dwHealNum = m_vecSwPRankNew[i].dwHealNum;
//sRankInfo.wDeathNum = m_vecSwPRankNew[i].wDeathNum;
//sRankInfo.wKillNum = m_vecSwPRankNew[i].wKillNum;
//sRankInfo.wResuNum = m_vecSwPRankNew[i].wResuNum;
//sRankInfo.wSchool = m_vecSwPRankNew[i].wSchool;
//StringCchCopy ( sRankInfo.szCharName, CHAR_NAME+1, m_vecSwPRankNew[i].szCharName );
if ( m_vecSwPRankNew[i].nIndex <= RANKING_TWNUM )
{
STWP_RANK sSwPRank = sRankInfo;
NetMsg.sSwPRank = sSwPRank;
GLGaeaServer::GetInstance().SENDTOCLIENT_ONMAP( sSchoolWAR.m_dwClubMap, &NetMsg );
}
}
}
Anyone Noticed upon afk from the Game ("alt tab") it will close about 2 - 3 mins and how to delete that from source
Please share your fix Rank on Tyranny(is it not working due to database ? checking all angles)
![]()
![]()
Thanks
first blood. whats new in this source?
GLCharacter.cppAnyone Noticed upon afk from the Game ("alt tab") it will close about 2 - 3 mins and how to delete that from source![]()
Cus may i ask what launcher has been used to this client?
You can try to find out some launchers have been shared.
I had my launcher, so I don't know which one you can use.
i was wondering what is the name of this launcher this update wizardTo view the content, you need to sign in or register
School War, Tower War, School Tower War, Capture the field
Haha, quite a mess in the source.
according to my memory, some of the "Tower war" sub function sharing "School War" net msg.
core function the "Tower war" got its own defines, but still little bit mess on variable naming, for example "GLTowerWars *pSW".
it is totally safe, to remove the "School War", but u have to be very very careful to done this.
and don't remove the sharing net msg / function, if u found any.
Yes, actually, i already share the key.
goto GLGaeaClient.cpp
check below message, u will find this vector "m_vecCtfRankInfoAll" is empty. and lead to no point will send to players when tyranny end.
**********************
Code:if ( m_vecCtfRankInfoAll.size() != 0 ) { for(int i = 0; i < m_vecCtfRankInfoAll.size(); ++i ) { STWP_RANK_INFO sPlayer = m_vecCtfRankInfoAll[i]; if ( m_Character.GetCharID() == sPlayer.dwCharID ) { GLMSG::SNETPC_REQ_TYRANNY_GETREWARD NetMsg; NetMsg.lnValue = 50; NETSEND(&NetMsg); break; } } }
u might just change the vector as below, for testing purpose only. (as i mentioned before, is not safe done it like this. )
**********************
Code:if ( m_vecCtfRankAll.size() != 0 ) { for(int i = 0; i < m_vecCtfRankAll.size(); ++i ) { STWP_RANK sPlayer = m_vecCtfRankAll[i]; if ( m_Character.GetCharID() == sPlayer.dwCharID ) { GLMSG::SNETPC_REQ_TYRANNY_GETREWARD NetMsg; NetMsg.lnValue = 50; NETSEND(&NetMsg); break; } } }
dwCharID is missing in structure "STWP_RANK", make sure u have added it & assign value to it, then above test function will work.
upAnyone Noticed upon afk from the Game ("alt tab") it will close about 2 - 3 mins and how to delete that from source
Please share your fix Rank on Tyranny(is it not working due to database ? checking all angles)
![]()
![]()
Thanks
[COLOR=#666666] NetMsg.emFB = EMCTF_RANKING_UPDATE_FB_ADD;[/COLOR] for ( int i = 0; i < m_vecSwPRankNew.size(); ++i )
{
TWP_RANK_INFO_MAP_ITER iter = sSchoolWAR.m_mapCtfScore.find( m_vecSwPRankNew[i].dwCharID );
if ( iter == sSchoolWAR.m_mapCtfScore.end() ) continue;
STWP_RANK_INFO& sRankInfo = iter->second;
//if ( m_vecSwPRankNew[i].nIndex != sRankInfo.nIndex ||
// m_vecSwPRankNew[i].wCharRanking != sRankInfo.wCharRanking )
{
sRankInfo.wCharRanking = m_vecSwPRankNew[i].wCharRanking;
sRankInfo.nIndex = m_vecSwPRankNew[i].nIndex;
//sRankInfo.dwCharID = m_vecSwPRankNew[i].dwCharID;
//sRankInfo.dwGaeaID = m_vecSwPRankNew[i].dwGaeaID;
//sRankInfo.dwClass = m_vecSwPRankNew[i].dwClass;
//sRankInfo.dwDamageNum = m_vecSwPRankNew[i].dwDamageNum;
//sRankInfo.dwHealNum = m_vecSwPRankNew[i].dwHealNum;
//sRankInfo.wDeathNum = m_vecSwPRankNew[i].wDeathNum;
//sRankInfo.wKillNum = m_vecSwPRankNew[i].wKillNum;
//sRankInfo.wResuNum = m_vecSwPRankNew[i].wResuNum;
//sRankInfo.wSchool = m_vecSwPRankNew[i].wSchool;
//StringCchCopy ( sRankInfo.szCharName, CHAR_NAME+1, m_vecSwPRankNew[i].szCharName );
if ( m_vecSwPRankNew[i].nIndex <= RANKING_TWNUM )
{
STWP_RANK sSwPRank = sRankInfo;
NetMsg.sSwPRank = sSwPRank;
GLGaeaServer::GetInstance().SENDTOCLIENT_ONMAP( sSchoolWAR.m_dwClubMap, &NetMsg );
}
}
[COLOR=#666666] }[/COLOR]
adjust your *.cfg config on server side
enlarge your screen resolution to see the buttons, mine is 1920*1080
try to put this code inside GLTowerWarsFieldMan::CheckWinner
//check capture here
int nSCORE[SW_SCHOOL_MAX] = { 0, 0, 0 };
SCHOOLWAR_TOWER_STATUS_MAP_ITER pos = sSchoolWAR.m_mapTowerStatus.begin();
SCHOOLWAR_TOWER_STATUS_MAP_ITER end = sSchoolWAR.m_mapTowerStatus.end();
for ( ; pos != end; pos++ )
{
const SSCHOOLWAR_TOWER_STATUS& sTOWER = pos->second;
if ( sTOWER.emHOLDER >= SW_SCHOOL_MAX ) continue;
nSCORE[sTOWER.emHOLDER] ++;
}
for( int i=0; i < SW_SCHOOL_MAX; ++ i )
{
if ( nSCORE >= 2 ) //Tyranny remark: means captured 2 tower or above = winner
{
//fix Tyranny Buff UI by edwin 20181028 ***** 1
if ( nSCORE == 2 )
{
GLMSG::SNET_TOWERWARS_DOBATTLEEND_AGT NetMsgAgentReqEnd;
NetMsgAgentReqEnd.dwID = dwID;
NetMsgAgentReqEnd.dwSCHOOL = i;
NetMsgAgentReqEnd.bEnd = true;
GLGaeaServer::GetInstance().SENDTOAGENT( &NetMsgAgentReqEnd );
GLMSG::SNETPC_SERVER_TOWERWARS_WINNER_AG NetMsgAgentWinner;
NetMsgAgentWinner.dwID = dwID;
NetMsgAgentWinner.wSCHOOL = i;
GLGaeaServer::GetInstance().SENDTOAGENT ( &NetMsgAgentWinner );
}
//fix Tyranny Buff UI by edwin 20181028 ***** 0
}
}
Urban Gaming NetworksFacebook Page:To view the content, you need to sign in or registerGroup:To view the content, you need to sign in or registeryou have found any bugs or errors please message on our fb fan page.