ssynn / game_translation

一个用于把游戏封包内的文本抽取、翻译、替换的项目
53 stars 10 forks source link

About Lilim #5

Closed Sisulizer closed 2 years ago

Sisulizer commented 2 years ago

Is this line https://github.com/ssynn/game_translation/blob/19d61ed5ad61dd952a55ab4dc2ff95e5a14f337a/src/public_function.py#L3738 use for extract text from .scr? I only see the output code.

Sisulizer commented 2 years ago

My bad I used AE to extract so it wasn't decrypt but if I use GARbro it is decrypted, but AE can repack .aos, so is there anyway to encrypt the script back?

ssynn commented 2 years ago

Text files are not encrypted, they are compressed by Huffman Coding, you can try Lilim.HuffmanDecompressor() and Lilim. HuffmanCompressor() hope they work

Sisulizer commented 2 years ago

I know it's late to ask but is the engine only accept full-width characters?

ssynn commented 2 years ago

yes