next
VNTextPatch介绍,一个可以导出导入多种游戏剧本的工具
VNTextPatch介绍,一个可以导出导入多种游戏剧本的工具
Last edited 2023-6-30
type
Post
status
Published
date
Jan 18, 2023
slug
2023-01-18
summary
tags
工具
知识
category
技术分享
icon
password
Property
Jun 30, 2023 02:00 AM

VNTextPatch github项目

支持导出剧本的文件格式

Engine
Extension(s)
Remarks
AdvHD
.ws2
ArcGameEngine
.bin
Artemis
.asb/.ast/.txt
Append --format=artemistxt to command line for .txt
Buriko General Interpreter/Ethornell
(none)
Append --format=ethornell to command line
CatSystem2
.cst
Cyberworks C,system
.a0
KaGuYa
message.dat
Kirikiri
.ks/.scn/.txt
Append --format=kirikiriks to command line for .txt
Majiro
.mjo
Musica
.sc
Mware
.nut
Propeller/Stuff Script Engine
.msc
RealLive
.txt
Append --format=reallive to command line
Ren'Py
.rpy
ShSystem
.hst
Silky's/AI6WIN
.mes/.map
Qlie
.s
Softpal
script.src
Make sure text.dat and point.dat are available in the same folder
SystemNNN
.nnn/.spt
TmrHiroAdvSystem
.srp/(none)
Append --format=tmrhiroadvsystemtext to command line in case of no extension
Whale
.txt
Append --format=whale to command line
YU-RIS
.ybn

使用方法 命令行 导出extractlocal 导入insertlocal

Excel: VNTextPatch extractlocal <folder containing original game files> script.xlsx VNTextPatch insertlocal <folder containing original game files> script.xlsx <folder to receive patched game files> JSON: VNTextPatch extractlocal <folder containing original game files> <folder to receive .json files> VNTextPatch insertlocal <folder containing original game files> <folder containing .json files> <folder to receive patched game files> Google Documents: VNTextPatq

使用体验

notion image

上面的示例,那个ks文件,也可以使用文件夹,除了用命令行,有点麻烦之外,其他还好,关键是支持的文件类型挺多,建议导出json格式,导出后是这样的,这种格式,应该很方便的使用翻译君+正则表达式翻译了

(?<=:\s").+?(?=")
匹配正则
\\. 或这样更完美一点 [「」]|\\.
过滤正则
notion image
notion image
notion image

得到这样的文本后,翻译好后,再用insertlocal导入到游戏文件中即可

目前只测试了KS文件,其他的游戏文件没有,所以没测试 😂 其他的可到项目主页查看

  • 工具
  • 知识
  • clip2watermark 剪贴板图片加水印logo工具不规范.异类.KS的翻译方法一例