Author Topic: Weapons models and color limitations  (Read 641 times)

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Weapons models and color limitations
« Reply #15 on: December 15, 2012, 05:27:23 pm »


               If you do not have all of the models and icons.  I can only guess that the toolset uses the rules laided out in the documentation.  

To determine what colors are available for each of the b, m, and t portions of a composite item, do the following steps.
Scan for icons, incrementing the <number> from the baseitems.2da MinRange to MaxRange, and find first icon file that exists. Check the color code in the icon's resref (the last digit). This is the minimum available color. Increment the <number> from there until another icon is found that has the same color. Recall what color the icon was before that. That color is the maximum available color.


To determine what shapes are available, scan for TGA icons from <number> = (MinRange + minimum color) to <number> = [i MaxRange[/i], incrementing by 10 each time. If an icon exists, then assume that all the MDL file exists as well, and also assume that the shape variant exists in all the other colors as well. For example, suppose that the minimum color found earlier was 2, the maximum color was 4,
MinRange = 10, and MaxRange = 100. The icon scan would check for 012, 022, 032, ... 092. If 082 exists, for example, then assume that 083 and 084 also exist When drawing the Icon for a composite item, the 3 portions are painted one after the other in the order:
bottom, middle, top. The order is important because the icons overlap.



so if you do not have  iWSwLs_t_yy9.tga   where yy is the lowest model number,  They will not show by how I read the quote above.     
               
               

               


                     Modifié par Lightfoot8, 15 décembre 2012 - 05:30 .
                     
                  


            

Legacy_Malagant

  • Sr. Member
  • ****
  • Posts: 391
  • Karma: +0/-0
Weapons models and color limitations
« Reply #16 on: December 15, 2012, 06:01:33 pm »


               That would seem to make sense. Thank you for steering me in that direction.I'll do some more tinkering and see what I come up with.

[Edit] That did the trick. Thank you for your interpretation.
               
               

               


                     Modifié par Malagant, 15 décembre 2012 - 06:23 .