• Welcome to Valhalla Legends Archive.
 

Icons.bni

Started by Mystical, February 07, 2010, 07:38 PM

Previous topic - Next topic

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.

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.
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

Mystical

#2
quick example


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



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

I don't want to start parsing icons that arnt there. :|

brew

can you see the icons in the files? (via hex editor)
try viewing it with this.
<3 Zorm
Quote[01:08:05 AM] <@Zorm> haha, me get pussy? don't kid yourself quik
Scio te esse, sed quid sumne? :P

rabbit

Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

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?

Michael

#6
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.

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.
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

Hdx

#8
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.

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

Mystical

#9

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?

rabbit

the 11 star'd icons and the 3 ladder icons are hard coded, afaik.  The rankings are just drawn on them.
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

Hdx

Quote from: Mystical on February 08, 2010, 08:04 PManyways, where do all the stat icons come from? there all just hardcoded into the client?
IIRC, they are in glue\Battle.net\icons\icons.pcx for SC, cant remember where WC2 holds em (prolly the same file)

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

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

MyndFyre

Quote from: -MichaeL- on February 08, 2010, 07:25 PM
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.
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).
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Mystical

@hdx, same goes for the ping icons?