Author Topic: [SOLVED] Evil game-eating corrupted inventory icons?  (Read 885 times)

Legacy_TheBarbarian

  • Jr. Member
  • **
  • Posts: 94
  • Karma: +0/-0
[SOLVED] Evil game-eating corrupted inventory icons?
« on: February 11, 2014, 08:51:45 pm »


               Help, GIMP gives me game- and toolset-crashing .plts when I try to produce inventory icons. The plugin ( http://nwvault.ign.c...r.Detail&id=670 ) is installed in it's proper folder, the image is grayscale and has ten named layers in the appropriate order, as according to the steps described in this tutorial: http://www.neverwint...loaktexture.htm

The toolset gives out this error message:
"row = 2291500 < masterheight = 10240
x = 2, y = 0
encodedheight = 128, encodedwidth = 64"

and also this one, following the first:
"ComposeBMPFromPLT(): ImageDecode() failed. ResRef = ipf_robe012"

What the flumph have I managed to break this time and how do I fix it? D:

edit: fixed typo in transcript of error message (is transcript even the right word for that?).
               
               

               


                     Modifié par TheBarbarian, 13 février 2014 - 12:32 .
                     
                  


            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
[SOLVED] Evil game-eating corrupted inventory icons?
« Reply #1 on: February 11, 2014, 10:19:22 pm »


               Have you tried making the texture square?

EDIT : ignore this, you have the correct dimensions.
               
               

               


                     Modifié par Proleric1, 12 février 2014 - 12:18 .
                     
                  


            

Legacy_TheBarbarian

  • Jr. Member
  • **
  • Posts: 94
  • Karma: +0/-0
[SOLVED] Evil game-eating corrupted inventory icons?
« Reply #2 on: February 11, 2014, 10:44:37 pm »


               Nope.

Arright, now I have. o_ô Same thing, only difference being that the numbers in the error message change. This is mysterious.
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
[SOLVED] Evil game-eating corrupted inventory icons?
« Reply #3 on: February 12, 2014, 08:02:57 am »


               Does the GIMP plugin normally export valid .plt files?

I ask simply because I don't know.  I've used a GIMP plugin to import .plts and pull apart the layers before bringing them into Photoshop (which has its own .plt export plugin, just an an import one), but I've never tried to export a .plt from GIMP.
               
               

               
            

Legacy_TheBarbarian

  • Jr. Member
  • **
  • Posts: 94
  • Karma: +0/-0
[SOLVED] Evil game-eating corrupted inventory icons?
« Reply #4 on: February 12, 2014, 09:19:57 am »


               I've no idea. First time trying this. :x I'll upload the files for inspection - maybe I'm doing something blatantly and visibly wrong. Here's hoping.

https://www.mediafir...kyqg9ps1nn3w96h   <- ipf_robe012.xcf, the GIMP file pre-exporting
http://www.mediafire...ipf_robe012.plt <- evil ipf_robe012.plt

... I'm going to have to buy photoshop, ain't I.
               
               

               


                     Modifié par TheBarbarian, 12 février 2014 - 09:25 .
                     
                  


            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
[SOLVED] Evil game-eating corrupted inventory icons?
« Reply #5 on: February 12, 2014, 12:28:48 pm »


               Photoshop doesn't handle .plt, so you have to use pltcon to convert to .bmp (thereby losing the layers). You have to be careful not to resize, anti-alias or smudge, and keep all edges sharp. Pltcon will reformat to .plt, but it's very picky, so I find myself checking intermediate results often, using plteditor as a visualisation tool.

Having said that, my .plt results with Photoshop are even more rubbish than my usual lame efforts, so I'm wondering about GIMP. When you look at all the famous names who've endorsed the GIMP plt tool, it must have worked for them!
               
               

               


                     Modifié par Proleric1, 12 février 2014 - 12:29 .
                     
                  


            

Legacy_Tarot Redhand

  • Hero Member
  • *****
  • Posts: 4165
  • Karma: +0/-0
[SOLVED] Evil game-eating corrupted inventory icons?
« Reply #6 on: February 12, 2014, 12:53:44 pm »


               Stupid question time but why are you using plt for an inventory icon at all? Why not just use a nice simple tga? I always go by the KISS (eg Keep It Simple, Stupid) maxim myself.

TR
               
               

               
            

Legacy_TheBarbarian

  • Jr. Member
  • **
  • Posts: 94
  • Karma: +0/-0
[SOLVED] Evil game-eating corrupted inventory icons?
« Reply #7 on: February 12, 2014, 01:16:57 pm »


               @Proleric1
::bonks head against conveniently placed wall:: I'm probably doing something stupid and completely elementary wrong. It's usually that.

Running the exported .plt through pltcon (back and forth) gives me non-crashing .plts, but they don't do the transparency thing, same as if I'd simply used the plt editor to begin with. Curse you, inventory icons!

@Tarot Redhand

Stupid question time

*brilliant question time. Exactly the right kind of question time.

Mostly because because the exported inventory icons were .plts to begin with; also because the tutorial I've been following told me to... also because I have only a vague grasp of what either .plt or .tga mean so the difference is lost on me. ::cough::
Inventory icons can be .tga too? Are they supposed to be .tga? I just exported one as .tga but it was completely invisible in game, same as though there was no inventory icon assigned at all. ... I'mma google for more inventory-icon-creation tutorials.
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
[SOLVED] Evil game-eating corrupted inventory icons?
« Reply #8 on: February 12, 2014, 01:39:09 pm »


               Most inventory icons are a 32-bit .tga file.  The ones that are .plt images are the ones for helmets, cloaks, and chest/shoulders/belt/pelvis clothing/armor pieces (for dyeable/tintable objects).
               
               

               


                     Modifié par The Amethyst Dragon, 12 février 2014 - 01:57 .
                     
                  


            

Legacy_TheBarbarian

  • Jr. Member
  • **
  • Posts: 94
  • Karma: +0/-0
[SOLVED] Evil game-eating corrupted inventory icons?
« Reply #9 on: February 12, 2014, 01:47:45 pm »


               'kay... back to square one, then. :-(
               
               

               
            

Legacy_OldTimeRadio

  • Hero Member
  • *****
  • Posts: 2307
  • Karma: +0/-0
[SOLVED] Evil game-eating corrupted inventory icons?
« Reply #10 on: February 12, 2014, 03:24:16 pm »


               FWIW, I've used the GIMP PLT plugin and never had any problems with it.
               
               

               
            

Legacy_TheBarbarian

  • Jr. Member
  • **
  • Posts: 94
  • Karma: +0/-0
[SOLVED] Evil game-eating corrupted inventory icons?
« Reply #11 on: February 12, 2014, 03:34:13 pm »


               Aw yisss, somebody who has successfully used this method before. Could I trouble you to try exporting the .xcf I've uploaded to see whether the issue is with the file itself (for whatever reason) or my PC/installation of GIMP or the plugin? :x Maybe see if there are any obvious dumb-people-mistakes in the way I've set it up?
               
               

               
            

Legacy_OldTimeRadio

  • Hero Member
  • *****
  • Posts: 2307
  • Karma: +0/-0
[SOLVED] Evil game-eating corrupted inventory icons?
« Reply #12 on: February 12, 2014, 04:03:26 pm »


               Sure thing.  Put it up on Mediafire or someplace easy for me to grab it and shoot me a link or post one.  It might not be till much later tonight until I can test it tho.
               
               

               
            

Legacy_TheBarbarian

  • Jr. Member
  • **
  • Posts: 94
  • Karma: +0/-0
[SOLVED] Evil game-eating corrupted inventory icons?
« Reply #13 on: February 12, 2014, 04:09:04 pm »


               '<img'> Thank you very much in advance.

https://www.mediafir...kyqg9ps1nn3w96h

No rush; I'd just like to hand in the stuff for this month's CCC with working inventory icons, and there's still a good amount of days left for that.
               
               

               
            

Legacy_MerricksDad

  • Hero Member
  • *****
  • Posts: 2105
  • Karma: +0/-0
[SOLVED] Evil game-eating corrupted inventory icons?
« Reply #14 on: February 12, 2014, 06:33:46 pm »


               

TheBarbarian wrote...

Running the exported .plt through pltcon (back and forth) gives me non-crashing .plts, but they don't do the transparency thing, same as if I'd simply used the plt editor to begin with. Curse you, inventory icons!


Are you trying to combine transparent texture with a PLT?