Valhalla Legends Forums Archive | Battle.net Bot Development | Icons.bni

AuthorMessageTime
MyStiCaL

 okay, well this is really my first attempt playing around with downloading the actual icon BNI files & using them, I successfully download icons.bni and icons_STAR.bni, i view them using the processor built into mbncsutil, icons.bni holds the regular normal every day use icons, how ever i'm only able to see WCG icons in icons_STAR.bni, I'm looking for all the extra icons with stats, stars, ect..

I've compared the file size of both icons.bnis to others of people have posted on these forums, they are the same size, all i could assume is they are hidden inside or.. if anyone would like to shed some light on this, i know this is a very old topic, I've searched the forums and links are either broken do to forum changes or people slapped up some spagetti code that was not read-able.
February 8, 2010, 1:38 AM
rabbit
Post your extraction code?  As long as you're extracting them correctly, there's no direct reason you shouldn't be able to get all of them.
February 8, 2010, 3:05 AM
MyStiCaL
quick example

[code]
Dim Icons As New BniFileParser(Environment.CurrentDirectory & "\icons.bni")
Picture.image = Icons.fullImage
[/code]


should get the fullimage, viewing the image shows only the regular typical icons

I don't want to start parsing icons that arnt there. :|
February 8, 2010, 4:55 AM
BreW
can you see the icons in the files? (via hex editor)
try viewing it with this.
February 8, 2010, 1:41 PM
rabbit
Try Icons.AllIcons
February 8, 2010, 2:44 PM
MyStiCaL
I don't have VCExpress,

I've already wrote up a full class to try to handle the icons, It grabs all the icons however it still only has the select few icons, about 20, just the products, is there like a subdirectory or somthing in the bni file i don't know about?
February 8, 2010, 9:40 PM
-MichaeL-
Well, I am currently having the same problem as mystical. I only get 20 icons or some from the icons.bni file. I also would like to figure out how to handle war3 icons.
February 9, 2010, 1:25 AM
rabbit
http://rebirthbot.googlecode.com/svn/trunk/Rebirth/Classes/Bnet/BnetIcon.vb
http://rebirthbot.googlecode.com/svn/trunk/Rebirth/Classes/Bnet/IconsProcessor.vb

That's my fairly...messy...implementation of a BNI parser.  It's Camel's...but ported.  Obviously it doesn't do Warcraft 3 icons, but it's extracted every icon from a BNI just fine.
February 9, 2010, 1:52 AM
HdxBmx27
icons.bni only has 20 icons in it: TAHC, LTRD, RATS, RHSD, RHSS, PXES, RTSJ, VD2D, NB2W, PX2D, 3RAW, PX3W, Blizzard Representative, Battle.net Administrator, Channel Operator, Speaker, Special Guest, Squelched, GF Official, GF Player
icons_STAR.bni/icons_SEXP.bni have 6 in them: FRCW LPCW OGCW ISCW RBCW GPCW
The Stars and the Axes, etc, are hard coded in the client.
They are not downloaded on the fly, BNI files do not allow for icons based on a player's win ratio.
February 9, 2010, 2:00 AM
MyStiCaL

thanks for that rabbit,

edit: retract what i said, then, since hdx pointed it out.

anyways, where do all the stat icons come from? there all just hardcoded into the client?
February 9, 2010, 2:04 AM
rabbit
the 11 star'd icons and the 3 ladder icons are hard coded, afaik.  The rankings are just drawn on them.
February 9, 2010, 2:11 AM
HdxBmx27
[quote author=Mystical link=topic=18161.msg184090#msg184090 date=1265681049]anyways, where do all the stat icons come from? there all just hardcoded into the client?[/quote]
IIRC, they are in glue\Battle.net\icons\icons.pcx for SC, cant remember where WC2 holds em (prolly the same file)
February 9, 2010, 2:12 AM
MyStiCaL
hm, okay, so everything i've done is just correct, instead i now have to load the extra icons as well.

thanks everyone, I just figured the bni file was hiding the rest of the icons..

on to the next piece of fun
February 9, 2010, 2:21 AM
Myndfyr
[quote author=-MichaeL- link=topic=18161.msg184087#msg184087 date=1265678714]
Well, I am currently having the same problem as mystical. I only get 20 icons or some from the icons.bni file. I also would like to figure out how to handle war3 icons.
[/quote]
icons_war3.bni isn't a real BNI file, it's an MPQ file.  IIRC, it contains a (listfile) entry so you should be able to see what all the files are that the MPQ contains.

Warcraft 3 icons are stored in the BLP file format, which are DirectX-compatible containers of palette-encoded or JPG-compressed images.  MBNCSUtil supports them (as well as WoW images).
February 9, 2010, 2:25 AM
MyStiCaL
@hdx, same goes for the ping icons?
February 9, 2010, 2:43 AM
HdxBmx27
[quote author=Mystical link=topic=18161.msg184095#msg184095 date=1265683383]@hdx, same goes for the ping icons?[/quote]Yup, same image iirc.
Diff dimensions though..
February 9, 2010, 3:39 AM

Search