Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Miscellaneous => Topic started by: Смердокрыл on August 08, 2015, 11:34:18 am

Title: [QUESTION] Random item appearing on character
Post by: Смердокрыл on August 08, 2015, 11:34:18 am
Hey!
Sometimes when I log on one of my characters, I see this weird daggers. I already have two weapons equiped, and I cannot unsheath the daggers. When I relog, they dissapear.
Wtf is this?
[attachment=0:ckd9qvtn]WoWScrnShot_080815_122817.jpg[/attachment:ckd9qvtn]
Title: Re: [QUESTION] Random item appearing on character
Post by: stoneharry on August 08, 2015, 12:22:15 pm
I think this is from the Item.dbc:

WoW reads the displayID, sheath state, etc all from the Item.dbc depending on the entry ID. If you delete your cache it refreshes from here, hence you get the original displays. After it refills the cache it will display as your server says it should.
Title: Re: [QUESTION] Random item appearing on character
Post by: Смердокрыл on August 08, 2015, 02:43:51 pm
I checked all the databases and deleted cahce, but the daggers still appear.
Title: Re: [QUESTION] Random item appearing on character
Post by: Chase on August 08, 2015, 04:57:14 pm
Possibly a spell you learned that applys automatically.
Title: Re: [QUESTION] Random item appearing on character
Post by: Смердокрыл on August 08, 2015, 06:30:22 pm
Quote from: "Chase"
Possibly a spell you learned that applys automatically.
I thought of it too, but why does it disappear when I relog then? And also the .unaura all comand doesnt make the daggers disappear?
Title: Re: [QUESTION] Random item appearing on character
Post by: Amaroth on August 08, 2015, 06:40:02 pm
It is also possible that you have somewhere in either DBC or DB Item with ID 0, but thats really just a guess. I never saw anything like that.
Title: Re: [QUESTION] Random item appearing on character
Post by: Смердокрыл on August 09, 2015, 01:40:58 pm
I have partly discovered the reason for the problem.
Some time ago I've taken a weapon and duplicated it, replacing the Entry and DisplayId. This is the weapon my character has equipped. And I noticed that if I unequip the weapon and restart wow, the dagger does not appear. However, the displayid in the db is right, and I even created an entry in the Item.dbc with the right displayid.
Title: Re: [QUESTION] Random item appearing on character
Post by: Смердокрыл on August 10, 2015, 09:47:45 pm
Anyone?
Title: Re: [QUESTION] Random item appearing on character
Post by: XxXGenesisXxX on August 12, 2015, 05:10:09 pm
Quote from: "Смердокрыл"
And I noticed that if I unequip the weapon and restart wow, the dagger does not appear.

What do you mean not appear? If it's unequipped, do you mean it doesn't appear in your inventory? Cause it shouldn't be on the model. Or do you mean when you re-equip it the model doesn't appear? Confused by that what you mean by does not appear.
Title: Re: [QUESTION] Random item appearing on character
Post by: Смердокрыл on August 12, 2015, 08:58:08 pm
Quote from: "XxXGenesisXxX"
Quote from: "Смердокрыл"
And I noticed that if I unequip the weapon and restart wow, the dagger does not appear.

What do you mean not appear? If it's unequipped, do you mean it doesn't appear in your inventory? Cause it shouldn't be on the model. Or do you mean when you re-equip it the model doesn't appear? Confused by that what you mean by does not appear.

My character has two swords equipped. Two lond curved blades.
When I log in, the blades are not shown, but instead, I have these two daggers on my char. When I hit unsheath, the blades appear too, and it looks as if I have 4 weapons equipped.
If I then log off (without closing the game) and log in again, the daggers are not showing and everything is fine.
But if I restart the client completely and log in, they appear.

Also, if I unequip the blades and restart, daggers do not appear, meaning that they have something to do with the blades my char uses.
Title: Re: [QUESTION] Random item appearing on character
Post by: XxXGenesisXxX on August 13, 2015, 05:22:27 am
Much better description, ty :)

It still sounds like a caching problem, however, have you checked to make sure that you have added the updated DBC to both the client AND the server. Cause it could be, the process is given different results based on the server query compared to the client-side query. Same goes for the database.

The other reason I think this, is that I am pretty sure the unsheath state is merely an integer on the client side and the model itself is completely handled client-side, while the model simply equipped is actually checked through the server (hence displayID in database as well as the DBC's).