Basics
Silkroad stores guild/union crests on stand-alone FTP server. There is no obvious reason for this implementation and I do not understand why they have done it in this way.
Another weird fact is that files are kept in single directory which makes it really difficult to load (takes long).
Following example shows list of some files from crest storage.
File namingA10_1363_2.crb
A10_1363_3.crb
G90_350_5.crb
G90_350_6.crb
File name written above can be split into these parts:A10_1363_2.crb
File dataName Description
---------------------------------------------------
type Type of crest (Aliance, Guild)
serverId ID of server
guildId ID of guild
crestIndex Index of crest
Silkroad uses 16x16 pixel big 8bpp bitmaps with static color palette and no compression. Thus, stored crests on FTP server are 256B big.
Once you know this, it is simple to rebuild "original" bitmap from crest file.
You only need basic knowledge of BMP structure. BMP is composed of 4 logical parts, as is shown below:
Crest file contains bitmap part of BMP. Since header, meta and palette are static, it is easy to rebuild bitmap:header
meta
palette
bitmap (crest file content)
Issuesstatic part (header, meta, palette)
dynamic part (bitmap)
- FTP server is damn slow
- Requests timeout on some occasions
Hello.
ReplyDeleteCan you upload 1 Conveted File please?
I got trouble with the color table.
Thanks!