*Problemă: http://just4metin.ro/probleme-rezolvate ... 64671.html
Tipologie server: PvM
*Resursă folosită:
*ServerFiles utilizat: happiness2
*Syserr:
Poză:
*Detalii suplimentare: nu mereu se blocheaza, adica, intru in mapa, ma lasa vreo cateva minute/ore apoi ma scoate sau, ma deloghez si intru iar pe caracter si ma scoate direct la login
APROPO: nu e pe toate mapele, e doar pe unele, de ex, mapa farm, "liho" si celelalte mape de crescut implementate pe serverfile
problema mape
- Titan
-

- Mesaje: 2783
- Membru din: 01 Iun 2015, 15:09
- Server: In curand.
- Regat: Chunjo
- Aprecieri: 42
- Mulţumiri: 377
- Rezolvări prob.: 3
- Discord: Copiază ID
- Contact:
Se numește crash core, bănuiesc că ai mapele astea pe ch99, arată-ne syserr, dă debug la fișierele .core, găsești tu pe net cum.
Intra in char.cpp
si inlocuieste functia
cu
recompileaza cred ca stii sa citesti
si inlocuieste functia
Cod: Selectaţi tot
void CHARACTER::WarpEnd()Cod: Selectaţi tot
#define ENABLE_GOHOME_IF_MAP_NOT_ALLOWED
void CHARACTER::WarpEnd()
{
if (test_server)
sys_log(0, "WarpEnd %s", GetName());
if (m_posWarp.x == 0 && m_posWarp.y == 0)
return;
int index = m_lWarpMapIndex;
if (index > 10000)
index /= 10000;
if (!map_allow_find(index))
{
// 이 곳으로 워프할 수 없으므로 워프하기 전 좌표로 되돌리자.
sys_err("location %d %d not allowed to login this server", m_posWarp.x, m_posWarp.y);
#ifdef ENABLE_GOHOME_IF_MAP_NOT_ALLOWED
GoHome();
#else
GetDesc()->SetPhase(PHASE_CLOSE);
#endif
return;
}
sys_log(0, "WarpEnd %s %d %u %u", GetName(), m_lWarpMapIndex, m_posWarp.x, m_posWarp.y);
Show(m_lWarpMapIndex, m_posWarp.x, m_posWarp.y, 0);
Stop();
m_lWarpMapIndex = 0;
m_posWarp.x = m_posWarp.y = m_posWarp.z = 0;
{
// P2P Login
TPacketGGLogin p;
p.bHeader = HEADER_GG_LOGIN;
strlcpy(p.szName, GetName(), sizeof(p.szName));
p.dwPID = GetPlayerID();
p.bEmpire = GetEmpire();
p.lMapIndex = SECTREE_MANAGER::instance().GetMapIndex(GetX(), GetY());
p.bChannel = g_bChannel;
P2P_MANAGER::instance().Send(&p, sizeof(TPacketGGLogin));
}
}-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Bing [Bot] și 65 vizitatori

