Adding Rotations
Page 2
By David Goss
Tips
10. There are two sections of the XML file that you will have to edit.
11. Scan down the file and look for the first <drawgroups> tag.  In this file it is on line 129.
Now find the first <drawgroupitem line.  In this file it is on line 139.  Change the spritenum = "4" to spritenum = "8".  And make sure the flags is "0" (ZERO).  the flags is "1" on mirrored images, so you will set all 12 of them to "0" since no images will be mirrored by T'mog.
12. Continue down all 12 of the <drawgroupitem groups and change the spritenum as follows: 8,9,10,11,4,5,6,7,0,1,2,3  and make sure the 'flags' is set to "0" on each one. View XML after these changes.
13. Now scan down to the sprites section.  In the Sprites Header info there is a Framecount.  This is the number of sprites that will be imported.  This object origonally mirrored 2 rotations so it only used 6 sprites.  Since we are adding in the rotations, it will need to be 12 so change it.  :)
14 Now go to the first sprite group.  This group of files has an Index of 0 because it is the first one.  Change the "back" to "nw" in these three file names.
15 The second group is index 1.  That will also stay the same.  Change the "FRONT" to "NE" in each of these three file names.
16 Now, index 2 and 3 are mirrors of 0 and 1, but we need to make it actually import the images we have created for those rotations.  So what I do is to go back and copy the first file section(index 0) and paste it in after index(1).  Then I change it's index to 2 and change the filenames to include "SE" in the three files.  Be sure when you paste it in, you skip a line in between the sections and the "<spriteframe" tag should be positioned in column 13.  Sometimes having tags out of place can cause some problems.
17

Now paste that block again after index 2.  Change this index number to 3 and change the filenames to match the "SW" images.  

Now - when you use the pattern 8,9,10,11,4,5,6,7,0,1,2,3 for the drawgroups section (step 12) then remember the indexes 0 ,1, 2, 3 should be nw, ne, se, sw in order to make the images match up with the right direction.  The way I remember that is north before south and we-ew, I know - but I find it easier to remember things if I come up with something silly or stupid that goes along with it hehe.

Back Next