arcusmaximus / VNTranslationTools

Tools for translating visual novels
MIT License
294 stars 42 forks source link

Request: Support for new Catsystem script format (.CSTL) #66

Open Berthog opened 2 years ago

Berthog commented 2 years ago

Hello, can you add support for .cstl files from catsystem engine please? This kind of script format is used in newest games like Shin koihime musou kakumei, cyanotype daydream (english release) and other ones. Here's a tool that can manage this kind of script, just for reference: https://github.com/marcussacana/CatSceneEditor and here's some scripts for test. scripts_cstl.zip

Cosetto commented 2 years ago

Can you also implement .qdb along with it too? It's a part of Catsystem2 and contains text such like this image My friend said it uses utf-8 and he gave some info about it image qdb.zip

Cosetto commented 1 year ago
import zlib

with open('tips_en.qdb', 'rb') as fs:
    stm = fs.read()

with open('tips_en_decompressed.qdb', 'wb') as fs:
    fs.write(zlib.decompress(stm[12:]))

This code should help decompress the qdb file