I've been using a modified version of Insert Name Here's trader list mutator (link), and it was working fine until v1050. Now all modified entries in the trader's list make you buy a crovel instead of the weapon that you're meant to get. I've been trying to sort this out for days, and have finally tracked down the issue. When you select an item that has been replaced or added, the SelectedItemIndex is always 0. I have tried to look through the code for all of the trader-related classes, and that's how I managed to track down the issue, but now I can't seem to figure out where SelectedItemIndex is actually set when you hover over an item in the trader. I have a feeling that this is probably done in Actionscript. Also, since SetItemsInfo() in KFGFxObject_TraderItems is native, and that is the function used in the mutator to update the trader list, I don't know why there is an issue when highlighting these new or modified entries.
Any help would be greatly appreciated; a particular aspect of my mod hinges entirely on modified weapons.
Any help would be greatly appreciated; a particular aspect of my mod hinges entirely on modified weapons.