{ "project_name": "P-L12《不朽封仙》(历史参考项目)", "note": "本文件记录历史项目的路径约定,作为通用工具 universal_tool.py 的参考。当前工具自动扫描项目结构,不再依赖固定路径。", "paths_example": { "config_dir": "/<项目名>_config (xlsx/csv 配置表)", "game_dir": "/<项目名>_game", "scripts_dir": "/<项目名>_game/unity/Assets/Scripts", "memories_dir": "<本项目>/memories", "output_doc": "/work/《项目名》游戏文字脚本.docx" }, "scripts": { "universal_tool": "<本项目>/py/universal_tool.py (唯一入口,自动扫描+生成)" }, "dependencies": { "python_packages": ["openpyxl", "python-docx"], "install_commands": [ "pip install openpyxl", "pip install python-docx" ] }, "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_example": { "game_text_const": "/unity/Assets/Scripts/.../GameTextConst.cs", "scripts_root": "/unity/Assets/Scripts" }, "icon_resource_base_example": "/unity/Assets/Resources/Resources_moved/gui/atlas_ui" }