xContentList AMMO Name returns null?

Post » Mon Aug 03, 2015 1:49 pm

Looping through the player's inventory with xContentList (using Merzasphor's latest MWSE expanded alpha release), I found that AMMO references return a null string for the Name while every other field returns as expected. Specifically for vanilla "iron arrow"s or "iron bolt"s I am getting xContentList return values of "" for the name field. The same code detects all other weapon types (including thrown weapons) and other item types (armor, clothing, potions, ingredients, ...) names without any issue. I guess if it always happens this way it can be worked around copying the id->name field and adding beginning word capitalizations, but it is slightly annoying and disturbing that it's happening at all. Anyone else possibly have any experience or idea about this?

User avatar
pinar
 
Posts: 3453
Joined: Thu Apr 19, 2007 1:35 pm

Post » Tue Aug 04, 2015 3:18 am

IIRC ammo and repair items were bugged for a long time and didn't return other properties either (like weight or value). Merzasphor fixed those in one of his updates, but I guess the name also being bugged slipped through.

User avatar
Mizz.Jayy
 
Posts: 3483
Joined: Sat Mar 03, 2007 5:56 pm

Post » Mon Aug 03, 2015 3:34 pm

Thanks Greatness7. I'll report this bug on Merzasphor's thread.

User avatar
Wane Peters
 
Posts: 3359
Joined: Tue Jul 31, 2007 9:34 pm


Return to III - Morrowind