Page 1 of 1
Unable to equip items
Posted: Mon Aug 19, 2013 8:12 pm
by babblebab
I have added a few mIDs to items that weren't in the database yet, and I made sure that they were added in both item_armor and item_basic, but when I add them in game I am unable to equip them. They show up in my inventory and they appear white as if I could equip them, but when I click on them nothing happens.
I also checked the #Define_Max_Item_ID value to make sure it was high enough and it appears to be, is there something that I am missing or is it a glitch currently?
Appreciate the help!
Re: Unable to equip items
Posted: Mon Aug 19, 2013 10:04 pm
by kjLotus
did you put in the right jobs/level/slot in item_armor?
Re: Unable to equip items
Posted: Tue Aug 20, 2013 2:45 am
by babblebab
yeah, strangely enough if I un-equip/re-equip another piece of gear or zone I'm able to add the items.
Re: Unable to equip items
Posted: Tue Aug 20, 2013 11:10 am
by kjLotus
huh, that's weird
my suggestion is to run in debug and step through the equip function in charutils to see where it skips out
Re: Unable to equip items
Posted: Tue Aug 20, 2013 12:24 pm
by bacardi
I've seen this happen before, are those armors you're trying to equip the new LV99 pieces by any chance?
Re: Unable to equip items
Posted: Thu Aug 22, 2013 10:30 pm
by babblebab
I found the problem, the current item_armor values for any of the items added in the last few official updates are incorrect. They're half of the value that they should be.
For example: the item "Karieyh Morion" has a value of 10689, when it should be 21378. I'll go through and correct what I can find, but just keep in mind that many of the values are off. The easiest way to double check the values is to export the Item Data to an .xml from POLUtils and then convert the Hexadecimal value for the "jobs" field to decimal and be sure that the numbers match up.
Re: Unable to equip items
Posted: Fri Aug 23, 2013 11:27 am
by babblebab
Fixing the IDs appeared to work for the new armor pieces, but not the new weapons.
Re: Unable to equip items
Posted: Fri Aug 23, 2013 12:36 pm
by kjLotus
babblebab wrote:I found the problem, the current item_armor values for any of the items added in the last few official updates are incorrect. They're half of the value that they should be.
For example: the item "Karieyh Morion" has a value of 10689, when it should be 21378. I'll go through and correct what I can find, but just keep in mind that many of the values are off. The easiest way to double check the values is to export the Item Data to an .xml from POLUtils and then convert the Hexadecimal value for the "jobs" field to decimal and be sure that the numbers match up.
oh, the jobs equippable number... the thing is, every armor has the number half of what the POL utils value is (see: twilight set, askar set, phorcys set, etc.). the only set that's 21378 is mikinaak, and it shares the same usable jobs as askar/karieyh/twilight/phorcys/ogiers etc (so i'm pretty sure that's wrong). reason being: i don't know, i guess it was decided halving them all was possible because the last bit would never ever be 1 (since that's reserved for unknown/invalid job)
maybe when the EquipArmor function was written, it was not under the assumption tools would be used to dump dats to sql? (since you have to manually find model ids anyways)
Re: Unable to equip items
Posted: Sat Aug 24, 2013 1:25 am
by babblebab
ah, okay. that makes sense, because it ended up breaking more than it fixed when I started changing numbers around.