All pastes #1275182 Raw Edit

Stuff

public text v1 · immutable
#1275182 ·published 2008-12-03 19:07 UTC
rendered paste body
Hi,
So, as I said, I discovered how to put in new icons. We have an icons-war3.bni file. It's not a real bni file, it's an mpq. There are some blp files in there and a txt file which describes the icons. Originally like this:

KBKB *          0x00000000 ui\widgets\battlenet\chaticons\kbk-beginner.tga
KBKD *          0x00000000 ui\widgets\battlenet\chaticons\kbk-dungeon.tga
KBKE *          0x00000000 ui\widgets\battlenet\chaticons\kbk-expert.tga
KBKM *          0x00000000 ui\widgets\battlenet\chaticons\kbk-mid.tga
KBKP *          0x00000000 ui\widgets\battlenet\chaticons\kbk-pro.tga
KBKW *          0x00000000 ui\widgets\battlenet\chaticons\kbk-world.tga
WCYB *          0x00000000 ui\widgets\battlenet\chaticons\cybergames.tga

The one icons-war3.bni which is used by pvpgn is very old, in the new ones which are downloaded from original battle.net contains much more icons.
I think blizzard, when putting in custom icons is using special clienttag or smth else...First i tried to edit 0x00000000 codes, but when war3 was downloading data files it crashed as shit. I had a look at war3.mpq and I found this:

*    0x00000020 0x00000000 ui\widgets\battlenet\chaticons\bnet-squelch.blp
*    0x00000001 0x00000000 ui\widgets\battlenet\chaticons\bnet-blizzard.blp
*    0x00000002 0x00000000 ui\widgets\battlenet\chaticons\bnet-channelops.blp
*    0x00000004 0x00000000 ui\widgets\battlenet\chaticons\bnet-speaker.blp
*    0x00000008 0x00000000 ui\widgets\battlenet\chaticons\bnet-battlenet.blp
CHAT *          0x00000000 ui\widgets\battlenet\chaticons\bnet-chatclient.blp
W2BN *          0x00000000 ui\widgets\battlenet\chaticons\bnet-war2bne.blp
STAR *          0x00000000 ui\widgets\battlenet\chaticons\bnet-starcraft.blp
SSHR *          0x00000000 ui\widgets\battlenet\chaticons\bnet-starcraft.blp
JSTR *          0x00000000 ui\widgets\battlenet\chaticons\bnet-starcraft.blp
SEXP *          0x00000000 ui\widgets\battlenet\chaticons\bnet-starcraftexp.blp
DRTL *          0x00000000 ui\widgets\battlenet\chaticons\bnet-diablo.blp
DSHR *          0x00000000 ui\widgets\battlenet\chaticons\bnet-diablo.blp
D2DV *          0x00000000 ui\widgets\battlenet\chaticons\bnet-diablo2.blp
D2XP *          0x00000000 ui\widgets\battlenet\chaticons\bnet-diablo2exp.blp

So I was right, there are tags on original b.net. I had to find out the free icon places in war 3. The first free icon is 0x10. 0x20 is the X icon, but after that if you get the double of the previous value you will get free places for icons. So I edited the txt in icons-war3.bni like this:

KBKB 0x00000010  0x00000000 ui\widgets\battlenet\chaticons\kbk-beginner.tga
KBKD 0x00000040 0x00000000 ui\widgets\battlenet\chaticons\kbk-dungeon.tga
KBKE 0x00000080 0x00000000 ui\widgets\battlenet\chaticons\kbk-expert.tga
KBKM 0x00000100 0x00000000 ui\widgets\battlenet\chaticons\kbk-mid.tga
KBKP 0x000000200 0x00000000 ui\widgets\battlenet\chaticons\kbk-pro.tga
KBKW 0x00000400 0x00000000 ui\widgets\battlenet\chaticons\kbk-world.tga
WCYB 0x00000800 0x00000000 ui\widgets\battlenet\chaticons\cybergames.tga

You mus keep in mind that the war3 userselected icon overwrites the free slots, so it wont work unless you give record/w3xp/userselected_icon an ivalid value like XYZ. If it is all done the flags of icons-war3.bni will be shown.
You can implement your own icons. All the pictures are in .blp , however they are written out in TGA. The icons must be paletted blps, If you request, I can upload blp paletter brogram somewhere.

Sorry for my English, it is really late and I couldn't turn attention to grammer...

Kind Regards.