Wc3C.net

Wc3C.net (http://www.wc3c.net/forums.php)
-   Tools (http://www.wc3c.net/forumdisplay.php?f=617)
-   -   wc3Borderizer (http://www.wc3c.net/showthread.php?t=97021)

cohadar 09-28-2007 02:53 PM

wc3Borderizer
 
6 Attachment(s)
There is an online version of this tool at http://wc3borderizer.appspot.com

// ---- Version 5.0 ---- //
Warning Big Image:


Zoom (requires log in)



// ---- Version 4.2 ---- //
Passive buttons now have standard PASBTN prefix
Infocard icons now have standard infocard- and infocard-neutral- prefixes
Borderizer now also generates Disabled passive buttons DISPASBTN

// ---- Version 4.1 ---- //
Fixed flipped TGA problem.

// ---- Version 4.0 ---- //
Supported input image types: BMP, PNG, JPG, GIF, TGA
Full cross-platform compatibility
Generated icons are 100% wc3 standard and contain all needed mipmaps.
All generated icons have same size (6641 bytes)
Command line parameters have changed: read the README.TXT

// ---- Version 3.1 ---- //
You can edit wc3Borderizer.bat for your own custom BLPaletter settings now.

============< java -jar WC3B.jar 64 -j -mip1 >==============

All options after WC3B.jar are passed directly to BLPaletter.
Default settings are: 64 colors, jpeg compression, one mipmap.
Read BLPaletter documentation for more info.

// ---- Version 3.0 ---- //
Much easier to use. (total noob friendly release)
Can now process multiple files at once.
Reduced java dependency from 1.6 to 1.4(and above)

// ---- Version 2.2 ---- //
Fixed a bug with .jpg files.
.bmp files turned out to be too much of a hussle = .bmp not supported any more.
Added better demo.

Made a totally new algorithm for disabled icons,
here is a comparison between a default disabled icon and a generated one.
Hidden information:
Zoom (requires log in)



// ---- Version 2.1 ---- //
Added demo.sh script for Mac and Linux users.

// ---- Version 2.0 ---- //
Added Infocard icon generation.
Also added shaded versions for BTN and BTNAUTO (-s files)
Also added some instructions for Linux and Mac users in Readme

I also tested all icon types in game just to make sure everything is OK - it is :).
(small note: If you are using the -s versions of icons remove the -s postfix when you import them so they point to the proper disabled version)

// ---- Version 1.0 ---- //

Toll for automatic creation of wc3 icons from any picture of any size.
Currently supports GIF, PNG, JPEG files

Simply download some image, for example this one:
Hidden information:
Zoom (requires log in)


pass it to borderizer and voila:
Hidden information:
Zoom (requires log in)


it automatically creates bordered icons for you in .jpg format so you can easily preview them.
All files are generated inside ReplaceableTextures folder
(.jpg files use 100% compression, the bordered images will look absolutelly the same as originals, except for borders ofc)

And that is not all, if Mikes' BLPalleter happens to be in the same directory,
it will be automatically called to create compressed blp's

Read the Readme.txt file for details.

Anitarf 09-28-2007 04:43 PM

The BTN should have that fade to black at the edges too I think.

cohadar 09-28-2007 04:49 PM

1 Attachment(s)
Quote:

Originally Posted by Ti[t]an[Mapmaker]
simple but good program,change the icon;a biohazard icon doesnt realy support the adds boarders to an icon


You mean the main submission icon?
Why not it has border :D

Quote:

Originally Posted by Anitarf
The BTN should have that fade to black at the edges too I think.


I see ... good point.
I will simply edit the border image in GIF folder.
(note that I already did so for autocast because it was more obvios that it should not be white at edges)

Tim. shame on you. :p

EDIT:

Hummm, maybe I should ask some professional icon maker to change that border.
Anyone interested?

Here is the problem, the difference between original and correct border:
Hidden information:
Zoom (requires log in)


The original border was white and white is treaded as transparent when saving border over original image.
(well not actually I have manual program controll over this but it is stupid to invent more complicated algorithm when simple image editing can do the same)

So I need someone to add proper shades to images, pretty please.

Diehard@Azeroth 09-28-2007 04:55 PM

Simple, Easy to use and useful program. Good Job.

emjlr3 09-28-2007 06:11 PM

very interesting, things that can automate the tedius processes like this are very useful

will test it out soon

Anitarf 09-28-2007 06:32 PM

Quote:

Originally Posted by emjlr3
very interesting, things that can automate the tedius processes like this are very useful

However, I was under the impression that the war3 image renamer resource already did this?

cohadar 09-28-2007 06:39 PM

1 Attachment(s)
Quote:

Originally Posted by Anitarf
However, I was under the impression that the war3 image renamer resource already did this?


Well that impression turned out to be false as you can read in my last post on W3IR.

About that shade thing, It turned out that not all BTN icons have darkening around edges (BTNAdvancedMoonArmor.jpg for example)

So I will simply generate 2 versions, one with shade and one without it.
Hidden information:
Zoom (requires log in)


------

Fecking great, where are all the artists when I need one.
I so totally suck in photoshop....

cohadar 09-28-2007 09:31 PM

Version 1.0 waiting approval.

Tide-Arc Ephemera 09-28-2007 09:45 PM

It's not going to be approved as far as I know. You're not telling us the systems it runs on in the main post.

I can't seem to run it... I thought your other tool was cool, because it was multi-platform supportive.

cohadar 09-28-2007 09:55 PM

Sure you can. Just not directly.

Open the conzole, got to the directory where you unzipped the tool
and then type:

java -jar WC3B.jar <someimage>

for example:
java -jar WC3B.jar Biohazard1.PNG

it will work.

I also must add that you must remove mikes BLPaletter.exe because it will not run on MAC ofc.

wc3Borderizer does not need BLPaletter.exe but will try to use it if it is there.
And if it tries that on MAC it will crash.

When you make it work I would appreciate you write a small readme for MAC users so I can include it in zip.

Tide-Arc Ephemera 09-28-2007 10:15 PM

It's Mac, not MAC...

What version of Java was this compiled on? Mine just crashes with/without BLPalleter... I even tried using Console.

cohadar 09-28-2007 10:37 PM

java 1.6.

Will you please send me an error report.

do this:

java -jar WC3B.jar Biohazard1.PNG > report.txt

It will create a file report.txt and you post it then.

Tide-Arc Ephemera 09-28-2007 10:43 PM

That 'Conzole' program you describe... it's called Console and all that seems to do is give error reports. The last error reports I have are because Limewire crashed. I haven't used it in a few weeks.

cohadar 09-28-2007 10:56 PM

no no no,
you cannot use konzola.bat. it is windows console.

Mac console is called terminal.

Do a google: Mac Terminal

-----------
EDIT:

Version 2.0, added infocard support.
some Icon makers will owe me rep for the rest of their lives, he he.

-----------
EDIT2:

Did some testing, program is working without problems and icons have been tested in game.

I would like to see some Linux and Mac users to report me that they have successfully used this tool, just to know everything is ok. If not a screenshot of the errors please.


All times are GMT. The time now is 12:08 AM.

Powered by vBulletin (Copyright ©2000 - 2018, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services