YuriSizuku / OnscripterYuri

An enhancement ONScripter project porting to many platforms, especially web.
GNU General Public License v2.0
278 stars 16 forks source link

Broken Russian Symbols #12

Closed shupkat closed 3 weeks ago

shupkat commented 10 months ago

Hello, I'm trying to run a tsukihime visual novel on archlinux using your aur package, but I get broken characters, I tried putting --enc:sjis, but it just changes the look of the characters and it's still broken. This is an unofficial translation, but it works when running with wine. I can provide examples of game files, but I have to find out which ones you need to identify the problem and whether I can post them here without violating the rules of github

no --enc:sjis image

with --enc:sjis

image

YuriSizuku commented 9 months ago

As I am not familiar with Russian Symbols game, coud you provide some examples ?

shupkat commented 9 months ago

https://disk.yandex.ru/d/h9WnDq-1wADnOw

here is a link to the game that I am trying to run, let me know if you are having problems downloading a file from this file sharing service, I will upload it to a convenient one for you

YuriSizuku commented 4 weeks ago

Sorry for the late reply, it seems that the script is using utf-8 encoding. The onscripter didn't support this encoding currently. You can change the encoding from utf-8 to either sjis or gbk (both of these encoding includes Russian charactors).

shupkat commented 4 weeks ago

Thanks for the reply, may I know how I can change the game text encoding? Do I need any special tool for this? Сould there be problems with fonts if the encoding is changed?

YuriSizuku commented 4 weeks ago

For the script, use nsdec to extract nscript.dat to nscript.txt then use iconv -c -f UTF-8 -t CP936 nscript.txt > 00.txt to convert encoding from utf8 to gbk.

Then there are two kind of archive arc.nsa and arc.sar, the ons engine can only load one of them.
So either extract sar or nsa files to gamedir. You can use nsout to extract nsa file.

I have tested with these steps and it should be work fine. Here is the converted script. 00.zip

test_tsukihime

YuriSizuku commented 3 weeks ago

I wil close this issue. If any other problems happens, please feel free to add here.