Jump to content

Recommended Posts

Hey everyone! 

I am having an error with dungeons that have d.unique_is_dead() function, in this case the catacombs, when clicking the 30103 (after destroying the doors).

This is the debug core crash:
spacer.png
 

Edited by Metin2 Dev International
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/31835-crash-dunique_is_dead/
Share on other sites

  • Developer

It seems a bad use from quest, anyway, you can check the ptr before use

bool CDungeon::IsUniqueDead(const std::string& key)
{
	auto it = m_map_UniqueMob.find(key);
	if (it == m_map_UniqueMob.end())
	{
		sys_err("Unknown Key or Dead : %s", key.c_str());
		return true;
	}

	return it->second ? it->second->IsDead() : false; // 0x0 check
}
  • Good 1

Villains are not born, they are made.
Join

Link to comment
https://metin2.dev/topic/31835-crash-dunique_is_dead/#findComment-161349
Share on other sites

11 hours ago, Endymion said:

But this is not a problem in this case. Is CHARACTER removed from the unique map when killed?

This is the case when I destroy the gates that are set to unique d.set_unique in the catacombs quest aswell when spawned and then when click in 30103 (turtle), it checks if they are dead and its in that point that crashes.

Link to comment
https://metin2.dev/topic/31835-crash-dunique_is_dead/#findComment-161376
Share on other sites

  • 4 months later...

Solved! 

Was a problem on the dead function, was deleting the mob from the dungeon before I check if exists and then he was on the map of the dungeon declared but the mob it self didint have anything causing crash on game.

Link to comment
https://metin2.dev/topic/31835-crash-dunique_is_dead/#findComment-164360
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.