Ryoko: Suggestion to change link in Tutorial Page

Sud

"[If life=Dota] I'd have quit long ago" -- Acehart
Reaction score
64
As my map grows, I have found it necessary to convert the item icons from their .TGA roots to .BLP to save filesize (I've been able to save the greater part of a meg in doing this).

On the tutorial site (http://www.world-editor-tutorials.thehelper.net/skinning.php), you recommend using the "Warcraft III Image Extractor II" file. I found this utility to be flawed in the task I set it to - namely, it does not add the "Alpha Channel" to the TGA files being converted. This results in black, blank boxes in the game for all the converted icons, and some wasted time. I even got an .OCX error which I had to manually fix upon my first use of that program.

Doing some searches back to forum topics on the subject of .TGA to .BLP conversions, I've noted some unresolved issues from this and would like to make a suggestion that you change the recommended software from the Extractor II to The Prophet's WarcraftIIIViewer software ( available at http://www.wc3sear.ch/index.php?p=Tools&ID=11&sid= ) which actually does prompt you to add the alpha channel and has some nice features, such as the insanely useful batch conversion utility so you can convert those 100 icons all at once instead of one by one.

Just may save some people some time and headaches.
 

SD_Ryoko

Ultra Cool Member
Reaction score
85
Due to heavy icon issues, I have done some homework. And not all of this is true.

I want to convert all my icons to BLP
When using BLP format, you must select the alpha channels in ulead by selecting the entire image, then saving it. Here I have created two icons - a normal button, and a disabled button. The dashed line around my image shows that I am saving it with the entire image selected.

-Save in TGA format
-64x64 pixels in size
-NO compression
-ALL selected

(see icons1.jpg)

Then I converted it to BLP with the WC3 Image extractor II, as shown. I recieve a prompt that gives me an option to set quality. I stick to about 80 percent.

(see icons2.jpg)

Now I import them into my map. I import them EXACTLY AS THE TUTORIAL SAYS, and nothing else.

I didn't mess up the path, get the green box, then come post on the forum. I follow the tutorial.

I did not forget to select the image, come here, and post because I got a black box.

NOTE: Names in the image shown are for the BLP test icons. If your using TGA files, the extensions will be TGA in the import manager.

(see icons3.jpg)

I assigned my icons to a unit in the game. When I test my map, it works perfectly.

(see icons4.jpg)

Don't bother, I want to use TGA in my map.
This is PERFECTLY acceptable. But save them DIFFERENT. When saving icons for TGA format use, DO NOT select the image in ULEAD. No selection areas, no alphas, no dashed line.

Here I have attached a demo map that uses TGA files. You can see I did not select the image, come to the forum, and post because it crashes my game.

-64x64 pixels in size
-NO compression
-NO Selection area

And it works perfectly fine.

I beleive using BLP will save me uber space
I don't know how many times I've said this, but N.T.

I have attached an image for you all to see. I imported BOTH the BLP file, and the TGA file.

When WC3 saves a map, it compresses ALL files, including TGA. Lets open it with WINMPQ, and look at what the compressed sizes of both are.

I have highlighted them in red. Notice, they are only 1k different. To save a meg in a map, you would need 1000 icons.

(see icons5.jpg)

The tutorial does not mention selection areas, or other viewers
Sud does have valid points, that it is hard to understand how to convert your files. And I have experienced problems with WC3 Image extractor before.

If 'Darg' would like to revamp his tutorial, I'd certainly update the website.

But all the information you need, has been layed out now. I do apreciate Sud trying to help stamp out the noob questions, caused by the people who won't listen to my 1000 other posts about icons.

Last Thoughs
If using another viewer allows us to save the TGA the same way, every time, for both BLP and TGA, lets do that. But I don't know enough about the other viewer, that evidence was not submitted.
.... I done talking now :)
 

Attachments

  • icons1.jpg
    icons1.jpg
    10.6 KB · Views: 117
  • icons2.jpg
    icons2.jpg
    30.3 KB · Views: 129
  • icons3.jpg
    icons3.jpg
    46.4 KB · Views: 120
  • icons4.jpg
    icons4.jpg
    46.8 KB · Views: 141
  • icons5.jpg
    icons5.jpg
    87.3 KB · Views: 142

Sud

"[If life=Dota] I'd have quit long ago" -- Acehart
Reaction score
64
Some replies:

"I want to convert all my icons to BLP"

The description for that one is different in that I received the black box (I believe the green one would be a different issue entirely). The black box I can say with confidence has to be the alpha issue.

"Don't bother, I want to use TGA in my map."

The TGAs in question were created with Irfanview, a lot of them coming from screenscrapes captured off the clipboard. Perhaps with the tool you mentioned it does have the alpha, though Irfan is seriously popular image acquisition software.

"I beleive using BLP will save me uber space"

This is situational, but in my map I had over 120 custom icons. When I compressed these to BLP, I saved roughly 700kb, almost a meg. This is a significant gain especially considering that the maximum playable battle.net map is 4mb.

"The tutorial does not mention selection areas, or other viewers"

I believe the absence of a feature to actually add the alpha channel kind of makes that software unsuitable, in the very least, for a newbie tutorial. It's like the equivalent of a graphics viewer that wouldn't let you resize your icons to 64x64 - it just won't work (and it won't work in the most annoying, game crashingest, hair tearingest out way). The latter software I suggested because it does say right out "this image needs an alpha channel to work, click yes to add an alpha channel" when you do the conversion. Plus it has better features such as the batch conversion I mentioned.
 

SD_Ryoko

Ultra Cool Member
Reaction score
85
Sud said:
The description for that one is different in that I received the black box (I believe the green one would be a different issue entirely). The black box I can say with confidence has to be the alpha issue.
What? We already agree on that. Read carefully :
SD_Ryoko said:
I did not forget to select the image, come here, and post because I got a black box.
Selecting the image in ulead CREATES the alpha channels. So we already both agree.....Ulead gives you the option. You don't need to be confident; its a known fact.

Green Box: Icon not found. Path is wrong.
Black Box: Bad alpha channels / layers.
Crash: Bad save format, bad selection area.

Sud said:
The TGAs in question were created with Irfanview, a lot of them coming from screenscrapes captured off the clipboard. Perhaps with the tool you mentioned it does have the alpha, though Irfan is seriously popular image acquisition software.
I can understand that. But all of the tutorials reccomend ULEAD at this point. Mainly because, its much much more powerfull, easier to get than Photoshop, gives you the alpha channel options, has a free trial, and both Darg and I have the full ver.
Sud said:
This is situational, but in my map I had over 120 custom icons. When I compressed these to BLP, I saved roughly 700kb, almost a meg. This is a significant gain especially considering that the maximum playable battle.net map is 4mb.
The only way this is even conceivably possible, is that your program for TGA is not saving it as optomized as the program we reccomend. When saved, all TGA icons should be 13k in size, and compress to 6k. As shown in my screen shot, they are almost the exact same size. My guess would be, your TGA program saves them at 20k+ each.

NOTE: All BLP is, is a compressed version of TGA. And, World Edit compresses your TGA's for you already. Provided, they are correct size and format.
Sud said:
I believe the absence of a feature to actually add the alpha channel kind of makes that software unsuitable, in the very least, for a newbie tutorial. It's like the equivalent of a graphics viewer .....
I agree. Unsuitable for a newbie tutorial. But 'unsuitable' for the more advanced of us, who know how to do alpha channels, who design models for alpha channels, and handle models right down to the alpha layers.

Give Darg a chance to review it, and we'll see what he says. After all, its his tutorial. Please also, post a much shorter summary of the programs, steps, and process, for his review.
 

SD_Ryoko

Ultra Cool Member
Reaction score
85
Another note.

Have a look at the skinning tutorial. This is an example of why 'Ulead'.

See how selecting and unselecting the patches controls the alpha channels? And that in turn, controls layers and team colors.

My question is, can the other programs do that too? When you tell it to 'create' alpha channels, will it preserve the original? And handle the team color areas?

Lastly, if your real curious about how alphas and layers work, check out 'Adding Materials'. Even if you don't model, it will give you great understanding of how it all works.

Thanks for your participation, Sud :D
 

Sud

"[If life=Dota] I'd have quit long ago" -- Acehart
Reaction score
64
Selecting the image in ulead CREATES the alpha channels. So we already both agree.....Ulead gives you the option. You don't need to be confident; its a known fact.

Ok that works - the only thing is that it may need to be clearer that it is mandatory to use ULead otherwise your icons aren't going to work.

The only way this is even conceivably possible, is that your program for TGA is not saving it as optomized as the program we reccomend. When saved, all TGA icons should be 13k in size, and compress to 6k. As shown in my screen shot, they are almost the exact same size. My guess would be, your TGA program saves them at 20k+ each.

All of the TGA icons were 13k in size. They compressed to about 5-7kb. The file size of my map in the previous version was 4.5mb which reduced to 3.7mb using Vexorian's map optimizer. The file size of my map in the version where I introduced .BLP icons was 3.8mb reduced to 3.1mb via Vexorian. All the .TGAs are of the correct size and format, and if the WorldEditor is further compressing them, it's doing a bad job of it because the benefit I received was immediate. Of course I will agree with you that this won't be an issue for the average person who's just throwing in one or two icons, but in my case I had a critical mass of the things and needed to reduce the size of them.

Give Darg a chance to review it, and we'll see what he says. After all, its his tutorial. Please also, post a much shorter summary of the programs, steps, and process, for his review.

Sure I can do that. I'm not at home at the moment (working) but when I get back later tonight I'll do you one better and do a short walkthrough of it with screenshots.
 

SD_Ryoko

Ultra Cool Member
Reaction score
85
Sud said:
The latter software I suggested because it does say right out "this image needs an alpha channel to work, click yes to add an alpha channel" when you do the conversion. Plus it has better features such as the batch conversion I mentioned.

What about FullScreen.blp, from the Loading Screen tutorial? Its model file only uses 1 layer, therefore, no alpha channels. If you add them, it doesn't work.
 

Myzteryz

It only does everything.
Reaction score
90
I use a mac...so maybe do it for me..?...but it the picture shows up fine when Im about to learn it...i see it clear..its just that it disappears when i already learned it..and it doesn't show up in the ability bar..

So could ne1 tell me If i placed them wrong
 

Sud

"[If life=Dota] I'd have quit long ago" -- Acehart
Reaction score
64
Sounds to me then that you specified a research/learn icon, but not a skill icon. It should be in the same area as the research icon for the spell.

If that isn't it I'll have to look at it, but not home atm
 

Myzteryz

It only does everything.
Reaction score
90
I did specify it...its in the normal icon space..

and also..my bad..I folowed the link from the original thread and accidently posted here..
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top