Active Member Sunset 394 Posted December 1, 2023 Active Member Share Posted December 1, 2023 (edited) 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: Edited December 1, 2023 by Metin2 Dev International Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Developer Mitachi 1468 Posted December 1, 2023 Developer Share Posted December 1, 2023 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 } 1 Link to comment Share on other sites More sharing options...
Endymion 323 Posted December 1, 2023 Share Posted December 1, 2023 But this is not a problem in this case. Is CHARACTER removed from the unique map when killed? Link to comment Share on other sites More sharing options...
Active Member Sunset 394 Posted December 1, 2023 Author Active Member Share Posted December 1, 2023 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 Share on other sites More sharing options...
Endymion 323 Posted December 1, 2023 Share Posted December 1, 2023 11 hours ago, Endymion said: Is CHARACTER removed from the unique map when killed? Link to comment Share on other sites More sharing options...
Active Member Sunset 394 Posted April 4 Author Active Member Share Posted April 4 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 Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now