problema mape

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
Teroxide
Nou Venit

Nou Venit
Mesaje: 27
Membru din: 14 Noi 2016, 10:09
Server: Metin2 ZeN
Regat: Jinno
Aprecieri: 7  
Mulţumiri: 0
Medalii

*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
Avatar utilizator
Titan
Metin Master

Metin Master
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:
Medalii

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.
Imagine
Afișează semnătura
Avatar utilizator
Galeto
Nou Venit

Nou Venit
Mesaje: 36
Membru din: 26 Apr 2019, 18:41
Aprecieri: 2  
Mulţumiri: 8  
Medalii

Intra in char.cpp
si inlocuieste functia

Cod: Selectaţi tot

void CHARACTER::WarpEnd()
cu

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));
	}
}
recompileaza cred ca stii sa citesti
Închis
Răspunsuri
6
Vizualizări
543
Răspunsuri
1
Vizualizări
134
Răspunsuri
2
Vizualizări
273
Răspunsuri
6
Vizualizări
675

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie