Aller au contenu

Photo

[SOLVED] Evil game-eating corrupted inventory icons?


  • Veuillez vous connecter pour répondre
18 réponses à ce sujet

#1
TheBarbarian

TheBarbarian
  • Members
  • 58 messages
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 .


#2
Proleric

Proleric
  • Members
  • 2 359 messages
Have you tried making the texture square?

EDIT : ignore this, you have the correct dimensions.

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


#3
TheBarbarian

TheBarbarian
  • Members
  • 58 messages
Nope.

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

#4
The Amethyst Dragon

The Amethyst Dragon
  • Members
  • 1 881 messages
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.

#5
TheBarbarian

TheBarbarian
  • Members
  • 58 messages
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 .


#6
Proleric

Proleric
  • Members
  • 2 359 messages
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 .


#7
Tarot Redhand

Tarot Redhand
  • Members
  • 2 693 messages
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

#8
TheBarbarian

TheBarbarian
  • Members
  • 58 messages
@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.

#9
The Amethyst Dragon

The Amethyst Dragon
  • Members
  • 1 881 messages
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 .


#10
TheBarbarian

TheBarbarian
  • Members
  • 58 messages
'kay... back to square one, then. :-(

#11
OldTimeRadio

OldTimeRadio
  • Members
  • 1 400 messages
FWIW, I've used the GIMP PLT plugin and never had any problems with it.

#12
TheBarbarian

TheBarbarian
  • Members
  • 58 messages
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?

#13
OldTimeRadio

OldTimeRadio
  • Members
  • 1 400 messages
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.

#14
TheBarbarian

TheBarbarian
  • Members
  • 58 messages
:D 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.

#15
MerricksDad

MerricksDad
  • Members
  • 1 620 messages

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?

#16
MerricksDad

MerricksDad
  • Members
  • 1 620 messages
nm, I know what you mean now

#17
The Amethyst Dragon

The Amethyst Dragon
  • Members
  • 1 881 messages
I was able to pull it through GIMP to Photoshop, give it transparency (by removing white from the "skin" layer), then export it.

Hopefully this works for you: ipf_robe006.7z

Edited: And...that's why I should refresh forum windows before posting things.  Didn't see you'd already gotten an offer to help.  Well, the file will be there for a week or so anyway.

Modifié par The Amethyst Dragon, 13 février 2014 - 12:38 .


#18
TheBarbarian

TheBarbarian
  • Members
  • 58 messages
Prior offer of help or no, thank you very much for taking the time to try. :D It works! You've got the answer right there, only it's the other way around:
Turns out GIMP needs the white in the skin layer for it to work. I don't know why, I don't know how, but leaving the skin layer blank (as would, I take it, have been appropriate in Photoshop) is what caused it all.

...

So! Yep. As usual, I was doing something stupid and completely elementary wrong. But now I can produce working inventory icons for clothing parts! Wooo!!



@OldTimeRadio
I'm putting up a big [SOLVED] sign in the thread title; hope the message reaches you before trying to help here costs you any precious, limited and irredeemable life-time. Thank you again, anyway! :D

#19
OldTimeRadio

OldTimeRadio
  • Members
  • 1 400 messages
No worries! I got quantum entangled and didn't make it home last night.  Thanks AD!