CyanidEEEEE / Livemaker-chinese-tl

Livemaker中文汉化教程
Creative Commons Zero v1.0 Universal
34 stars 2 forks source link

Livemaker字体及Livemaker替换表有錯 #5

Open Julian083 opened 7 months ago

Julian083 commented 7 months ago

"揭"這個字並沒有更換, 因為簡體字裡盃寫成杯

allrobot commented 7 months ago

不好意思,请问怎么替换字体到游戏?我在cmd提示字体错误:

(python38) F:\BaiduNetdiskDownload\[Nighthawk] Complete series ストッピング 13 [4G]\ストッピング!!!2 ロ○っ子図書館編\game_files>lmlsb insertcsv --encoding=utf-8-sig 00000001.lsb 00000001.csv
Patching 00000001.lsb ...
2024-03-20 09:28:43.844 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:8:1> '說' is not a valid CP932 character.
2024-03-20 09:28:43.844 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:8:2> '污' is not a valid CP932 character.
2024-03-20 09:28:43.846 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:8:3> '您' is not a valid CP932 character.
2024-03-20 09:28:43.846 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:8:4> '另' is not a valid CP932 character.
2024-03-20 09:28:43.848 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:39:0> '嗯' is not a valid CP932 character.
2024-03-20 09:28:43.848 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:39:1> '閱' is not a valid CP932 character.
2024-03-20 09:28:43.849 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:39:2> '吧' is not a valid CP932 character.
2024-03-20 09:28:43.849 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:39:3> '舔' is not a valid CP932 character.
2024-03-20 09:28:43.850 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:39:4> '啊' is not a valid CP932 character.
2024-03-20 09:28:43.850 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:39:6> '呢' is not a valid CP932 character.
2024-03-20 09:28:43.851 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:39:8> '喲' is not a valid CP932 character.
2024-03-20 09:28:43.851 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:39:12> '啦' is not a valid CP932 character.
2024-03-20 09:28:43.851 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:39:10> '嘿' is not a valid CP932 character.
2024-03-20 09:28:43.852 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:39:13> '溫' is not a valid CP932 character.
2024-03-20 09:28:43.861 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:45:0> '哎' is not a valid CP932 character.
2024-03-20 09:28:43.862 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:45:4> '另' is not a valid CP932 character.
2024-03-20 09:28:43.863 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:45:8> '步' is not a valid CP932 character.
2024-03-20 09:28:43.863 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:45:11> '舔' is not a valid CP932 character.
2024-03-20 09:28:43.864 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:45:12> '你' is not a valid CP932 character.
2024-03-20 09:28:43.864 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:45:15> '喔' is not a valid CP932 character.
2024-03-20 09:28:43.885 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:51:1> '楣' is not a valid CP932 character.
2024-03-20 09:28:43.885 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:51:3> '誒' is not a valid CP932 character.
2024-03-20 09:28:43.886 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:51:5> '舔' is not a valid CP932 character.
2024-03-20 09:28:43.887 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:51:8> '溫' is not a valid CP932 character.
2024-03-20 09:28:43.887 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:51:10> '噗' is not a valid CP932 character.
2024-03-20 09:28:43.889 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:51:19> '嘿' is not a valid CP932 character.
2024-03-20 09:28:43.889 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:51:20> '擊' is not a valid CP932 character.
2024-03-20 09:28:43.890 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:51:21> '溫' is not a valid CP932 character.
2024-03-20 09:28:43.902 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:57:4> '舔' is not a valid CP932 character.
2024-03-20 09:28:43.902 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:57:6> '舔' is not a valid CP932 character.
2024-03-20 09:28:43.902 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:57:7> '舔' is not a valid CP932 character.
2024-03-20 09:28:43.903 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:57:9> '舔' is not a valid CP932 character.
2024-03-20 09:28:43.904 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:57:14> '吞' is not a valid CP932 character.
2024-03-20 09:28:43.904 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:57:15> '溫' is not a valid CP932 character.
2024-03-20 09:28:43.911 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:63:4> '碰' is not a valid CP932 character.
2024-03-20 09:28:43.912 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:63:6> '嗎' is not a valid CP932 character.
2024-03-20 09:28:43.919 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:63:24> '骯' is not a valid CP932 character.
2024-03-20 09:28:43.960 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:75:7> '誒' is not a valid CP932 character.
2024-03-20 09:28:43.961 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:75:9> '嗎' is not a valid CP932 character.
2024-03-20 09:28:43.967 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:97:4> '舔' is not a valid CP932 character.
2024-03-20 09:28:43.976 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:103:4> '碰' is not a valid CP932 character.
2024-03-20 09:28:43.981 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:103:6> '嗎' is not a valid CP932 character.
2024-03-20 09:28:43.981 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:103:9> '溫' is not a valid CP932 character.
2024-03-20 09:28:43.984 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:103:24> '骯' is not a valid CP932 character.
2024-03-20 09:28:43.990 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:109:1> '閱' is not a valid CP932 character.
2024-03-20 09:28:43.999 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:109:10> '嘿' is not a valid CP932 character.
2024-03-20 09:28:44.009 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:115:1> '楣' is not a valid CP932 character.
2024-03-20 09:28:44.013 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:115:3> '誒' is not a valid CP932 character.
2024-03-20 09:28:44.014 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:115:5> '舔' is not a valid CP932 character.
2024-03-20 09:28:44.015 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:115:8> '溫' is not a valid CP932 character.
2024-03-20 09:28:44.015 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:115:10> '噗' is not a valid CP932 character.
2024-03-20 09:28:44.017 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:115:19> '嘿' is not a valid CP932 character.
2024-03-20 09:28:44.017 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:115:20> '擊' is not a valid CP932 character.
2024-03-20 09:28:44.029 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:121:4> '另' is not a valid CP932 character.
2024-03-20 09:28:44.030 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:121:8> '步' is not a valid CP932 character.
2024-03-20 09:28:44.031 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:121:11> '舔' is not a valid CP932 character.
2024-03-20 09:28:44.032 | WARNING  | livemaker.lsb.lmscript:replace_text_blocks:594 - Failed to translate text block <pylm:text:00000001.lsb:121:15> '喔' is not a valid CP932 character.
  Translated 28 lines
  Failed to translate 283 lines
  Ignored 14 untranslated lines
