Author Topic: Strange baseitem line  (Read 425 times)

Legacy_3RavensMore

  • Hero Member
  • *****
  • Posts: 1153
  • Karma: +0/-0
Strange baseitem line
« on: August 28, 2013, 09:26:39 pm »


               I've a strange line in my baseitem.2da.  Anyone know what this is for:

82        7666         Encampment               10               6                 0x00000            0                 0             it_encamp       0                  1               1               1               it_bag            iit_encamp_001      0             1               0              ****           ****             ****               0            255          ****        ****          ****           ****            16           0            1            1                  7666            29               8            0            15             4              ****         ****         ****         ****         ****         ****           0          0                 5449                0                   0                  500          ****              ****               1               ****                   ****            ****            ****            0                  1


It's seems to use a 10x6 (!) inventory icon?  What in the world is it? 
               
               

               


                     Modifié par 3RavensMore, 28 août 2013 - 08:27 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Strange baseitem line
« Reply #1 on: August 28, 2013, 09:32:19 pm »


               1.69 item from one of the prestige modules its indeed 10x6 and it has image of tent with campfire, it has cast spell unique power which is intented to allow rest in that prestige module

Ive done a custom script using this, its available on vault.
               
               

               
            

Legacy_3RavensMore

  • Hero Member
  • *****
  • Posts: 1153
  • Karma: +0/-0
Strange baseitem line
« Reply #2 on: August 28, 2013, 09:38:38 pm »


               So is it possible to define inventory icons of other sizes?  Say 4x4 or some such thing?
               
               

               


                     Modifié par 3RavensMore, 28 août 2013 - 08:40 .
                     
                  


            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Strange baseitem line
« Reply #3 on: August 28, 2013, 09:38:57 pm »


               i've seen this thing, but never tried it.
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
Strange baseitem line
« Reply #4 on: August 28, 2013, 09:44:12 pm »


               

3RavensMore wrote...

So is it possible to define inventory icons of other sizes?  Say 4x4 or some such thing?

Yes.
               
               

               
            

Legacy_3RavensMore

  • Hero Member
  • *****
  • Posts: 1153
  • Karma: +0/-0
Strange baseitem line
« Reply #5 on: August 28, 2013, 10:01:29 pm »


               *files that away for future reference*
               
               

               
            

Legacy_Invisig0th

  • Sr. Member
  • ****
  • Posts: 279
  • Karma: +0/-0
Strange baseitem line
« Reply #6 on: September 03, 2013, 01:45:40 pm »


               

3RavensMore wrote...
So is it possible to define inventory icons of other sizes?  Say 4x4 or some such thing?

I would defer to AD on this one. However, I seem to recall having some difficulty with trying to create new baseitems with various new icon dimensions for a sci-fi themed project I was working on. IIRC, most of the icons with new dimensions worked, but I had trouble with at least one particular size, although I can't recall the exact dimensions that were problematic. I also can't find the thread where I discussed this particular problem in the NWN Omnibus, so apologies for the lack of specifics here. Just be aware that there might be particular sizes that don't work as expected.
               
               

               


                     Modifié par Invisig0th, 03 septembre 2013 - 12:52 .
                     
                  


            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
Strange baseitem line
« Reply #7 on: September 03, 2013, 04:34:30 pm »


               The following information is 100% accurate. *

Inventory icon image sizes must be a square, 1x2 rectangle, 2x1 rectangle, 1x4 rectangle, or 4x1 rectangle, based on powers of 2 and 32x32 pixel squares.

The size in the inventory window is determined by baseitems.2da, under columns InvSlotWidth and InvSlotHeight.  The numbers given are the number of 32x32 columns (width) and rows (height).  So, 1 and 1 for a scroll, 1 and 4 for a longsword, 2 and 4 for armor, and so on.

Icons that aren't power of 2 rectangles, such as a 1 square x 3 square icon (say, light flail) still require an image be a power of 2...in this case 32 pixels wide by 128 pixels high (1x4).  The 32 pixels at the bottom of the icon are not used by the game, since baseitems.2da tells the game engine it should only use the top 96 pixels.

The largest inventory icon dimensions are width 10 and height 6...the size of a PC's inventory window.  There's one item that size in the game...

Here's a helpful image I made, based on the very odd sized encampment item:

'Image

* 100% accuracy not guaranteed

'<img'>
               
               

               


                     Modifié par The Amethyst Dragon, 03 septembre 2013 - 03:42 .
                     
                  


            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
Strange baseitem line
« Reply #8 on: September 04, 2013, 05:14:04 am »


               I expanded on what I wrote in the previous post and added it to the community site for those interested.

I made such a darn good graphic for it I just had to reuse it, I guess. '<img'>

How To: Make Inventory Icons