anyone know how to debugg world server and how to fix this?

10/13/2021 16:25 standby009#1
[Only registered and activated users can see links. Click Here To Register...]
10/13/2021 17:09 Sedrika#2
Quote:
Originally Posted by standby009 View Post
[Only registered and activated users can see links. Click Here To Register...]

Have a look here and I'm not sure what you did there so we cannot help you without more information.

[Only registered and activated users can see links. Click Here To Register...]
10/13/2021 17:32 standby009#3
First i debug the world server and clicking [Guild siege] Frank when i click apply my world server crash ...

template <class _Keyty>
bool _Lower_bound_duplicate(const _Nodeptr _Bound, const _Keyty& _Keyval) const {
return !_Bound->_Isnil && !_DEBUG_LT_PRED(_Getcomp(), _Keyval, _Traits::_Kfn(_Bound->_Myval));
}

template <class _Keyty>
_Tree_find_result<_Nodeptr> _Find_lower_bound(const _Keyty& _Keyval) const {
const auto _Scary = _Get_scary();
_Tree_find_result<_Nodeptr> _Result{{_Scary->_Myhead->_Parent, _Tree_child::_Right}, _Scary->_Myhead}; <----* target error
_Nodeptr _Trynode = _Result._Location._Parent;
while (!_Trynode->_Isnil) {
_Result._Location._Parent = _Trynode;
if (_DEBUG_LT_PRED(_Getcomp(), _Traits::_Kfn(_Trynode->_Myval), _Keyval)) {
_Result._Location._Child = _Tree_child::_Right;
_Trynode = _Trynode->_Right;
} else {
_Result._Location._Child = _Tree_child::_Left;
_Result._Bound = _Trynode;
_Trynode = _Trynode->_Left;
}
}

return _Result;
}
10/18/2021 09:35 akosidogie#4
CDPSrvr::OnGCApp(CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize) try this find this function and compare to other source :handsdown:

or replace this
Quote:
void CDPSrvr::OnGCApp(CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize)
{
BYTE nState;
ar >> nState;
#ifdef __SECURITY_FIXES
if (g_eLocal.GetState(EVE_GUILDWAR) == FALSE)
return;
#endif // __SECURITY_FIXES
CUser* pUser = g_UserMng.GetUser(dpidCache, dpidUser);
if (IsValidObj(pUser))
{
if (pUser->IsDie() == TRUE)
{
return;
}

CGuild *pGuild = pUser->GetGuild();

// 길드가 없거나 길드장이 아니면 신청 불가
if( pGuild == NULL || pGuild->IsMaster( pUser->m_idPlayer ) == FALSE )
{
pUser->AddDiagText( prj.GetText( TID_GAME_GUILDCOMBAT_NOT_GUILD_LEADER ) );
return;
}

if (nState == GC_IN_WINDOW)
{
CGuild* pGuild = g_GuildMng.GetGuild( pUser->m_idGuild );
if( pGuild && pGuild->IsMaster( pUser->m_idPlayer ) )
{
#ifdef __GAMEGUARD
if( strlen( pGuild->m_szGuild ) < 4 )
{
pUser->AddDiagText( prj.GetText( TID_DIAG_0020 ) );
return;
}
#endif // __GAMEGUARD
#if __VER >= 11 // __GUILD_COMBAT_1TO1
// 1:1길드대전에 입찰한 길드는 입찰 불가능하다.
int nIndex = g_GuildCombat1to1Mng.GetTenderGuildIndexByUser(pUs er);
if (nIndex != NULL_ID)
{
pUser->AddDefinedText(TID_GAME_GUILDCOMBAT1TO1_ISGC1TO1T ENDER);
return;
}
#endif // __GUILD_COMBAT_1TO1
pUser->AddGCWindow(g_GuildCombatMng.GetPrizePenya(2), g_GuildCombatMng.GetRequstPenya(pUser->m_idGuild), g_GuildCombatMng.m_nJoinPanya);
}
}
else if (nState == GC_IN_APP)
{
DWORD dwPenya;
ar >> dwPenya;
g_GuildCombatMng.GuildCombatRequest(pUser, dwPenya); //
}
}
}
i hope i helped
10/24/2021 13:15 sebariio#5
You can add me on discord, i'll help you to fix it
Snow#1865
04/13/2023 21:46 Leonardo Brandes#6
I need help with the same problem I can't solve