cqjjjzr / LCSELocalizationTools

Tools to translate Virtual Novels(Galgame)/TAVG written by LC-ScriptEngine.
Apache License 2.0
20 stars 0 forks source link

Error. #5

Open k0chegar opened 3 years ago

k0chegar commented 3 years ago

Hi! Sorry to bother you. When starting the program, an error occurred. Can you tell me what's going on? Thanks!

image

Title | Harukoi * Otome Otome no Sono de Gokigen'you. Original title | 春恋*乙女~乙女の園でごきげんよう。~

Thanks!

cqjjjzr commented 3 years ago

This may be due to a wrong Xor key. Try to open your lcsebody1.lst with a hex editor(WinHex for example) and have a look at the first 16 bytes.

k0chegar commented 3 years ago

image

k0chegar commented 3 years ago

image

The last file is erroneous, here is a screenshot.

cqjjjzr commented 3 years ago

OK.. It's caused by a different key. If you have a Kotlin compiling environment(a Gradle will do), try to modify the index key in line 13 LCSEPackageUtility/src/main/kotlin/charlie/lcsetools/pkgutil/LCSEPackage.kt to 0x01010101. You may also need to modify the key for SNX files, please send the first bytes of the extracted .snx files.

k0chegar commented 3 years ago

image image image

k0chegar commented 3 years ago

key SNX file 0x02...

Now it works... but... If change the text in the "snx files" to Cyrillic, the game crashes...

image

Is it possible to change the font in the game on this engine? Given the fact that I'm quite stupid in programming.

cqjjjzr commented 3 years ago

Well, this needs some reverse engineering.

For Chinese translation, you need to modify the game client to:

  1. Change the font to a Chinese font (the font setting can exist in either SNX files or in EXE file, better to change both)
  2. Remove the character border check (which coerces the character in SHIFT-JIS range)

However, in the case of Cyrillic characters, because SHIFT-JIS includes Cyrillic character range, you can try to encode your text in SHIFT-JIS and drop it into the file, and see if it works without modifying the game.

TXT2GAM commented 10 months ago

你好,我在运行时出现了相同的报错。请问如何获取snx文件的密钥? image 这两张图是直接用garbro解包得到的snx文件 image image

cqjjjzr commented 10 months ago

garbro解包的时候似乎已经正确解密了 SNX 文件。现在有问题的是 lcsebody1.lst 的密钥,试试把上面提到的那个文件里的 Index Key 改成 0x98989898

seelesern commented 7 months ago

您好,我现在成功提取了snx文件,但用笔记本打开来是乱码。请问我该如何提取成json文件用GalTransl翻译?好像并不支持snx文件。还是得用另外的方法? QQ图片20240113112354 QQ图片20240113112406 QQ图片20240113112455 QQ图片20240113185118 QQ图片20240113185225