Urban Gaming Client/Database/Source Code Only

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
}
}



can u tell specific cpp?
 


when i'm trying to input some of chinese word can display proper ,some chinese word show up "?" , can't display proper . anyone can help ?





fixed


***
one more bug found about the Tyranny in this source - the "GETREWARD" function.

working fine on client side, just need a proper vector contains tyranny winners / tyranny candidates; check below msg:
GLMSG::SNETPC_REQ_TYRANNY_GETREWARD NetMsg;

if u guys plan to apply this function, better re-write above code, it is very danger if important value control by GLGaeaClient, in this case, the reward value. have fun!

IXQh2yW - Urban Gaming Client/Database/Source Code Only - RaGEZONE Forums

Where you guise did translate all the GUI xml files from english to chinese traditional? cuz google translate doesnt translate it properly.
 
Last edited:
Does anyone will share working glogicserver? Thanks!
 
Because your glogicserver did not work
Did mob drop item when died?

No sir, i just use the glogicserver shared here but i got period.ini failed.

we have a same problem, " period.ini failed " when i open field server, agent server.
then all mobs, drop's only gold,
but i already modified genitem per mob drops, but still only gold drops.
 
One thing: you guys did not know how to make glogicserver.rcc work well.
First, he shared .rar, not .rcc
Second, you made glogicserver.rcc wrong way!
 
One thing: you guys did not know how to make glogicserver.rcc work well.
First, he shared .rar, not .rcc
Second, you made glogicserver.rcc wrong way!

I already change .rar to .rcc, but still period.ini error appeared and only gold drops per mobs.
if you have a fix glogicserver for this gameplay, can you share it?, please ... :(:

thank you.
 
@edwinc3020it is safe to remove the schoolwars function? not the towerwars , do they have relate?
 


I already change .rar to .rcc, but still period.ini error appeared and only gold drops per mobs.
if you have a fix glogicserver for this gameplay, can you share it?, please ... :(:

thank you.
I won't share it.
But I can tell you that it's not a way to make all .rcc files
The problem is easy to be solved, just using what you have.
Why that guy shared to you guys glogicserver.rar? The foods were his, cooking is yours.
 
@edwinc3020it is safe to remove the schoolwars function? not the towerwars , do they have relate?

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.



mind sharing sir ? and have you also fix the Points rewards also?

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.
 
sanaVo - Urban Gaming Client/Database/Source Code Only - RaGEZONE Forums


Do anyone know, why this thing is happening? @edwinc3020

When multiple character entered the game. agent server behave like that high memory usage.
 
Back