Lightfoot8 wrote...
My impression on the linked topic that brought up the question, was that they where reading to much into the limit placed in the comments on the CopyItemAndModify item for the ITEM_APPR_TYPE_WEAPON_COLOR parameter. I feel that Bioware placed the 1-4 limit in the comments simply because that is how many variants the made for every item, Since there where no other variants the range for the parameter was 1-4.
I wound up following in Heneusa's testing footsteps and also found there's definitely something going on though, honestly, something like what you were describing is what I was thinking too. I uploaded a little test kit project so you can check out the behavior,
here.
LOL, and I think
asinine is the perfect way to describe the behavior, as well!
See, one of the interesting quirks I came across is that if you have a 5th color (for each top, middle & bottom) and have those new fifth colors set on a model (I used a dagger, too), when you carry out a CopyItemAndModify function to change the Top of the weapon to 5, the model copies fine. It's changing the Top part from 5 to 5, so that sort of makes sense. As in, no change, so it leaves it alone.
But the bottom and middle parts also remain changed. Which shows there's some sort of "gate" that CopyItemAndModify is using and if the parts of the model are not being touched, they don't even have to pass through it. But the setting you want to use does, and that's when it runs into trouble.
There are two other tests whcih might yield useful information: Creating the 5th part for each of the other shapes for the dagger (so
every shape has a 5th part) and (maybe) IPGetModifiedWeapon and whether that can be used to circumvent this in some way. Lexicon says it eventually calls CopyItemAndModify, so I'm guessing not. Still...
I'm probably not going to attempt the first test any time soon because that requires something like 100+ icons and model parts to test- this would be to see if having the fifth color available to all shapes was what CopyItemAndModify needed in order to consider "5" a valid value to use.
OnEdit: Oh, there may be some impact on this situation from baseitem.2da, but it seems as though it would impact the shapes more than anything else. I.e. Not the colors. Tried a number of minrange and maxrange changes, found nothing particularly interesting or helpful.
Modifié par OldTimeRadio, 17 novembre 2012 - 10:15 .