• 0
Sign in to follow this  
PandaLovesHamster

H>How to identify which mob has this problems?

Question

7 answers to this question

Recommended Posts

  • 0

I'm guessing you deleted a bunch of items from your database and now any monsters that had those items are showing up as dropping unknown items, correct? As far as I know, and much to my own dismay (since I too am in the process of ridding my server of all trans items), is to perform the arduous task of opening up your mob_db and using your text editor's search function to manually search for any instance of any item's ID number, then subsequently removing that item from a monster's drops. I wish there was a faster way to do it, but if there is, I'm not aware of it.

 

As a side note, if you can't seem to find any further help in the matter I suggest you download "TextPad" if you haven't already, it's an excellent freeware coding/text tool that has a word search bar built in so you don't have to constantly CTRL+F to look for text in a document.

 

Best of luck mate.

Share this post


Link to post
Share on other sites
  • 0

I am also removing the trans item from my database. I am using Notepad++ for this, I am not sure if there is any other than can be used.

Thanks, I wished there was a diff of some sort to show which mob or line it was giving errors for, making it easily trackable.

Saw this,

 

/*==========================================
 * Loads an item from the db. If not found, it will return the dummy item.
 * @param nameid
 * @return *item_data or *dummy_item if item not found
 *------------------------------------------*/
struct item_data* itemdb_search(unsigned short nameid) {
	struct item_data* id = NULL;
	if (nameid == dummy_item->nameid)
		id = dummy_item;
	else if (!(id = (struct item_data*)uidb_get(itemdb, nameid))) {
		ShowWarning("itemdb_search: Item ID %hu does not exists in the item_db. Using dummy data.\n", nameid);
		id = dummy_item;
	}
	return id;
}

Maybe we can do  something about it? I'm not sure if that is the correct line in the source. Hopefully there's something we can add to make it more readable.

Edited by PandaRapesHamster

Share this post


Link to post
Share on other sites
  • 0
ShowWarning( "Monster \"%s\"(id: %d) is dropping an unknown item \"%s\"(Drop %d)\n", db->name, mob_id, str[k], ( i / 2 ) + 1 );

It is already showing by default the mob id. Maybe it is coming from a different call, when the server is loading itemdb files.

Share this post


Link to post
Share on other sites
  • 0

clydelion, no is the same call. The issue here is that itemdb_search return the id of a dummy_item instead 0 so that check is useless..

The correct and faster call should be "itemdb_exists(nameid)", so like this you'll have the correct subsequent message :

https://rathena.org/board/pastebin/19dg8iaqszh/

Please test then report this as a bug/feature in the tracker. Ty

Share this post


Link to post
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.

Loading...
Sign in to follow this