VNTranslationTools icon indicating copy to clipboard operation
VNTranslationTools copied to clipboard

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

Open Berthog opened this issue 2 years ago • 2 comments

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

Berthog avatar Aug 10 '22 17:08 Berthog

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 avatar Aug 22 '22 13:08 Cosetto

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

Cosetto avatar Oct 23 '22 01:10 Cosetto