![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Think I have worked everything out although the recent issue someone highlighted where affix appeared to change really did confuse me until carefully read what you put in the first post.
One thing I've noticed is your tool doesn't seem to handle an item where an affix has been sealed. I believe have worked it out. What happens is the numAffixes gets increased by 129 (1 for the extra affix and I guess 128 as a flag to indicate it has been sealed). The sealed affix is written out first then the normal affixes. Hope that makes sense.