We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
修改路径Luban.ClientServer\Templates\config\cs_unity_json\下的table.tpl文件后,使用LuaClientServer.exe重新生成的CS代码仍然是旧模板的代码。
Luban.ClientServer\Templates\config\cs_unity_json\
table.tpl
删除.cache.meta缓存重试,仍然出现相同的问题。
.cache.meta
尝试使用自定义模板搜索路径,无法识别参数。
尝试使用 --disable_cache 参数失败,因为该参数仅对Server.exe生效。
Bat脚本如下
set WORKSPACE=. set GEN_CLIENT="%WORKSPACE%/Luban.ClientServer/Luban.ClientServer" set CONF_ROOT="%WORKSPACE%/DesignerConfigs" %GEN_CLIENT% -j cfg --^ -d %CONF_ROOT%/Defines/__root__.xml ^ --input_data_dir %CONF_ROOT%\Datas ^ --output_code_dir ../UnityProject/Assets/Script/Data/Excel/Gen ^ --output_data_dir ../UnityProject/Assets/StreamingAssets/ExcelData/Json ^ --gen_types code_cs_unity_json,data_json ^ -s all ^ --template_search_path ./Luban.ClientServer/Templates/config/cs_unity_json pause
工具版本为这个commit提交的版本
The text was updated successfully, but these errors were encountered:
如果修改模板未生效,那Luban是根据什么生成最新内容的。 去luban群里讨论一下吧。这个肯定是没有问题的。
单纯从命令行来看,你的 template_search_path有点问题,应该是 --template_search_path ./Luban.ClientServer/Templates 。 另外,如果修改了自带的Templates下的模板,不需要提供 --template_search_path参数,因为默认就会搜索这个。
Sorry, something went wrong.
如果修改模板未生效,那Luban是根据什么生成最新内容的。 去luban群里讨论一下吧。这个肯定是没有问题的。 单纯从命令行来看,你的 template_search_path有点问题,应该是 --template_search_path ./Luban.ClientServer/Templates 。 另外,如果修改了自带的Templates下的模板,不需要提供 --template_search_path参数,因为默认就会搜索这个。
我就是修改了自带的Templates下的模板不生效才会使用--template_search_path参数
没事了, 我发现是未使用dynamic类型导致的问题 抱歉打扰了
No branches or pull requests
问题
修改路径
Luban.ClientServer\Templates\config\cs_unity_json\
下的table.tpl
文件后,使用LuaClientServer.exe重新生成的CS代码仍然是旧模板的代码。尝试
删除
.cache.meta
缓存重试,仍然出现相同的问题。尝试使用自定义模板搜索路径,无法识别参数。
![image](https://user-images.githubusercontent.com/25216715/196607920-ec0b6dd6-5ce6-4a81-b1c2-73fdaa4c15d7.png)
尝试使用 --disable_cache 参数失败,因为该参数仅对Server.exe生效。
其他
Bat脚本如下
工具版本为这个commit提交的版本
The text was updated successfully, but these errors were encountered: