Selfmade buttonbar icons -partly- gone...confused

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
TotalFunction
Junior Member
Junior Member
Posts: 11
Joined: 2005-11-28, 02:07 UTC

Selfmade buttonbar icons -partly- gone...confused

Post by *TotalFunction »

It's not a malfunction but I'm curious to know the reason for this:

I made some own icl-files and used them with the glorious nested-bars. Unfortunately the disk with the icons crashed and, as I expected, my nested-bar buttons morphed blank. But...two out of five nested-bars still show ALL my personal icons :confused:. When checking the reference my surprise was even bigger as they still show the old path to the dead disk.

Well, restoring the pics for the other buttons seemed easy until I found out that none of the icl-files can be found on my whole system. They show up but they are nowhere...? It's easy to make some new but as they are still smiling at me I'd like to know how to restore or to find them.

Thx for any hint :-)
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2TotalFunction
The icons are cached in the *.br1 files.
I switched to Linux, bye and thanks for all the fish!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Total Commander caches all icons in the .br1 files. These are really just renamed .bmp files with an additional header. You can try to copy+paste the icons from the button bars to save them.
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13068
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

The icons are cached in .br1 files (which are actually slightly modified BMPs) for faster extraction. So even if the icl files are gone, the icons can still be saved. But you must not change the button bar in any way, especially, you must not click OK in the change button bar dialog, because then the icons are reread from their original source.

http://ghisler.ch/board/viewtopic.php?p=14894#14894 (German)
Short translation:
You need a hex-editor to change the .br1 file to a .bmp.
1. save the first 4 bytes somewhere for later reference
2. delete the noted first 4 bytes
3. insert the following 14 bytes:
first 2 bytes - signature: 42 4D
next 4 bytes - file size, LSB first, example: size=79758 bytes = Hex 1378E -> 8E 37 01 00
next 4 bytes null: 00 00 00 00
next 4 bytes - offset of the bitmap-bit: 36 00 00 00

4. save as extracted.bmp
5. edit as desired

If you wish to convert back to .br1 then you have to undo the procedure:
6. delete the first 14 bytes
7. insert the first 4 saved bytes from step 1 above.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
TotalFunction
Junior Member
Junior Member
Posts: 11
Joined: 2005-11-28, 02:07 UTC

Post by *TotalFunction »

Thank you guys and esp. Hacker for detailed instructions. :-)
User avatar
Hacker
Moderator
Moderator
Posts: 13068
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

You're welcome. ;)

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply