Skip to content

Commit

Permalink
Add .qtd files for qsttable.bin, and 2 lines in code.bin
Browse files Browse the repository at this point in the history
  • Loading branch information
Xzonn committed Jun 17, 2024
1 parent cbfd0da commit eec1d79
Show file tree
Hide file tree
Showing 9 changed files with 342 additions and 6 deletions.
Binary file added original_files/unpacked/init/qsttable.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/export_ctd.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
def export_ctd(input_root: str, message_root: str):
for root, dirs, files in os.walk(input_root):
for file_name in files:
if not (file_name.endswith(".ctd") or file_name.endswith(".ftd")):
if not (file_name.endswith(".ctd") or file_name.endswith(".ftd") or file_name.endswith(".qtd")):
continue

sheet_name = os.path.relpath(f"{root}/{file_name}", input_root).replace("\\", "/")
Expand Down
8 changes: 5 additions & 3 deletions scripts/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

CONTROL_PATTERN = re.compile(r"(\[[0-9A-F]{2}(?: [0-9A-F]{2})*\]|\n)")
TRASH_PATTERN = re.compile(
r"^(?:|.*(?:0x|_|※|(仮)|ダミーメッセージ|ダミーMSG|ダミー枠|RESERVE|blank|BLANK|リザーブ|(ダミー)|ダ\[(?:n|e|f(?: \d+)+)\]ミ\[(?:n|e|f(?: \d+)+)\]ー|★未使用|・未使用|未使用・|MSG|これが出るとバグです|バッファ).*|ダミー\d*|<声のみ>ダミー|会話ダミー|ダミ-|ブランク|未使用\d*|ダミー 使用禁止|%s|?+|NULL|仮・.+)$",
r"^(?:|.*(?:0x|_|※|(仮)|ダミーメッセージ|ダミーMSG|ダミー枠|RESERVE|blank|BLANK|リザーブ|(ダミー)|ダ\[(?:n|e|f(?: \d+)+)\]ミ\[(?:n|e|f(?: \d+)+)\]ー|★未使用|・未使用|未使用・|MSG|これが出るとバグです|バッファ).*|ダミー\d*|<声のみ>ダミー|会話ダミー|ダミ-|ブランク|未使用\d*|ダミー 使用禁止|%s|?+|NULL|仮・.+|クエスト.+ダミー)$",
re.DOTALL,
)
KANA_PATTERN = re.compile(r"[\u3040-\u309F\u30A0-\u30FF]+")
Expand All @@ -37,8 +37,8 @@
"·": "・",
"—": "―",
}
CHINESE_PUNCTUATIONS_LEFT = ",。、;:?!…”’》)"
CHINESE_PUNCTUATIONS_RIGHT = "“‘《("
CHINESE_PUNCTUATIONS_LEFT = ",。、;:?!…》)"
CHINESE_PUNCTUATIONS_RIGHT = "《("
CHINESE_PUNCTUATIONS_CENTER = "…·・—―"