Backing up original LSB.
Wrote new LSB.
(python38) F:\BaiduNetdiskDownload\[Nighthawk] Complete series ストッピング 13 [4G]\ストッピング!!!2 ロ○っ子図書館編\game_files>

作者说要去font软件操作,意思是把MS Gothic里面的不常用词换成吞、舔、喔、你、哎等等之类的繁体字,然后安装这个MS Gothic字体文件?但我已经安装作者提供的字体,上面的吞、舔、喔、你、哎这些也在字体文件中找到,但cmd还是提示,是不是就可以不管它?不管它的话,那字体文件怎么让游戏调用呢……

Julian083 commented 7 months ago

是要用font軟件去改作者給你的字體。如果你文本裡有CP932不能顯示的文字而又不在作者提供的替換字體表﹐你就要自己手動替換﹐不然會直接顯示日文原文。 例如我的文本有"嘻"字﹐這個字是CP932裡沒有的而作者又沒有替換到msgothic字體﹐我就把它換到"哘"﹐這個字是CP293能顯示的

allrobot commented 7 months ago

不好意思,请问怎么替换字体到游戏?我在cmd提示字体错误:

解决了,原因是pylivemaker不支持非JIS编码的字体注入,所以执行lmlsb insertcsv --encoding=utf-8-sig 00000001.lsb 00000001.csv失败

使用SExtract工具把字体更换为JIS然后用他给的字体文件安装就完事了

CharlotteTianlin commented 4 months ago

不好意思,请问怎么替换字体到游戏?我在cmd提示字体错误:

解决了,原因是pylivemaker不支持非JIS编码的字体注入,所以执行lmlsb insertcsv --encoding=utf-8-sig 00000001.lsb 00000001.csv失败

使用SExtract工具把字体更换为JIS然后用他给的字体文件安装就完事了

佬,我用了sextractors的tool里那个cnjp.py转了作者给的otf后还是没用,我在fontcreaters查看发现这些字也是有的,比如“喂,妈,酱,你”等等,这难道是win11默认用的ttc格式的那个字体而不是自己安装的这个字体的原因吗,我注意到它在系统中与系统自带的字体名字不相同,一个使用英文格式名,一个显示日文格式名

allrobot commented 4 months ago

佬,我用了sextractors的tool里那个cnjp.py转了作者给的otf后还是没用,我在fontcreaters查看发现这些字也是有的,比如“喂,妈,酱,你”等等,这难道是win11默认用的ttc格式的那个字体而不是自己安装的这个字体的原因吗,我注意到它在系统中与系统自带的字体名字不相同,一个使用英文格式名,一个显示日文格式名

我是Windows10 企业版 21H2,替换字体后可见

每个字体有自己的字体名,应该是母语格式和英文格式名

用SEx提供的ttf文件,人家已经换的差不多了,我改字体文件属性为成MS Pゴシック,即MS PGothic,因为我汉化的游戏需要MS Pゴシック字体,MS ゴシック是不支持的

