【调整】Luban.ClientServer忽略-h参数,避免意外添加-h变成云生成,给新手造成很多困惑。
parent
fd0817d630
commit
a11380d142
|
|
@ -72,7 +72,9 @@
|
||||||
- --output_code_dir 参数为生成的代码文件存放的路径。 建议建议指向 unity的 Assets 目录下的某级子目录
|
- --output_code_dir 参数为生成的代码文件存放的路径。 建议建议指向 unity的 Assets 目录下的某级子目录
|
||||||
- --output_data_dir 参数为生成的数据文件的存放路径。
|
- --output_data_dir 参数为生成的数据文件的存放路径。
|
||||||
|
|
||||||
详细的命令文档请看 [install_manual](./luban_install_manual.md)。
|
注意,如果你直接使用 Csharp_unity_json中的gen_code_json.bat脚本,并且使用Luban.ClientServer,一定要记得 =====**删除 -h %LUBAN_SERVER_IP% 参数** =====。因为添加-h 参数情况下,会使用云生成而不是本地生成!!!
|
||||||
|
|
||||||
|
详细的命令文档请看 [luban_command_tools](./luban_command_tools.md)。
|
||||||
|
|
||||||
如果一切正常,会产生一系列日志,最终一行是 == succ == 。
|
如果一切正常,会产生一系列日志,最终一行是 == succ == 。
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
[*.cs]
|
|
||||||
|
|
||||||
# CA1303: 请不要将文本作为本地化参数传递
|
|
||||||
dotnet_diagnostic.CA1303.severity = none
|
|
||||||
|
|
||||||
# CA1305: 指定 IFormatProvider
|
|
||||||
dotnet_diagnostic.CA1305.severity = none
|
|
||||||
|
|
||||||
# CA1307: 指定 StringComparison
|
|
||||||
dotnet_diagnostic.CA1307.severity = none
|
|
||||||
|
|
||||||
# CA1031: 不捕获常规异常类型
|
|
||||||
dotnet_diagnostic.CA1031.severity = none
|
|
||||||
|
|
@ -80,12 +80,14 @@ Options:
|
||||||
// 打个补丁。好多人忘了设置 LUBAN_SERVER_IP 环境变量,导致启动时出问题
|
// 打个补丁。好多人忘了设置 LUBAN_SERVER_IP 环境变量,导致启动时出问题
|
||||||
if (args[i + 1].StartsWith("-"))
|
if (args[i + 1].StartsWith("-"))
|
||||||
{
|
{
|
||||||
Console.WriteLine("[WARN] --host (or -h) <LUBAN_SERVER_IP> argument is missing, use 127.0.0.1 as default. do you forget to set LUBAN_SERVER_IP env variable?");
|
//Console.WriteLine("[WARN] --host (or -h) <LUBAN_SERVER_IP> 参数丢失, use 127.0.0.1 as default. do you forget to set LUBAN_SERVER_IP env variable?");
|
||||||
ops.Host = "127.0.0.1";
|
//ops.Host = "127.0.0.1";
|
||||||
|
Console.WriteLine("[WARN] 对于Luban.ClientServer,参数 {0} 没有意义,忽略。", arg);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ops.Host = args[++i];
|
string argv = args[++i];
|
||||||
|
Console.WriteLine("[WARN] 对于Luban.ClientServer,参数 {0} {1} 没有意义,忽略。", arg, argv);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue