Jump to content

Recommended Posts

hello everyone,

i have this weird problem that only occurs when teleporting to certain map,

it disconnect me directly and my character will stuck there, 

and i can't use that character again unless i changed the position back to the city,

 

the syserr doesn't show anything at all no in core1 or core2,

 

not even the game.core file showing anything,

 

i don't know where else to look,

 

i only get these errors:

 

SYSERR: Sep 19 23:16:21 :: SpawnGroup: NOT_EXIST_GROUP_VNUM(6166) Map(354) 
SYSERR: Sep 19 23:16:21 :: SpawnGroup: NOT_EXIST_GROUP_VNUM(6166) Map(354) 
SYSERR: Sep 19 23:16:21 :: SpawnGroup: NOT_EXIST_GROUP_VNUM(6166) Map(354) 
SYSERR: Sep 19 23:16:24 :: GetMoveMotionSpeed: cannot find motion (name leopard race 34024 mode 0)
SYSERR: Sep 19 23:16:24 :: GetMoveMotionSpeed: cannot find motion (name leopard race 34024 mode 0)
SYSERR: Sep 19 23:16:25 :: GetMoveMotionSpeed: cannot find motion (name leopard race 34024 mode 0)
SYSERR: Sep 19 23:16:25 :: SpawnGroup: NOT_EXIST_GROUP_VNUM(6166) Map(354) 
SYSERR: Sep 19 23:16:25 :: GetMoveMotionSpeed: cannot find motion (name leopard race 34024 mode 0)
SYSERR: Sep 19 23:16:26 :: SpawnGroup: NOT_EXIST_GROUP_VNUM(6166) Map(354) 
SYSERR: Sep 19 23:16:26 :: SpawnGroup: NOT_EXIST_GROUP_VNUM(6166) Map(354) 
SYSERR: Sep 19 23:16:26 :: SpawnGroup: NOT_EXIST_GROUP_VNUM(6166) Map(354) 
SYSERR: Sep 19 23:16:27 :: SpawnGroup: NOT_EXIST_GROUP_VNUM(6165) Map(354) 
SYSERR: Sep 19 23:16:27 :: SpawnGroup: NOT_EXIST_GROUP_VNUM(6165) Map(354)

 

 

this only happens to certain amount of people not everyone

Edited by Muffins
Link to comment
https://metin2.dev/topic/33007-game-keeps-disconnecting/
Share on other sites

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

Hey @Muffins, does this only happen in one map or more? Are you warping to the correct coordinates? Have you seen if map coordinates are overlapping with other maps?

You can add this while testing.

service.h - Add:

#define ENABLE_GOHOME_IFNOMAP

char.cpp - Search inside - if (!map_allow_find(index)):

GetDesc()->SetPhase(PHASE_CLOSE);

Replace:

#ifdef ENABLE_GOHOME_IFNOMAP
		GoHome();
#else
		GetDesc()->SetPhase(PHASE_CLOSE);
#endif

Should look like this:

	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_IFNOMAP
		GoHome();
#else
		GetDesc()->SetPhase(PHASE_CLOSE);
#endif
		return;
	}

 

Link to comment
https://metin2.dev/topic/33007-game-keeps-disconnecting/#findComment-167092
Share on other sites

hi, thanks for your reply,

 

no it doesn't happen only in one map, it's only happening with all the maps in core2,

the normal maps like the city map they're all working fine, but if the player wants to teleport let's say to the desert,

this where the problem occurs.

 

also i found that the code you posted was already there in my files and it was defined too:

 

#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));
	}
}

 

Edited by Muffins
Link to comment
https://metin2.dev/topic/33007-game-keeps-disconnecting/#findComment-167093
Share on other sites

  • Bot
11 hours ago, Muffins said:

hi, thanks for your reply,

 

no it doesn't happen only in one map, it's only happening with all the maps in core2,

the normal maps like the city map they're all working fine, but if the player wants to teleport let's say to the desert,

this where the problem occurs.

 

also i found that the code you posted was already there in my files and it was defined too:

 

#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));
	}
}

 

his function isn't even used, is part of obsolete warp code.. which is never used

english_banner.gif

Link to comment
https://metin2.dev/topic/33007-game-keeps-disconnecting/#findComment-167101
Share on other sites

  • Premium
23 hours ago, Muffins said:

so, what is the cause of the that problem then ?

There is no data to figure out what the problem is precisely. Make sure ur core configuration is correct since you say it only happens in ch2.

Link to comment
https://metin2.dev/topic/33007-game-keeps-disconnecting/#findComment-167119
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.