My problem is for lazy... I have thouthends of mapannounce, and sometimes i getting something like this:
[Debug]: mapindex_name2id: Map "" not found in index list!
I want to know more details about a reason of that Debug (sure i know, is somewhere empty or non convertable variable, or etc, but in which NPC?)
We have a function what showing debuginfo. But there are not many information about "REASON"... That is very sad.
unsigned short mapindex_name2id(const char* name) {
int i;
char map_name[MAP_NAME_LENGTH];
mapindex_getmapname(name, map_name);
if( (i = strdb_iget(mapindex_db, map_name)) )
return i;
ShowDebug("mapindex_name2id: Map \"%s\" not found in index list!\n", map_name);
return 0;
}
Is that possible to add extra information to ShowDebug which NPC (if it called from NPC) have null variable problem?
If yes, how?
Or how to modify this function, to showing the "source npc name and string, or just source npc name" in that function?
Question
anacondaq
My problem is for lazy... I have thouthends of mapannounce, and sometimes i getting something like this:
I want to know more details about a reason of that Debug (sure i know, is somewhere empty or non convertable variable, or etc, but in which NPC?)
We have a function what showing debuginfo. But there are not many information about "REASON"... That is very sad.
Is that possible to add extra information to ShowDebug which NPC (if it called from NPC) have null variable problem?
If yes, how?
Or how to modify this function, to showing the "source npc name and string, or just source npc name" in that function?
Edited by AnacondaqqLink to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.