TO_SPECIAL_CONTROLS = {
Expand Down Expand Up @@ -80,6 +80,8 @@

HARDCODED_TEXTS_CODE_BIN = [
("プロローグ", "???"),
("戦闘ナビを%sにまかせる。", "戦闘ナビを%sにまかせる。"),
("探索ナビを%sにまかせる。", "探索ナビを%sにまかせる。"),
("剛毅", "女帝"),
("Aチーム", "P3女主人公"),
("謎解き", "採取"),
Expand Down
2 changes: 1 addition & 1 deletion scripts/import_ctd.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
def import_ctd(input_root: str, message_root: str, output_root: str):
for root, dirs, files in os.walk(input_root):
for file_name in files:
if not (file_name.endswith(".ctd") or file_name.endswith(".ftd")):
if not (file_name.endswith(".ctd") or file_name.endswith(".ftd") or file_name.endswith(".qtd")):
continue

sheet_name = os.path.relpath(f"{root}/{file_name}", input_root).replace("\\", "/")
Expand Down
2 changes: 2 additions & 0 deletions texts/ja/code.bin.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"source","target","id","developer_comments"
"offset_001aef58_0","プロローグ","offset_001aef58_0",""
"offset_001aef68_0","ひかり","offset_001aef68_0",""
"offset_0038c118_0","戦闘ナビを%sにまかせる。","offset_0038c118_0",""
"offset_0038c15c_0","探索ナビを%sにまかせる。","offset_0038c15c_0",""
"offset_00454e1c_0","剛毅","offset_00454e1c_0",""
"offset_00454e24_0","世界","offset_00454e24_0",""
"offset_00454e38_0","死神","offset_00454e38_0",""
Expand Down
58 changes: 58 additions & 0 deletions texts/ja/init/qsttable.bin_qstQuestNameText.qtd.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
"source","target","id","developer_comments"
"text_001_0","今、できることを…","text_001_0",""
"text_002_0","カット 予定","text_002_0",""
"text_003_0","ヤンキー戦争勃発…?","text_003_0",""
"text_004_0","目指せ!カンフーモデル!","text_004_0",""
"text_005_0","カット 予定","text_005_0",""
"text_006_0","古代生物を調査せよ!","text_006_0",""
"text_007_0","肉と芸術と友情と…","text_007_0",""
"text_008_0","ニセ警官を捜し出せ!","text_008_0",""
"text_009_0","魂の叫びを見つけだせ!","text_009_0",""
"text_010_0","守るべきものは…","text_010_0",""
"text_011_0","黄金の宝物を奪取せよ!","text_011_0",""
"text_012_0","チュロスを作ろう!","text_012_0",""
"text_013_0","新作ポップコーンを求めて","text_013_0",""
"text_014_0","それぞれの鎖","text_014_0",""
"text_015_0","肉食獣を追い詰めろ!","text_015_0",""
"text_016_0","失われたテクノロジー?","text_016_0",""
"text_017_0","上に立つ者として","text_017_0",""
"text_018_0","世界を越えた絆","text_018_0",""
"text_019_0","双子の試練","text_019_0",""
"text_020_0","カット 予定","text_020_0",""
"text_021_0","腹ペコ男子の0円クッキング","text_021_0",""
"text_022_0","怪盗と少年の正義","text_022_0",""
"text_023_0","世界を越えた信頼","text_023_0",""
"text_024_0","A.I.G.I.Sを探索せよ!","text_024_0",""
"text_025_0","アイギスの出力調整","text_025_0",""
"text_026_0","ぷりちーますこっと決定戦!","text_026_0",""
"text_027_0","ワイルドチャレンジでございます","text_027_0",""
"text_028_0","世界を越えた運命","text_028_0",""
"text_029_0","怪人の教え","text_029_0",""
"text_030_0","A.I.G.I.Sから脱出せよ!","text_030_0",""
"text_031_0","オトナの階段、登っちゃう?","text_031_0",""
"text_032_0","美少女の極意","text_032_0",""
"text_033_0","優雅なお嬢様の採取","text_033_0",""
"text_034_0","カット 予定","text_034_0",""
"text_035_0","イースターエッグを探せ!","text_035_0",""
"text_036_0","この想いを電波にのせて","text_036_0",""
"text_037_0","拳で語れ","text_037_0",""
"text_038_0","ロボット討伐","text_038_0",""
"text_039_0","絆のカタチは","text_039_0",""
"text_040_0","歌う果実は恋の味…?","text_040_0",""
"text_041_0","花がわらう街角","text_041_0",""
"text_042_0","蝶舞う迷宮異常なし","text_042_0",""
"text_043_0","自分を見つめよ","text_043_0",""
"text_044_0","カット 予定","text_044_0",""
"text_045_0","頂上決戦! クマvsクマクマ!?","text_045_0",""
"text_046_0","プレゼントフォーユー","text_046_0",""
"text_047_0","カモシティの新たなる威光","text_047_0",""
"text_048_0","ジュネシック・ランドの取極め","text_048_0",""
"text_049_0","A.I.G.I.Sの新風","text_049_0",""
"text_050_0","ひかりの更なる脅威","text_050_0",""
"text_191_0","191.ヒーローベルトを盗み出せ","text_191_0",""
"text_192_0","192.通行禁止を解除せよ","text_192_0",""
"text_193_0","195.ヒーローベルトを届けよ","text_193_0",""
"text_194_0","197.恐怖のファッションチェック","text_194_0",""
"text_195_0","194.ハーレム解放作戦","text_195_0",""
"text_196_0","196.ヒーロー改造施設停止作戦","text_196_0",""
"text_197_0","193.新たなるフレーバーを求めて","text_197_0",""
6 changes: 6 additions & 0 deletions texts/zh_Hans/code.bin.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

序章"
"offset_001aef68_0","光","offset_001aef68_0","翻译匹配:PQ2"
"offset_0038c118_0","将战斗导航交给%s。","offset_0038c118_0","机翻辅助:

将战斗导航交给%s。"
"offset_0038c15c_0","将搜索导航交给%s。","offset_0038c15c_0","机翻辅助:

将搜索导航交给%s。"
"offset_00454e1c_0","力量","offset_00454e1c_0","翻译匹配:P5R"
"offset_00454e24_0","世界","offset_00454e24_0","翻译匹配:P5R"
"offset_00454e38_0","死神","offset_00454e38_0","翻译匹配:P5R"
Expand Down
268 changes: 268 additions & 0 deletions texts/zh_Hans/init/qsttable.bin_qstQuestNameText.qtd.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,268 @@
"source","target","id","developer_comments"
"text_001_0","现在,能做的事……","text_001_0","机翻辅助:

现在,能做的事……

现在,能做的……"
"text_002_0","计划切割","text_002_0","机翻辅助:

计划切割

预定剪发"
"text_003_0","不良少年战争爆发……?","text_003_0","机翻辅助:

不良少年战争爆发……?

洋基战争爆发……?"
"text_004_0","目标!功夫模特!","text_004_0","机翻辅助:

目标!功夫模特!"
"text_005_0","计划切割","text_005_0","机翻辅助:

计划切割

预定剪发"
"text_006_0","调查古代生物!","text_006_0","机翻辅助:

调查古代生物!"
"text_007_0","肉、艺术、友情……","text_007_0","机翻辅助:

肉、艺术、友情……

肉体、艺术、友情……"
"text_008_0","找出冒牌警察!","text_008_0","机翻辅助:

找出冒牌警察!

找出假警察!"
"text_009_0","找到灵魂的呼唤吧!","text_009_0","机翻辅助:

找到灵魂的呼唤吧!

寻找灵魂的呐喊!"
"text_010_0","应该守护的东西是……","text_010_0","机翻辅助:

应该守护的东西是……

应该保护的是……"
"text_011_0","夺取黄金的宝物!","text_011_0","机翻辅助:

夺取黄金的宝物!

夺取黄金宝物!"
"text_012_0","制作图罗斯吧!","text_012_0","机翻辅助:

制作图罗斯吧!

造个楚洛斯吧!"
"text_013_0","求新的爆米花","text_013_0","机翻辅助:

求新的爆米花

购买新爆米花"
"text_014_0","各自的锁链","text_014_0","机翻辅助:

各自的锁链

每条链"
"text_015_0","把肉食兽逼到绝境!","text_015_0","机翻辅助:

把肉食兽逼到绝境!

把食肉兽逼上绝路!"
"text_016_0","丢失的技术?","text_016_0","机翻辅助:

丢失的技术?

失落的科技?"
"text_017_0","作为站在上面的人","text_017_0","机翻辅助:

作为站在上面的人

作为高高在上的人"
"text_018_0","超越世界的羁绊","text_018_0","机翻辅助:

超越世界的羁绊

跨越世界的纽带"
"text_019_0","双胞胎的考验","text_019_0","机翻辅助:

双胞胎的考验"
"text_020_0","计划切割","text_020_0","机翻辅助:

计划切割

预定剪发"
"text_021_0","肚子饿男子的0日元烹饪","text_021_0","机翻辅助:

肚子饿男子的0日元烹饪

饥肠辘辘男子的0日元烹饪"
"text_022_0","怪盗与少年的正义","text_022_0","机翻辅助:

怪盗与少年的正义"
"text_023_0","超越世界的信赖","text_023_0","机翻辅助:

超越世界的信赖

超越世界的信任"
"text_024_0","探索A.I.G.I.S!","text_024_0","机翻辅助:

探索A.I.G.I.S!

探索A.I.G.I.S !"
"text_025_0","埃癸斯的输出调整","text_025_0","机翻辅助:

埃癸斯的输出调整"
"text_026_0","突然决定战!","text_026_0","机翻辅助:

突然决定战!

大头娃娃决定战!"
"text_027_0","这是狂野的挑战","text_027_0","机翻辅助:

这是狂野的挑战

狂野挑战。"
"text_028_0","超越世界的命运","text_028_0","机翻辅助:

超越世界的命运

跨越世界的命运"
"text_029_0","怪人的教义","text_029_0","机翻辅助:

怪人的教义

怪人的教诲"
"text_030_0","摆脱A.I.G.I.S!","text_030_0","机翻辅助:

摆脱A.I.G.I.S!

逃离A.I.G.I.S !"
"text_031_0","要爬成人的楼梯吗?","text_031_0","机翻辅助:

要爬成人的楼梯吗?

要爬大人的楼梯吗?"
"text_032_0","美少女的秘诀","text_032_0","机翻辅助:

美少女的秘诀

美少女的奥秘"
"text_033_0","优雅小姐的采集","text_033_0","机翻辅助:

优雅小姐的采集"
"text_034_0","计划切割","text_034_0","机翻辅助:

计划切割

预定剪发"
"text_035_0","寻找复活节蛋!","text_035_0","机翻辅助:

寻找复活节蛋!

寻找复活节彩蛋!"
"text_036_0","将这思念乘上电波","text_036_0","机翻辅助:

将这思念乘上电波

把这种想法传递给电波,"
"text_037_0","用拳头说","text_037_0","机翻辅助:

用拳头说

用拳头说话"
"text_038_0","讨伐机器人","text_038_0","机翻辅助:

讨伐机器人

机器人讨伐"
"text_039_0","羁绊的形状","text_039_0","机翻辅助:

羁绊的形状

纽带的形式"
"text_040_0","歌唱的果实是恋爱的味道……?","text_040_0","机翻辅助:

歌唱的果实是恋爱的味道……?"
"text_041_0","花落的街角","text_041_0","机翻辅助:

花落的街角

花笑的街角"
"text_042_0","飞舞的迷宫没有异常","text_042_0","机翻辅助:

飞舞的迷宫没有异常

蝴蝶飞舞,迷宫异常"
"text_043_0","凝视着自己","text_043_0","机翻辅助:

凝视着自己

找到自己"
"text_044_0","计划切割","text_044_0","机翻辅助:

计划切割

预定剪发"
"text_045_0","顶峰决战!小熊vs小熊!?","text_045_0","机翻辅助:

顶峰决战!小熊vs小熊!?

巅峰决战!小熊vs小熊小熊!?"
"text_046_0","礼物","text_046_0","机翻辅助:

礼物

礼物for you"
"text_047_0","鸭志市新气象","text_047_0","机翻辅助:

鸭志市新气象

鸭志市的新威望"
"text_048_0","朱尼纪乐园的极致","text_048_0","机翻辅助:

朱尼纪乐园的极致"
"text_049_0","A.I.G.I.S的新风","text_049_0","机翻辅助:

A.I.G.I.S的新风"
"text_050_0","光的进一步威胁","text_050_0","机翻辅助:

光的进一步威胁

光的威胁"
"text_191_0","191.把英雄腰带偷出来","text_191_0","机翻辅助:

191.把英雄腰带偷出来

偷出英雄腰带"
"text_192_0","192.解除禁止通行","text_192_0","机翻辅助:

192.解除禁止通行

解除通行禁令"
"text_193_0","195.送上英雄腰带","text_193_0","机翻辅助:

195.送上英雄腰带

送去英雄腰带吧!"
"text_194_0","197.恐怖的时尚检查","text_194_0","机翻辅助:

197.恐怖的时尚检查

197 .恐怖的时尚检查"
"text_195_0","194.后宫解放作战","text_195_0","机翻辅助:

194.后宫解放作战

194 .解放哈莱姆行动"
"text_196_0","196.英雄改造设施停止作战","text_196_0","机翻辅助:

196.英雄改造设施停止作战

英雄改造设施停止作战"
"text_197_0","193.寻求新的香味","text_197_0","机翻辅助:

193.寻求新的香味

193 .寻求新的口味"

0 comments on commit eec1d79

Please sign in to comment.