你应该查下pylivemaker文档解密所有的文件,然后Notepad++搜索全部文件某关键词font看看游戏是用什么字体的,然后把SE作者提供的文件,通过FontCreator修改成游戏需要的字体属性

但是有些用户安装的其它系统版本,即使安装字体后重启电脑,依旧无法显示替换后的字体

提交了一个poll,没合并

链接:https://github.com/allrobot/Livemaker-chinese-tl

CharlotteTianlin commented 4 months ago

佬,我用了sextractors的tool里那个cnjp.py转了作者给的otf后还是没用,我在fontcreaters查看发现这些字也是有的,比如“喂,妈,酱,你”等等,这难道是win11默认用的ttc格式的那个字体而不是自己安装的这个字体的原因吗,我注意到它在系统中与系统自带的字体名字不相同,一个使用英文格式名,一个显示日文格式名

我是Windows10 企业版 21H2,替换字体后可见

每个字体有自己的字体名,应该是母语格式和英文格式名

用SEx提供的ttf文件,人家已经换的差不多了,我改字体文件属性为成MS Pゴシック,即MS PGothic,因为我汉化的游戏需要MS Pゴシック字体,MS ゴシック是不支持的

你应该查下pylivemaker文档解密所有的文件,然后Notepad++搜索全部文件某关键词font看看游戏是用什么字体的,然后把SE作者提供的文件,通过FontCreator修改成游戏需要的字体属性

但是有些用户安装的其它系统版本,即使安装字体后重启电脑,依旧无法显示替换后的字体

提交了一个poll,没合并

链接:https://github.com/allrobot/Livemaker-chinese-tl

多谢佬,我发现是我理解错了,我一开始以为是装上字体就完成了,后面才发现是需要用日文生僻字替换原文汉字才行,我是自己做了字体,在fc中加入了jis格式,livemaker是支持更换字体的,我在游戏中更换了字体,不需要覆盖系统自带的字体,就成功了 Image_1717576714361

pakemons commented 2 months ago

不好意思,请问怎么替换字体到游戏?我在cmd提示字体错误:

解决了,原因是pylivemaker不支持非JIS编码的字体注入,所以执行lmlsb insertcsv --encoding=utf-8-sig 00000001.lsb 00000001.csv失败

使用SExtract工具把字体更换为JIS然后用他给的字体文件安装就完事了

大佬求教,我现在也在开始翻译一个livemaker引擎的游戏,现在完成了汉化写在了csv文件中,封包提示失败,应该是要将中文汉字转换成JIS的日文汉字,但是我水平不太行,中文汉字转换成日文汉字这一步,看大佬你的汉化教程没看懂,是用SExtract生成的json脚本一键转换csv中的中文汉字吗?具体要咋操作呢

allrobot commented 2 months ago

我现在也在开始翻译一个livemaker引擎的游戏,现在完成了汉化写在了csv文件中,封包提示失败,应该是要将中文汉字转换成JIS的日文汉字,但是我水平不太行,中文汉字转换成日文汉字这一步,看大佬你的汉化教程没看懂,是用SExtract生成的json脚本一键转换csv中的中文汉字吗?具体要咋操作呢

好吧,删掉了一些多余的描述,有哪些不懂?https://github.com/allrobot/Livemaker-chinese-tl/blob/main/README.md

中文转日文汉字这一步,在SExtract的设置界面勾选生成UniversalInjector的JIS替换配置即可替换,然后点注入按钮,new文件夹路径下就生成了新的csv文件,此时就可以进行下一步操作了

pakemons commented 2 months ago

我现在也在开始翻译一个livemaker引擎的游戏,现在完成了汉化写在了csv文件中,封包提示失败,应该是要将中文汉字转换成JIS的日文汉字,但是我水平不太行,中文汉字转换成日文汉字这一步,看大佬你的汉化教程没看懂,是用SExtract生成的json脚本一键转换csv中的中文汉字吗?具体要咋操作呢

好吧,删掉了一些多余的描述,有哪些不懂?https://github.com/allrobot/Livemaker-chinese-tl/blob/main/README.md

中文转日文汉字这一步,在SExtract的设置界面勾选生成UniversalInjector的JIS替换配置即可替换,然后点注入按钮,new文件夹路径下就生成了新的csv文件,此时就可以进行下一步操作了 谢谢大佬我会用了,已经翻译好了,不过我用的是dll强行替换,没搞转换字体这一步,以后所有livemaker我都直接把dll、字体文件、和json一放就能直接转换了