更新
This commit is contained in:
@@ -1,42 +1,43 @@
|
||||
{
|
||||
"description": "CSV数据源到文档章节的映射关系",
|
||||
"csv_base_dir": "d:\\p-L12\\work\\cvs",
|
||||
"description": "配置表数据源到文档章节的映射关系",
|
||||
"table_base_dir": "*_config 目录(优先读 .xlsx,其次 .csv,无需预先转换)",
|
||||
"read_strategy": "universal_tool.find_file 优先查找 name.xlsx,找不到再找 name.csv;两种格式都直接读取,表头结构一致",
|
||||
"mappings": {
|
||||
"system_prompts": {
|
||||
"source": "GameTextConst.cs (代码引用分析)",
|
||||
"section": "一、系统提示",
|
||||
"field": "常量值文本",
|
||||
"filter": "仅保留在代码中被实际引用的常量(排除仅在注释中出现的)",
|
||||
"filter": "仅保留在代码中被实际引用的常量(排除仅在注释中出现的)",
|
||||
"dedup": "按文本值去重"
|
||||
},
|
||||
"quest_texts": {
|
||||
"source": "quest.csv",
|
||||
"source": "quest.xlsx/csv",
|
||||
"section": "二、任务文本",
|
||||
"field": "desc (第4列, index=3)",
|
||||
"filter": "category == 1 或 category == 2",
|
||||
"dedup": "按desc文本去重"
|
||||
},
|
||||
"achievement_texts": {
|
||||
"source": "quest.csv",
|
||||
"source": "quest.xlsx/csv",
|
||||
"section": "三、成就文本",
|
||||
"field": "desc (第4列, index=3)",
|
||||
"filter": "category == 9",
|
||||
"dedup": "按desc文本去重"
|
||||
},
|
||||
"player_names": {
|
||||
"source": "原始文档固定数据 (100对姓名)",
|
||||
"source": "name.xlsx/csv (找不到则用内置默认100对姓名)",
|
||||
"section": "四、玩家随机名称文本",
|
||||
"format": "表格: 姓 | 名"
|
||||
},
|
||||
"guide_texts": {
|
||||
"source": "guide.csv",
|
||||
"source": "guide.xlsx/csv",
|
||||
"section": "五、新手指引文本",
|
||||
"field": "desc (第8列, index=7)",
|
||||
"filter": "无",
|
||||
"dedup": "按desc文本去重"
|
||||
},
|
||||
"props": {
|
||||
"source": "prop.csv",
|
||||
"source": "prop.xlsx/csv",
|
||||
"section": "六、道具说明",
|
||||
"fields": {
|
||||
"name": "第3列 (index=2)",
|
||||
@@ -47,7 +48,7 @@
|
||||
"icon_naming": "icon_product_XX.png (XX为补零两位数, 如 icon_product_01)"
|
||||
},
|
||||
"skills": {
|
||||
"source": "skill.csv",
|
||||
"source": "skill.xlsx/csv",
|
||||
"section": "七、技能",
|
||||
"fields": {
|
||||
"name": "第2列 (index=1)",
|
||||
@@ -58,7 +59,7 @@
|
||||
"icon_naming": "skillX.png (X为数字, 不补零, 如 skill1, skill10)"
|
||||
},
|
||||
"runes": {
|
||||
"source": "rune.csv",
|
||||
"source": "rune.xlsx/csv",
|
||||
"section": "八、灵石",
|
||||
"fields": {
|
||||
"name": "第2列 (index=1)",
|
||||
@@ -69,7 +70,7 @@
|
||||
"icon_naming": "rune_icon_X.png (X为数字, 不补零)"
|
||||
},
|
||||
"talents": {
|
||||
"source": "playerlevel.csv",
|
||||
"source": "playerlevel.xlsx/csv",
|
||||
"section": "九、天赋",
|
||||
"fields": {
|
||||
"name": "第14列 (index=13)",
|
||||
@@ -81,7 +82,7 @@
|
||||
"dedup": "按name去重"
|
||||
},
|
||||
"equipment": {
|
||||
"source": "equip.csv",
|
||||
"source": "equip.xlsx/csv",
|
||||
"section": "十、装备",
|
||||
"fields": {
|
||||
"name": "第2列 (index=1)",
|
||||
@@ -90,19 +91,20 @@
|
||||
"icon_dir": "atlas_equip_icons",
|
||||
"icon_naming": "equip_icon_X.png (X为数字, 不补零)",
|
||||
"dedup": "按name去重",
|
||||
"note": "equip.csv无desc字段"
|
||||
"note": "equip表无desc字段"
|
||||
},
|
||||
"level_names": {
|
||||
"source": "fight_sample.csv",
|
||||
"source": "fight_sample.xlsx/csv",
|
||||
"section": "十一、关卡名称",
|
||||
"field": "name (第3列, index=2)",
|
||||
"filter": "无",
|
||||
"dedup": "按name去重"
|
||||
}
|
||||
},
|
||||
"csv_format": {
|
||||
"table_format": {
|
||||
"header_rows": 3,
|
||||
"header_structure": "第1行:中文头, 第2行:类型定义, 第3行:英文字段名",
|
||||
"encoding_note": "部分文件为GBK编码,需自动检测"
|
||||
"header_structure": "第1行:中文头, 第2行:类型定义, 第3行:英文字段名(用作字段映射)",
|
||||
"data_start_row": "第4行起",
|
||||
"encoding_note": "csv需自动检测(优先级 utf-8-sig -> gbk -> gb2312 -> utf-8);xlsx由openpyxl直接读取无编码问题"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user