HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I'm getting furiously, please need HELP :(

05-09-2006, 04:26 PM#1
MasterofSickness
Hope anyone read this and can help me any further!
I have searched and read for almost 4 hours now and solved just nothing, ahhh
*here should be a smilie which is in rage* ...

So here is my prob:
I want to import a custom icon to WE and I want to show it in the quests menu, but all I get is a black icon!
I have tried all pathes:
ReplaceableTextures\CommandButtons\BTNAdvancedMoonGlaive.blp
ReplaceableTextures\CommandButtonsDisabled\DISBTNAdvancedMoonGlaive.blp
ReplaceableTextures\PassiveButtons\PASBTNAdvancedMoonGlaive.blp
ReplaceableTextures\CommandButtonsDisabled\DISPASBTNAdvancedMoonGlaive.blp
(All these infos are from http://www.wc3sear.ch in the threads:
"How to import icon" and "How to make an icon")

I also added a unit to a buidling, so that you see its icon when you want to train it, but also there it is always a black or a green icon!
If I remember right, then there was a black icon if I used the normal BTN and if I used the same file for DISBTN and the rest it appeared green.
I have no idea what I have to change so that it works finally, and I looked up everything.
I made a 32 bit bmp out of the gif image from wc3sear.ch "How to make an icon" with the help of the program adobe photoshop 7. Then, after saving, I converted it with the prog Warcraft3Viewer into a blp.

Here one question:
I never heared anyone talk about, but how do you have to set the compression which is asked here. For normal it is set to 85.
And so I always convert my 32 bit bmp to 85 compressed blps ... whatever
it should be good for...?

After I had a succesfully converted blp I imported it to the given pathes, but then the error occured which I described in the beginning...

And the second question:
But one thing I found seriously strange.
I tried to find a difference between my custom icon and a fresh original exported icon (BTNPeasant). And I also found one, but this one is very confusing!!! Anyhow it is confusimg for me...
I opened both icons with paint (the standard program in Windows from Microsoft) and there I found a difference:
I opened the task "Image" and then I clicked on "Attributes" and there something is written for the resolution, namely "0 x 0 points per inch".
BUT in the custom icon I saved with adobe photoshop there it is written "72 x 72 points per inch"!
I even have read something about this in another thread which you can find here in post 4, but it wasn't answered:
http://www.wc3campaigns.net/showthre...hop+resolution

So wtf *sorry for this word, but now I'm feeling a little bit better*
is the difference? And how can I make save the icon with photoshop so that the resolution is also 0 x 0 ???

I really thank for EVERY HELP!
And sorry for the long text, but I want this problem to be solved and so it has to discribed very informative...
W8ing for your answers
_____________________________________________________________

Hi, I found something new!
Seems that I have problems with the use of alpha channel...
I realised that when I save a 32 bit bmp without alpha channel with photoshop and then reopened the same file, then it suddenly has a black alpha channel! Could this be something noticeable?
_____________________________________________________________

Ok, got the icons to work in WC.
The problem is that photoshop just creates a new layer without asking me when I save the bmp, and if this already wouldn't be bad enough, photoshop also makes the new layer black, so that nothing is shown in the game *grrrr* ...

My main problem is solved now, but if anyone knows the answers to the two questions from my first post in this thread here, it would be very nice to post your answers here, because I'm still interested in.
05-09-2006, 05:55 PM#2
Tim.
Calm down, boy. First of all read our Rules. Don't double nor tribble post!

Compression values decrease quality by using less colors and in doing so make the filesize smaller.
BMP file format does NOT have an alpha channel. You should instead save as TGA.
05-09-2006, 06:50 PM#3
MasterofSickness
Oh, I'm very sorry for:
1) Using the ***-word!
2) Creating thread in the wrong forum!
3) Posting three times in line

:) But:
1) I was really angry at that moment, I could have hit arround me, sorry...
2) The thread from wc3campaigns which I linked to,
is in the developer's corner (the General Forum), so I thought I also post here, because I had also this problem which is described there.
3) I'm really sorry for this.
All the time I thought that I shouldn't edit my posts too much and that it is better to make a new post instead of changing things what people already have read. But I understand, in future I will only make a new post if anyone else already posted under my post. Else I will edit my post.

Ahh, thanks for your answer!
So I can choose from any compression I want and it shouldn't change anything about whether the icon is shown or not, right?

For this with bmp alpha:
When I open an extracted bmp-file from WC3 in photoshop, then there is no alpha layer.
But when I save the original bmp-file as 32 bit bmp with photoshop and reopen, then the bmp suddenly comes with an alpha layer.
This also happens when I close photoshop, restart it and open the bmp-file again. Then it still has the alpha layer.
So bmp - files must have a way to have alpha channels... ?
05-09-2006, 07:02 PM#4
Tim.
Quote:
Originally Posted by MasterofSickness
Ahh, thanks for your answer!
So I can choose from any compression I want and it shouldn't change anything about whether the icon is shown or not, right?
Right, but it will lower the quality (Make it look blury, lose some definition, etc)

Quote:
Originally Posted by MasterofSickness
So bmp - files must have a way to have alpha channels... ?
Wrong. Photoshop can handle a color from it as a background and is hence transparent, but other programs do not (Paint can as well, for instance) Regardless, always use TGA.
05-09-2006, 07:18 PM#5
MasterofSickness
Quote:
always use TGA

So what do you mean by this?
1) Should I save icons as standard TGAs (instead of 32 bit bmps) and then convert to blp-files and then import? OR
2) Should I save icons as standard TGAs and then import it as TGA?

I think 1) is right, because you should use custom icons as blp-files, or?
If I'm wrong, then please explain me.
05-09-2006, 07:23 PM#6
Tim.
You make the icon in Photoshop, save as TGA, then convert to BLP.