From a11380d142c1c19133aecddd82ce963ccd2c1711 Mon Sep 17 00:00:00 2001 From: walon Date: Wed, 10 Nov 2021 22:25:04 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=B0=83=E6=95=B4=E3=80=91Luban.Clien?= =?UTF-8?q?tServer=E5=BF=BD=E7=95=A5-h=E5=8F=82=E6=95=B0=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E6=84=8F=E5=A4=96=E6=B7=BB=E5=8A=A0-h=E5=8F=98?= =?UTF-8?q?=E6=88=90=E4=BA=91=E7=94=9F=E6=88=90=EF=BC=8C=E7=BB=99=E6=96=B0?= =?UTF-8?q?=E6=89=8B=E9=80=A0=E6=88=90=E5=BE=88=E5=A4=9A=E5=9B=B0=E6=83=91?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/start_up.md | 4 +++- src/Luban.Client/.editorconfig | 13 ------------- src/Luban.ClientServer/Program.cs | 8 +++++--- 3 files changed, 8 insertions(+), 17 deletions(-) delete mode 100644 src/Luban.Client/.editorconfig diff --git a/docs/start_up.md b/docs/start_up.md index 0e17a3f..8284439 100644 --- a/docs/start_up.md +++ b/docs/start_up.md @@ -72,7 +72,9 @@ - --output_code_dir 参数为生成的代码文件存放的路径。 建议建议指向 unity的 Assets 目录下的某级子目录 - --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 == 。 diff --git a/src/Luban.Client/.editorconfig b/src/Luban.Client/.editorconfig deleted file mode 100644 index b5aa556..0000000 --- a/src/Luban.Client/.editorconfig +++ /dev/null @@ -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 diff --git a/src/Luban.ClientServer/Program.cs b/src/Luban.ClientServer/Program.cs index 5c60058..6f3a47d 100644 --- a/src/Luban.ClientServer/Program.cs +++ b/src/Luban.ClientServer/Program.cs @@ -80,12 +80,14 @@ Options: // 打个补丁。好多人忘了设置 LUBAN_SERVER_IP 环境变量,导致启动时出问题 if (args[i + 1].StartsWith("-")) { - Console.WriteLine("[WARN] --host (or -h) argument is missing, use 127.0.0.1 as default. do you forget to set LUBAN_SERVER_IP env variable?"); - ops.Host = "127.0.0.1"; + //Console.WriteLine("[WARN] --host (or -h) 参数丢失, use 127.0.0.1 as default. do you forget to set LUBAN_SERVER_IP env variable?"); + //ops.Host = "127.0.0.1"; + Console.WriteLine("[WARN] 对于Luban.ClientServer,参数 {0} 没有意义,忽略。", arg); } else { - ops.Host = args[++i]; + string argv = args[++i]; + Console.WriteLine("[WARN] 对于Luban.ClientServer,参数 {0} {1} 没有意义,忽略。", arg, argv); } break; }