Jump to content
  • 0
Sign in to follow this  
GmOcean

dummy data

Question

Okay, so we all know that if we obtain an item that doesn't exist, it gives us a " dummy " item.

However, through all my attempts I was never able to change that information.

void create_dummy_data(void){	memset(&itemdb->dummy, 0, sizeof(struct item_data));	itemdb->dummy.nameid=500;	itemdb->dummy.weight=1;	itemdb->dummy.value_sell=1;	itemdb->dummy.type=IT_ETC; //Etc item	safestrncpy(itemdb->dummy.name,"UNKNOWN_ITEM",sizeof(itemdb->dummy.name));	safestrncpy(itemdb->dummy.jname,"UNKNOWN_ITEM",sizeof(itemdb->dummy.jname));	itemdb->dummy.view_id=UNKNOWN_ITEM_ID;}

essentially, that holds all the information of the dummy item. But even if I change the name of that dummy item, it doesn't update to what I set it as. It either becomes, Apple or Unknown Item. It doesn't even have the _ in its name.

 

So is there something I'm missing from all of this? Or is it hardcoded else where? Because, theoretically configuring this data and all sources that control it's creation, dynamic item creation should be possible. Unless I'm COMPLETELY missing something of importance here. Any thoughts?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

This isn't a fix for issues regarding adding items into the game incorrectly, but rather it's a bit of code added in, that creates dummy information for items that just don't exist. For instance creating an item in itemdb2.conf but not adding any information on the client side. This will let the server give you an item, without having a sprite, since it will default to the apple, and call it unknown item and such.

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.   Restore formatting

  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  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.