Current location - Health Preservation Learning Network - Slimming men and women - What software is used to decompress files in epk format?
What software is used to decompress files in epk format?
Unpacking epk is only the first step, and our goal is software localization.

When you unpack all the files excitedly, you find that there are no such things as reource or bdf font files at all, only some sound and picture files.

If you look closely, you will find some bmp with font as the file name, such as after quartz unbinding.

font.bmp

font_backmask.bmp

font_frontmask.bmp

Of course, every game is not necessarily these. Shi Ying is a complex material. In order to pursue the effect of fonts, this game uses XOR algorithm to mask fonts. So you need to have a font composed of the above bmp.

Open a bmp to see if the arrangement is very similar to the order of ascii character table.

Yes, elemental games are all like this. They write the characters in the ascii character table into a bmp file in sequence, and then read the pictures in the corresponding positions according to the characters when displaying the characters. For example, the character string "1323" will be truncated according to the position of the ascii character table (0x3 1, 0x33, 0x32, 0x33) when displaying characters. !

Some people are impatient and want to ask questions, so how can we add Chinese characters to the font? It's very simple. Just add the Chinese characters you need at the back of the picture. The wise man immediately thought of the next question: what value should I call my added Chinese characters? Let's enlarge this bmp to see:

What do you see? It looks nothing special, except that there are some messy white lines at the top of the picture. In fact, the secret lies in these white lines. If you look carefully, each white line corresponds to exactly one character, so for example, the character "1" should be below 0x3 1 white line, so that we can know the mapping method of the character table!

Then we enlarge the font ourselves, open bmp with image editing tools, lengthen the image size, and then add the Chinese characters needed later, and add a white line to each Chinese character.

For example, the white line number of "single person" in the picture is 0x79 and 0x80, so we open the app file, find the string of "single person", change it to 0x79 and 0x80, and add 0x00 to the rest, so that the call of single person becomes "single person".

Of course, if you are creative, you can think of something more fun, that is, what if a white line crosses multiple Chinese characters?

The answer is absolutely yes, and it will be easier to control the effect of the interface:)

This is a rough tutorial. The purpose of writing this tutorial is not only to sinicize the element game, but also to convey a belief to you that sinicization is not just to open files with tools such as dogs or UE or my RSCEditor and constantly change roles. China brings us extensive knowledge, and we should have the courage to explore new fields.

It is hard to find this. I can't find it. Please refer to this to see if it is useful. I can't find it.