From 3efa6079083a1bd5d857ba3cf92963fd9e8bd99d Mon Sep 17 00:00:00 2001 From: shen <> Date: Sat, 17 Oct 2026 16:40:54 -0700 Subject: [PATCH] fix: complete Chinese building names and dragon soul interface labels --- data/wiki/catalogue.txt | 10 +-- data/wiki/manifest.json | 4 +- data/zh_40250/README.md | 16 +++++ data/zh_40250/guildbuildinglist_zh.tsv | 67 +++++++++++++++++++ data/zh_40250/item_names_zh_overlay.txt | 3 +- data/zh_40250/locale_game_zh_overlay.txt | 9 +++ data/zh_40250/locale_interface_zh_overlay.txt | 7 ++ scripts/build_zh_locale.py | 36 +++++++++- 8 files changed, 142 insertions(+), 10 deletions(-) create mode 100644 data/zh_40250/guildbuildinglist_zh.tsv create mode 100644 data/zh_40250/locale_interface_zh_overlay.txt diff --git a/data/wiki/catalogue.txt b/data/wiki/catalogue.txt index 5e22b967..2fdcfe53 100644 --- a/data/wiki/catalogue.txt +++ b/data/wiki/catalogue.txt @@ -1,4 +1,4 @@ -MTWIKI 1 7efea0e88002d717c5d29174cf264a4ba06b0594561d8d25bd6ab7c091da9159 +MTWIKI 1 3de8bac106a870345c4b74464185e851423f1f5daca3ea707415b425ff5e9cad I 2 2 YMIR ITEM_NONE 0 0 1 0 0 I 10 10 短刀+0 ITEM_WEAPON WEAPON_SWORD 0 2 11 1 I 11 11 短刀+1 ITEM_WEAPON WEAPON_SWORD 0 2 12 2 @@ -3812,12 +3812,12 @@ I 31091 31091 真火焰王之血 ITEM_QUEST MATERIAL_LEATHER 0 1 0 0 I 31092 31092 超冷怪的皮肤碎片 ITEM_MATERIAL MATERIAL_LEATHER 0 1 0 0 I 35000 35000 药草+ ITEM_MATERIAL MATERIAL_LEATHER 0 1 0 0 I 35001 35001 虎肝+ ITEM_MATERIAL MATERIAL_LEATHER 0 1 0 0 -I 38001 38001 VIP特权 ITEM_NONE 0 0 0 0 0 -I 38002 38002 抽奖券(今日) ITEM_NONE 0 0 0 0 0 +I 38001 38001 VIP会员卡(7天) ITEM_NONE 0 0 0 0 0 +I 38002 38002 VIP会员卡(30天) ITEM_NONE 0 0 0 0 0 I 38003 38003 抽奖券(明日) ITEM_NONE 0 0 0 0 0 I 38004 38004 抽奖重抽券 ITEM_NONE 0 0 0 0 0 I 38005 38005 高级抽奖转盘券 ITEM_NONE 0 0 0 0 0 -I 38006 38006 Momo重抽券 ITEM_NONE 0 0 0 0 0 +I 38006 38006 魔魔重抽券 ITEM_NONE 0 0 0 0 0 I 38010 38010 金币包 ITEM_QUEST 0 0 1 0 0 I 38050 38050 力量宝箱 ITEM_GIFTBOX 0 0 1 0 0 I 38051 38051 皇虎水晶 ITEM_GIFTBOX 0 0 1 0 0 @@ -3878,7 +3878,7 @@ I 39043 39043 超级记忆卷 ITEM_USE USE_TALISMAN 0 1 0 0 I 40001 40001 反经验戒指 ITEM_NONE 0 0 1 0 0 I 40002 40002 幻化戒指 ITEM_QUEST 0 0 1 0 0 I 40003 40003 坐骑召唤戒指 ITEM_QUEST 0 0 1 0 0 -I 40004 40004 Boss召唤戒指 ITEM_QUEST 0 0 1 0 0 +I 40004 40004 首领召唤戒指 ITEM_QUEST 0 0 1 0 0 I 40005 40005 小铃铛 ITEM_NONE 0 0 1 0 0 I 40006 40006 五狼输送书 ITEM_NONE 0 0 1 0 0 I 40007 40007 五狼首领的信 ITEM_NONE 0 0 1 0 0 diff --git a/data/wiki/manifest.json b/data/wiki/manifest.json index 3987e375..3346508a 100644 --- a/data/wiki/manifest.json +++ b/data/wiki/manifest.json @@ -1,6 +1,6 @@ { "schema": 1, - "catalogue_sha256": "7efea0e88002d717c5d29174cf264a4ba06b0594561d8d25bd6ab7c091da9159", + "catalogue_sha256": "3de8bac106a870345c4b74464185e851423f1f5daca3ea707415b425ff5e9cad", "source_sha256": { "item_proto.txt": "bf3d2c9d72719f1c222266042766cbe2f3fff8f0951666344181b6add0a31009", "item_names.txt": "a6888dfdb0be64f8c8112445b4d54e399a0f8e6ca29799ba33b3bb4160adad2a", @@ -15,7 +15,7 @@ "generator_sha256": "9c4e1b6069179c36c080a1136d65cbe52a8e44b3577fb8391e8404f5162ef40b", "localization_sha256": { "item_names_zh.txt": "5604985d7f11039f3d3e38d4e2c07995e80ca3e4f6deb01fe57cd772e9cd0f70", - "item_names_zh_overlay.txt": "5d8396f19e7184fafd691b7a255b328237bddc1cdfda8d3cf8a7b074eb528f83", + "item_names_zh_overlay.txt": "b18ec02a09b95803e70907d66af006e7c2a9725e22a6f12867f2ba0873db8ed3", "mob_names_zh.txt": "fdbfe4b3f3367d5842c0e9bbe0b5e5ea2dbe99fb6e566ef5789f65d3794eab5c", "mob_names_zh_overlay.txt": "7c44a5f6cff5c3c27c13cc4c7be91d619c20c67a8e091222e13ed392ea18d00b" }, diff --git a/data/zh_40250/README.md b/data/zh_40250/README.md index 5524b337..bff4df9b 100644 --- a/data/zh_40250/README.md +++ b/data/zh_40250/README.md @@ -94,3 +94,19 @@ VNUM 匹配,不复制属性。它与 `server_extracted/database`、`40250_depl ## +6 镶嵌石配置修复(2026-10-02) 当前 203 的 28700~28713 原为 ITEM_NONE,与 server_extracted 备份不同。`item_stones_server.tsv` 恢复备份中的类型、佩戴位置、属性和六个 value 字段;`locale_proto_patch` 只允许这 14 条记录的对应字段变化,其余非名称字段继续逐字节校验。服务端同份配置在 `tools/server/npc-shops/item-mall/stones.tsv`,商店安装时恢复。已有背包内同编号石头也使用新配置。 + +## 2026-10-17 帮会设施与系统界面汉化补齐 + +1. **帮会建筑与设施(`guildbuildinglist_zh.tsv`)**: + - 补齐全部 66 项帮会建筑/设施中文译名(熔炉、锻造所、练兵场、力之祭坛、门墙、景观石与木材)。 + - 40250 新增的 5 个熔炉(26992–26996)对应译为灵魂水晶熔炉、红玉熔炉、石榴石熔炉、祖母绿熔炉、蓝宝石熔炉。 +2. **界面与系统提示词(`locale_game_zh_overlay.txt` & `locale_interface_zh_overlay.txt`)**: + - 补齐 `MAP_AG`/`MAP_BG`/`MAP_CG`(三大帝国帮会属地)。 + - 补齐 `PVP_OPTION_PROTECT`(帮会模式)。 + - 补齐 `SCREENSHOT_SAVE1`/`SCREENSHOT_SAVE2`(截图保存提示与路径说明)。 + - 补齐 `LOGIN_FAILURE_WEB_BLOCK`(封禁提示)及 `MALL_CANNOT_INSERT`(商城道具栏放入限制)。 + - 补齐 `TOOLTIP_MEMORIZED_POSITION_ERROR`(坐标记录错误提示)。 + - 移除龙魂石标签页英文后缀(`locale_interface_zh_overlay.txt`)。 +3. **物品表与描述**: + - 修正 40004(首领召唤戒指)与 38006(魔魔重抽券)中文名。 + - `itemdesc.txt` 第 2 列道具名同步填充对应中文名称。 diff --git a/data/zh_40250/guildbuildinglist_zh.tsv b/data/zh_40250/guildbuildinglist_zh.tsv new file mode 100644 index 00000000..a89caa99 --- /dev/null +++ b/data/zh_40250/guildbuildinglist_zh.tsv @@ -0,0 +1,67 @@ +# VNUM NAME +14013 武器锻造所 +14014 防御道具锻造所 +14015 首饰锻造所 +14033 练兵场 +14043 钻石熔炉 +14045 火木石熔炉 +14046 铜熔炉 +14047 银熔炉 +14048 金熔炉 +14049 玉石熔炉 +14050 玛瑙熔炉 +14051 珍珠熔炉 +14052 白金熔炉 +14053 水晶熔炉 +14054 紫水晶熔炉 +14055 天璨熔炉 +26992 灵魂水晶熔炉 +26993 红玉熔炉 +26994 石榴石熔炉 +26995 祖母绿熔炉 +26996 蓝宝石熔炉 +14061 力之祭坛 +14062 力之祭坛 +14063 力之祭坛 +14100 房子(1) +14101 石墙(1-1) +14102 石墙(1-2) +14103 石墙(1-3) +14104 大门(1) +14105 围墙(1) +14110 房子(2) +14111 石墙(2-1) +14112 石墙(2-2) +14113 石墙(2-3) +14114 大门(2) +14115 围墙(2) +14120 房子(3) +14121 石墙(3-1) +14122 石墙(3-2) +14123 石墙(3-3) +14124 大门(3) +14125 围墙(3) +14200 帮会会标 +14201 围墙大门 +14202 围墙后壁 +14203 围墙左壁 +14204 围墙右壁 +14300 石头1 +14301 石头2 +14302 石头3 +14303 石头4 +14304 石头5 +14305 石头6 +14306 石头7 +14307 石头8 +14308 石头9 +14309 石头10 +14400 木头1 +14401 木头2 +14402 木头3 +14403 木头4 +14404 木头5 +14405 木头6 +14406 木头7 +14407 木头8 +14408 木头9 diff --git a/data/zh_40250/item_names_zh_overlay.txt b/data/zh_40250/item_names_zh_overlay.txt index ec9808fb..2cb5d3e8 100644 --- a/data/zh_40250/item_names_zh_overlay.txt +++ b/data/zh_40250/item_names_zh_overlay.txt @@ -690,7 +690,7 @@ VNUM LOCALE_NAME 38003 抽奖券(明日) 38004 抽奖重抽券 38005 高级抽奖转盘券 -38006 Momo重抽券 +38006 魔魔重抽券 38010 金币包 38050 力量宝箱 38051 皇虎水晶 @@ -748,6 +748,7 @@ VNUM LOCALE_NAME 39041 蓝龙的祝福(中) 39042 蓝龙的祝福(大) 39043 超级记忆卷 +40004 首领召唤戒指 41005 奥运击剑服(男) 41006 奥运击剑服(女) 41007 德国击剑服(男) diff --git a/data/zh_40250/locale_game_zh_overlay.txt b/data/zh_40250/locale_game_zh_overlay.txt index 97c0aac1..8577fd05 100644 --- a/data/zh_40250/locale_game_zh_overlay.txt +++ b/data/zh_40250/locale_game_zh_overlay.txt @@ -44,3 +44,12 @@ TOOLTIP_SKILL_DURATION 持续时间 : %d秒 TOOLTIP_SP_REGEN 精力恢复量 : +%d%% TOOLTIP_TIME_CHARGER_FIX 时间充能 %d秒 TOOLTIP_TIME_CHARGER_PER 时间充能 %d%% +LOGIN_FAILURE_WEB_BLOCK 该账号已被封禁,详情请查看官网。 +MALL_CANNOT_INSERT 不能将物品放入商城道具栏。 +MAP_AG 盛唐帮会属地 +MAP_BG 秦皇帮会属地 +MAP_CG 汉武帮会属地 +PVP_OPTION_PROTECT 帮会模式 +SCREENSHOT_SAVE1 已保存 +SCREENSHOT_SAVE2 请在截图文件夹(screenshot)中查看。 +TOOLTIP_MEMORIZED_POSITION_ERROR 坐标记录错误(%d, %d) diff --git a/data/zh_40250/locale_interface_zh_overlay.txt b/data/zh_40250/locale_interface_zh_overlay.txt new file mode 100644 index 00000000..b54ac18b --- /dev/null +++ b/data/zh_40250/locale_interface_zh_overlay.txt @@ -0,0 +1,7 @@ +KEY VALUE +DRAGONSOUL_TAP_TITLE_1 白龙石 +DRAGONSOUL_TAP_TITLE_2 火龙石 +DRAGONSOUL_TAP_TITLE_3 风龙石 +DRAGONSOUL_TAP_TITLE_4 铁龙石 +DRAGONSOUL_TAP_TITLE_5 雷龙石 +DRAGONSOUL_TAP_TITLE_6 黑龙石 diff --git a/scripts/build_zh_locale.py b/scripts/build_zh_locale.py index 9c635586..4b67d3f4 100644 --- a/scripts/build_zh_locale.py +++ b/scripts/build_zh_locale.py @@ -125,7 +125,7 @@ def wrap_description(text: str) -> str: return " |".join(lines) -def translate_itemdesc(path: Path, table: Path): +def translate_itemdesc(path: Path, table: Path, names: dict = None): """itemdesc.txt with its description and summary columns replaced from the English→Chinese table (UTF-8, EnglishChinese) and wrapped; untranslated cells keep the English text.""" chinese = {} @@ -137,6 +137,9 @@ def translate_itemdesc(path: Path, table: Path): for line in path.read_bytes().decode("cp1252").split("\n"): parts = line.split("\t") if parts[0].strip().isdigit(): + vnum = parts[0].strip() + if names and vnum in names and names[vnum]: + parts[1] = names[vnum] left = False for column in ITEMDESC_COLUMNS: text = parts[column].strip() if column < len(parts) else "" @@ -154,6 +157,26 @@ def translate_itemdesc(path: Path, table: Path): return {"translated_cells": translated, "english_rows": english_rows} +def translate_guildbuildinglist(path: Path, table: Path): + """Replace column 3 (name) in guildbuildinglist.txt using a VNUMNAME table (UTF-8).""" + names = {} + for line in table.read_text(encoding="utf-8").splitlines(): + if line and not line.startswith("#"): + vnum, name = line.split("\t", 1) + names[vnum.strip()] = name.strip() + lines = path.read_bytes().decode("cp1252").splitlines() + out = [] + translated = 0 + for line in lines: + parts = line.split("\t") + if parts and parts[0] in names: + parts[3] = names[parts[0]] + translated += 1 + out.append("\t".join(parts)) + path.write_bytes(("\n".join(out) + "\n").encode("gbk")) + return {"translated_rows": translated} + + def overlay_rows(path: Path, overlay: Path, wrap_columns=()): """Replace the rows of a vnum-keyed file by the overlay's (UTF-8, whole rows, no header); other rows keep their bytes (the English files are cp1252). wrap_columns (0-based) are wrapped like translated text.""" @@ -320,7 +343,16 @@ def build(en: Path, zh: Path, output: Path, client_base: Path, table = names_dir / "itemdesc_translate_zh.tsv" if names_dir else None if table and table.is_file(): - report["files"]["itemdesc.txt translation"] = translate_itemdesc(locale_dir / "itemdesc.txt", table) + item_names_map = name_rows(names_dir / "item_names_zh.txt") if names_dir else {} + if names_dir: + item_names_map.update(name_rows(names_dir / "item_names_zh_overlay.txt")) + report["files"]["itemdesc.txt translation"] = translate_itemdesc( + locale_dir / "itemdesc.txt", table, item_names_map) + + building_table = names_dir / "guildbuildinglist_zh.tsv" if names_dir else None + if building_table and building_table.is_file() and (locale_dir / "guildbuildinglist.txt").is_file(): + report["files"]["guildbuildinglist.txt"] = translate_guildbuildinglist( + locale_dir / "guildbuildinglist.txt", building_table) for filename in ROW_FILES: overlay = names_dir / (Path(filename).stem + "_zh_overlay.txt") if names_dir else None