Jump to content
  • 0

[Debug]: Source (NPC): FAKE_NPC (invisible/not on a map) (need some function to understand which file do it)


anacondaq

Question


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   345
  • Joined:  02/26/12
  • Last Seen:  

Hi! I have sometimes this error: 

[Debug]: Source (NPC): FAKE_NPC (invisible/not on a map) 

Is it possible to somehow add extra parameters in fuction which make output to map-server with this text about "which file is a reason of this error". Because i have many, and it's imposible for me manually read tens of thousands of lines of code

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

I think you can add 'filepath' to it, something like:

ShowDebug("Source (NPC): %s in file %s (invisible/not on a map)\n", ((struct npc_data *)bl)->name, filepath);

But I'm not good at src  /wah

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  196
  • Reputation:   72
  • Joined:  12/12/11
  • Last Seen:  

i think check you npc script use view id -1

something that file error

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

@@Napster: I think what @Anacondaqq means is that he wants to see the file path, and searching for view id -1 in each file is not efficient to point out which one caused the error.

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...