Page 1 of 1

items.php

Posted: Wed Nov 16, 2016 2:30 pm
by KyleMassacre
Just a bug fix I noticed. In items.php you need to change the GetObjectInfo method on the last SQL query from where object_types_attributes.id = ? to where object_types_attributes.object_type = ?

Re: items.php

Posted: Wed Nov 16, 2016 4:27 pm
by KyleMassacre
I would just like to add why. I guess I forgot to mention what it does/doesn't do for you.

If you keep it stock and you just run the SQL as is and just replace the ? with an actual value, say for example a weapon it should return the attribute for Damage. Buuuuuut, if you change it to the way I described it would bring up attributes for Damage, Dexterity, and Energy Cost.

Obviously this is just a little bug in the source code but a bug that ultimately limits what you can do with objects in the game since you can't use custom attribute types for objects

Re: items.php

Posted: Wed Nov 16, 2016 6:46 pm
by a_bertrand
Nice finding Kyle!

Re: items.php

Posted: Wed Nov 16, 2016 6:48 pm
by KyleMassacre
a_bertrand wrote:Nice finding Kyle!
Thank you haha. I am building something and for the longest time I couldn't figure out why it wouldn't work.

Re: items.php

Posted: Tue Nov 22, 2016 2:05 am
by cbsarge
Are you working on NWE again Kyle?

Re: items.php

Posted: Tue Nov 22, 2016 2:38 am
by hallsofvallhalla
There is some great news coming for NWE this week....

Re: items.php

Posted: Tue Nov 22, 2016 2:42 am
by KyleMassacre
cbsarge wrote:Are you working on NWE again Kyle?
Yes and No. I am currently not 3rd party supporting it. But that doesn't mean I am not working on it for myself ;)