Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Spht on April 14, 2004, 06:01 PM

Title: Warcraft III & The Frozen Throne race/level-specific icons
Post by: Spht on April 14, 2004, 06:01 PM
I created war3_icons.bni and w3xp_icons.bni (http://www.valhallalegends.com/spht/files/icons.zip) today which contains all race/level-specific icons for Warcraft III and The Frozen Throne.

war3_icons.bni contains the 5 icons for each 5 races (25 icons).
w3xp_icons.bni contains the 6 icons for each 5 races, plus the 6 tournament icons (36 icons).

It uses the standard Battle.net icons format. Each icon is 18x26. Use the product field of icons header to determine which icon to match up with the icons field of a Warcraft III statstring ('W3R1' for example).

I originally created them for SphtBotv3 (http://www.valhallalegends.com/spht/SphtBotv3.asp), but others may want to support them in their client.
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: MyndFyre on April 14, 2004, 08:20 PM
Is there any chance that Blizzard might invoke copyright on these sorts of things?

Presently (Alpha 3), my bot is distributed with the ListView images embedded in the binary as a resource, and the animated (profile) images in a subfolder, as they were animated .gifs downloaded directly from the Battle.net website.

In Alpha 4, I'm going to create a cache and download these images off of the internet as-needed (or perhaps the first time it is run).  I believe that by making the client download the images rather than distributing them, I might be getting around some sort of copyright violation.

Anybody have thoughts about that?
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: Spht on April 14, 2004, 08:30 PM
Quote from: Myndfyre on April 14, 2004, 08:20 PM
Is there any chance that Blizzard might invoke copyright on these sorts of things?

Blizzard did not register those icons with the Copyright Office.
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: tA-Kane on April 14, 2004, 08:58 PM
Quote from: Spht on April 14, 2004, 08:30 PMBlizzard did not register those icons with the Copyright Office.
That does not prevent the images from being copyrighted.
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: Spht on April 14, 2004, 09:01 PM
Quote from: tA-Kane on April 14, 2004, 08:58 PM
Quote from: Spht on April 14, 2004, 08:30 PMBlizzard did not register those icons with the Copyright Office.
That does not prevent the images from being copyrighted.

Being unregistered, and that bots have used them for many years, it doesn't seem like they care much.
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: tA-Kane on April 14, 2004, 09:42 PM
I've been trying to download the icons for nearly an hour, but I can't seem to...  :\
Quote from: Spht on April 14, 2004, 09:01 PMBeing unregistered, and that bots have used them for many years, it doesn't seem like they care much.
You're probably right.


Edit: oops, fixed the quoting tags  :\
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: Spht on April 14, 2004, 09:53 PM
Note that you will not be able to view these icons with Skywing's IconView because they are all 26x18 and IconView refuses to load/save icons which battle.snp wouldn't be able to load or would crash on.
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: tA-Kane on April 14, 2004, 09:58 PM
Quote from: Spht on April 14, 2004, 09:53 PMNote that you will not be able to view these icons with Skywing's IconView because they are all 26x18 and IconView refuses to load/save icons which battle.snp wouldn't be able to load or would crash on.
I have a Mac, I can't run Skywing's IconView. Instead, I can run my own BNI editor! I want to see if it crashes my code! mmm
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: MyndFyre on April 14, 2004, 10:15 PM
Quote from: tA-Kane on April 14, 2004, 09:58 PM
I have a Mac

Congrats, Kane.  Admitting you have a problem is the first step to solving it.... ;)
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: Maddox on April 14, 2004, 11:11 PM
Still can't download the file. It would have been nice to simply state the server was down and remove the link instead of letting people try to download it.
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: FuzZ on April 15, 2004, 10:47 AM
Quote from: Maddox on April 14, 2004, 11:11 PM
Still can't download the file. It would have been nice to simply state the server was down and remove the link instead of letting people try to download it.
http://www.bloodynub.com/files/index.php?dir=bnet/bots/development/&file=icons.zip

If his link doesn't work.
I'll probably add more files to that directory as I find them.

anywho, now if I get off my lazy ass and work on parsing war3 stat string and writing war3 logon sequence I'll be able to use them.
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: SKiLLs on April 15, 2004, 11:27 AM
They said that the new was going to have new icons.. Looks like someone find them and i ended up finding them from him..

http://www.battle.net/war3/ladder/portraits/animated/war3/W3R2.gif
As you can see it just like they do the stats phase on Bnet

W3R2.gif
W3H2.gif
W3N2.gif
W3U2.gif
W3O2.gif
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: Spht on April 15, 2004, 11:40 AM
Quote from: SKiLLs on April 15, 2004, 11:27 AM
They said that the new was going to have new icons.. Looks like someone find them and i ended up finding them from him..

http://www.battle.net/war3/ladder/portraits/animated/war3/W3R2.gif
As you can see it just like they do the stats phase on Bnet

W3R2.gif
W3H2.gif
W3N2.gif
W3U2.gif
W3O2.gif


What are you getting at?
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: BinaryzL on April 15, 2004, 05:12 PM
Can someone just post a zip file with all the icons for WAR3 and W3XP, the images not the .bni files? I can't seem to find them.
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: Spht on April 15, 2004, 05:18 PM
Quote from: BinaryzL on April 15, 2004, 05:12 PM
Can someone just post a zip file with all the icons for WAR3 and W3XP, the images not the .bni files? I can't seem to find them.

Why would you want just the image files? The icon package contains all the images plus the icon codes for each. Very easy to implement if you support reading Battle.net icon files.
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: Soul Taker on April 15, 2004, 05:29 PM
Quote from: Spht on April 15, 2004, 05:18 PM
Quote from: BinaryzL on April 15, 2004, 05:12 PM
Can someone just post a zip file with all the icons for WAR3 and W3XP, the images not the .bni files? I can't seem to find them.

Why would you want just the image files? The icon package contains all the images plus the icon codes for each. Very easy to implement if you support reading Battle.net icon files.
So maybe he doesn't?  Why ask why someone would want something, then present a scenario in which they would want them!
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: Spht on April 15, 2004, 05:36 PM
Quote from: Soul Taker on April 15, 2004, 05:29 PM
Quote from: Spht on April 15, 2004, 05:18 PM
Quote from: BinaryzL on April 15, 2004, 05:12 PM
Can someone just post a zip file with all the icons for WAR3 and W3XP, the images not the .bni files? I can't seem to find them.

Why would you want just the image files? The icon package contains all the images plus the icon codes for each. Very easy to implement if you support reading Battle.net icon files.
So maybe he doesn't?  Why ask why someone would want something, then present a scenario in which they would want them!

Posted them for people who have support for reading Battle.net icon packages. If someone wants to waste executable size by including a list of bitmap pictures that they collected from the Blizzard web site, or by taking screen shots of the game, then that's unrelated to this thread.
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: BinaryzL on April 15, 2004, 06:30 PM
Alright well is there any documentation on reading the Battle.net icon packages?
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: MyndFyre on April 15, 2004, 06:31 PM
Quote from: BinaryzL on April 15, 2004, 06:30 PM
Alright well is there any documentation on reading the Battle.net icon packages?

Yes.
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: BinaryzL on April 15, 2004, 06:35 PM
Ahh it would help if you care to explain where or something of that nature.
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: MyndFyre on April 15, 2004, 06:43 PM
Quote from: BinaryzL on April 15, 2004, 06:35 PM
Ahh it would help if you care to explain where or something of that nature.

How about using "Search" or "Google"?
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: Spht on April 15, 2004, 07:15 PM
Kane's documentation is here:
http://linkware.clan-mac.com/kanebot/misc/bni_file.shtml
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: Maddox on April 15, 2004, 10:39 PM
Might want to check out http://astronomy.swin.edu.au/~pbourke/dataformats/tga/ as well.
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: Maddox on April 16, 2004, 04:49 AM
I've resized the icons down to 28x14 to match the other icons.

You can download them here: http://24.6.105.63/files/war3_icons_28x14.zip
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: Spht on April 16, 2004, 01:26 PM
Quote from: Maddox on April 16, 2004, 04:49 AM
I've resized the icons down to 28x14 to match the other icons.

You can download them here: http://24.6.105.63/files/war3_icons_28x14.zip

I prefer leaving them the default size.  They end up being a little closer to the 28x14 icons, but it doesn't take away from the look and they're not distorted.

http://www.valhallalegends.com/spht/images.asp?filename=sphtbotv3_war3icons.gif (http://www.valhallalegends.com/spht/images.asp?filename=sphtbotv3_war3icons.gif)

But some people might want to use yours if their bots rely on the size always being 28x14, so thanks for contributing.
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: tA-Kane on April 16, 2004, 03:34 PM
Quote from: Spht on April 14, 2004, 06:01 PMEach icon is 18x26.

Whatever software you used to create this file, it's got a (nasty) bug...

It's reporting each icon (in w3xp_icons.bni) as having a width of 26 and a height of 648. 648 / NumIcons (36) is 18. Obviously, it's taking the height from the entire ("compiled") TGA, instead of the height for the individual icon. That's probably why it would crash Blizzard's software (and thus Skywing's software too), because the first icon would use up the entire image, and then the second icon would then be "out of range" of the image.

I found the same problem with war3_icons.bni, a width of 26 and a height of 450 (NumIcons (25) * 18) for each icon.

My software, however, doesn't crash, but rather uses an empty picture for icons who's image is out of range of the TGA. Though, my software does only display the first 28x14 pixels of the icon, so I'll need to fix that!  8)


Edit: See if battle.snp and/or Skywing's IconView can load these fixed files correctly?

http://linkware.clan-mac.com/kanebot/misc/war3w3xpiconsfixed.zip
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: UserLoser. on April 16, 2004, 07:33 PM
Quote from: tA-Kane on April 16, 2004, 03:34 PM
Quote from: Spht on April 14, 2004, 06:01 PMEach icon is 18x26.

Whatever software you used to create this file, it's got a (nasty) bug...

It's reporting each icon (in w3xp_icons.bni) as having a width of 26 and a height of 648. 648 / NumIcons (36) is 18. Obviously, it's taking the height from the entire ("compiled") TGA, instead of the height for the individual icon. That's probably why it would crash Blizzard's software (and thus Skywing's software too), because the first icon would use up the entire image, and then the second icon would then be "out of range" of the image.

I found the same problem with war3_icons.bni, a width of 26 and a height of 450 (NumIcons (25) * 18) for each icon.

My software, however, doesn't crash, but rather uses an empty picture for icons who's image is out of range of the TGA. Though, my software does only display the first 28x14 pixels of the icon, so I'll need to fix that!  8)


Edit: See if battle.snp and/or Skywing's IconView can load these fixed files correctly?

http://linkware.clan-mac.com/kanebot/misc/war3w3xpiconsfixed.zip

Battle.snp: Untested.
IconView: No. ("Invalid icons file.")
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: Spht on April 16, 2004, 09:32 PM
Quote from: tA-Kane on April 16, 2004, 03:34 PM
Edit: See if battle.snp and/or Skywing's IconView can load these fixed files correctly?

As I mentioned, Skywing's IconView will refuse to load icons which battle.snp would crash loading, or would simply refuse to load (like non-28x14 dimentions). Because of this, IconView will not load my icons because they are not 28x14.

Regarding the image height problem, I noticed that before I was going to publish the icons and fixed it, but uploaded the wrong package. You can get the correct ones here:
http://www.valhallalegends.com/spht/files/icons.zip
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: BinaryzL on April 19, 2004, 04:00 PM
Thank you Maddox.
Title: Re:Warcraft III & The Frozen Throne race/level-specific icons
Post by: Spht on June 04, 2004, 09:42 PM
Update:  I created a new icon file: legacy_icons.bni which contains 42 win/level/rating/rank-specific icons for Starcraft/Brood War/Diablo I/Warcraft II.

Uses the standard Battle.net icons format, and each icon is 28x14.  These are a static position-determined icon set, so the flags and product fields are unspecified.  Uses BNI format for giving processor dimentions of each icon.

Also originally created for SphtBotv3 (http://www.valhallalegends.com/spht/SphtBotv3/) (click (http://www.valhallalegends.com/spht/images.asp?filename=sphtbotv3_legacyicons.gif) click (http://www.valhallalegends.com/spht/images.asp?filename=sphtbotv3_legacyicons2.gif)), but others may want to support them in their client.

http://www.valhallalegends.com/spht/files/icons.zip