This commit is contained in:
JA
2026-08-21 10:39:51 +08:00
parent 46e4f8471a
commit c18f9d5536
12 changed files with 285 additions and 783 deletions
+17 -19
View File
@@ -1,17 +1,15 @@
{
"project_name": "P-L12《不朽封仙》",
"workspace_root": "d:\\p-L12",
"paths": {
"config_dir": "d:\\p-L12\\P-L12_config",
"game_dir": "d:\\p-L12\\P-L12_game",
"csv_dir": "d:\\p-L12\\work\\cvs",
"scripts_dir": "d:\\p-L12\\work\\py",
"memories_dir": "d:\\p-L12\\work\\memories",
"output_doc": "d:\\p-L12\\work\\《不朽封仙》游戏文字脚本.docx"
"project_name": "P-L12《不朽封仙》(历史参考项目)",
"note": "本文件记录历史项目的路径约定,作为通用工具 universal_tool.py 的参考。当前工具自动扫描项目结构,不再依赖固定路径。",
"paths_example": {
"config_dir": "<project_root>/<项目名>_config (xlsx/csv 配置表)",
"game_dir": "<project_root>/<项目名>_game",
"scripts_dir": "<project_root>/<项目名>_game/unity/Assets/Scripts",
"memories_dir": "<本项目>/memories",
"output_doc": "<project_root>/work/《项目名》游戏文字脚本.docx"
},
"scripts": {
"xlsx_to_csv": "d:\\p-L12\\work\\py\\xlsx_to_csv.py",
"generate_doc": "d:\\p-L12\\work\\py\\generate_doc.py"
"universal_tool": "<本项目>/py/universal_tool.py (唯一入口,自动扫描+生成)"
},
"dependencies": {
"python_packages": ["openpyxl", "python-docx"],
@@ -20,14 +18,14 @@
"pip install python-docx"
]
},
"csv_encoding": {
"note": "部分CSV文件使用GBK/GB2312编码,非UTF-8",
"read_strategy": "按优先级尝试 utf-8-sig -> gbk -> gb2312 -> utf-8",
"write_encoding": "xlsx_to_csv.py 输出使用 UTF-8 with BOM (utf-8-sig)"
"data_reading": {
"strategy": "直接读取 xlsx(优先)或 csv,无需预先转换",
"csv_encoding": "按优先级尝试 utf-8-sig -> gbk -> gb2312 -> utf-8 (仅csv需要)",
"xlsx_reading": "openpyxl read_only/data_only 直接读取"
},
"game_code_paths": {
"game_text_const": "d:\\p-L12\\P-L12_game\\unity\\Assets\\Scripts\\mgame\\error\\GameTextConst.cs",
"scripts_root": "d:\\p-L12\\P-L12_game\\unity\\Assets\\Scripts"
"game_code_paths_example": {
"game_text_const": "<game_dir>/unity/Assets/Scripts/.../GameTextConst.cs",
"scripts_root": "<game_dir>/unity/Assets/Scripts"
},
"icon_resource_base": "d:\\p-L12\\P-L12_game\\unity\\Assets\\Resources\\Resources_moved\\gui\\atlas_ui"
"icon_resource_base_example": "<game_dir>/unity/Assets/Resources/Resources_moved/gui/atlas_ui"
}