Sfoglia il codice sorgente

增加工程报红色引用的说明

tanghai 3 anni fa
parent
commit
4f34381f46
5 ha cambiato i file con 21 aggiunte e 15 eliminazioni
  1. 1 0
      .gitignore
  2. 10 6
      Book/1.1RunGuide.md
  3. 4 2
      Book/1.1运行指南.md
  4. 3 3
      README-ZH.md
  5. 3 4
      README.md

+ 1 - 0
.gitignore

@@ -57,3 +57,4 @@ Server/.DS_Store
 /Unity/Assets/Bundles/Code/Code.pdb.bytes.meta
 /Unity/Assembly-CSharp.csproj
 /Excel/~$*.xlsx
+/.vscode

+ 10 - 6
Book/1.1RunGuide.md

@@ -22,16 +22,20 @@
 6. Run Tools->BuildCode on the Unity menu, this step will compile the client code  
 
 7. Open ET/Client-Server.sln compile with Rider (**must compile all project, right click VS solution, compile all**)
-   1. first compile "Client-Server/Client/Unity.Mono" separately
-   2. then compile the complete solution "Client-Server"
+   The red reference error is reported here because the Unity library has not been compiled into the Unity/Temp/Debug directory, 
+   which is generally ignored, you must ensure that Unity is open, and then just compile the Client-Server directly.Unity.Mono will 
+   copy the Unity libraries it depends on into Unity/Temp/Debug. Unity.ModelView UnityHotfix.View will all depend on the libraries 
+   under Unity/Temp/Debug. If you still burst red, close vs or rider, open unity first, then Client-Server.sln, then Compile Client-Server  
 
-8. export table tools, compile the command line into the Bin directory after completion, execute dotnet Tools.dll --AppType=ExcelExporter  
+Translated with www.DeepL.com/Translator (free version)
 
-9. export protocol tool, compile and enter Bin directory, execute dotnet Tools.dll --AppType=Proto2CS  
+1. export table tools, compile the command line into the Bin directory after completion, execute dotnet Tools.dll --AppType=ExcelExporter  
 
-10. start server: dotnet Server.dll --Process=1 --Console=1  
+2. export protocol tool, compile and enter Bin directory, execute dotnet Tools.dll --AppType=Proto2CS  
 
-11. Double-click the Init scene in the Scenes directory in Unity and click Play to run it.
+3.  start server: dotnet Server.dll --Process=1 --Console=1  
+
+4.  Double-click the Init scene in the Scenes directory in Unity and click Play to run it.
 
 # Test state synchronization demo
 1. If you want to modify the configuration, go to the Excel directory and modify the corresponding table, do step 6 of the running steps, and then re-run the Server.App project to start the server.

+ 4 - 2
Book/1.1运行指南.md

@@ -22,8 +22,10 @@
 6. 运行Unity菜单上的 Tools->BuildCode,这一步将编译客户端代码  
 
 7. 用Rider打开 ET/Client-Server.sln 编译(**一定要全部工程编译,右键VS解决方案,全部编译**)
-   1. 先单独编译 "Client-Server/Client/Unity.Mono"
-   2. 再编译完整解决方案 "Client-Server"
+   这里报红发现引用错误,是因为Unity的库还没编译到Unity/Temp/Debug目录下面,一般不用管,必须保证Unity是开启的,然后只需要直接编译Client-Server即可,
+   Client-Server会编译Unity.Mono。Unity.Mono会把自己依赖的Unity的库复制到Unity/Temp/Debug中。Unity.Model Unity.Hotfix 
+   Unity.ModelView UnityHotfix.View都会依赖Unity/Temp/Debug下的库。如果还是爆红,关闭vs或者rider,先打开unity,再打开Client-Server.sln,再
+   编译Client-Server   
 
 8.  导表工具,编译完成后命令行进入 Bin 目录,执行 dotnet Tools.dll --AppType=ExcelExporter  
 

+ 3 - 3
README-ZH.md

@@ -4,10 +4,12 @@
 
 # [ET论坛](https://et-framework.cn)  
 
-# [ET代码商店](https://github.com/egametang/ET/tree/master/Store)  
+# [ET商店](https://github.com/egametang/ET/tree/master/Store)  
 
 # [ET6.0视频教程上线](https://edu.uwa4d.com/course-intro/1/375)   
 
+# [运行指南](https://github.com/egametang/ET/blob/master/Book/1.1%E8%BF%90%E8%A1%8C%E6%8C%87%E5%8D%97.md)  
+
 # 重大注意事项:
 1. Hotfix跟HotfixView是纯逻辑的,类中不要带有任何字段,否则热更就会丢失  
 2. ETTask跟要么调用Coroutine要么就await,打开VS中的错误列表窗口,没有使用这两种的会报出问题,虽然既不await也不Coroutine的话能够编译通过,但是会丢失异常,十分危险  
@@ -96,8 +98,6 @@ d.提供一个同步工具
 
 ET框架是一个强大灵活的分布式服务端架构,完全可以满足绝大部分大型游戏需求。使用这套框架,客户端开发者就可以自己完成双端开发,节省大量人力物力,节省大量沟通时间。  
 
-使用方法:  
-[运行指南](https://github.com/egametang/ET/blob/master/Book/1.1%E8%BF%90%E8%A1%8C%E6%8C%87%E5%8D%97.md)  
   
 相关网站:  
 [ET论坛](https://et-framework.cn)  

+ 3 - 4
README.md

@@ -5,10 +5,12 @@
 
 # [ET Forum](https://et-framework.cn)  
 
-# [ET Code Store](https://github.com/egametang/ET/tree/master/Store)  
+# [ET Store](https://github.com/egametang/ET/tree/master/Store)  
 
 # [ET6.0 video tutorial online](https://edu.uwa4d.com/course-intro/1/375)   
 
+# [Run Guide](https://github.com/egametang/ET/blob/master/Book/1.1RunGuide.md)  
+
 # Major Notes.
 1. Hotfix with HotfixView is pure logic, do not have any fields in the class, otherwise the hotfix will be lost  
 2. ETTask and either call Coroutine or await, open the error list window in VS, do not use these two will be reported as a problem, although neither await nor Coroutine, if you can compile through, but will lose the exception, very dangerous  
@@ -97,9 +99,6 @@ c.Unify the use of Mongodb bson serialization, messages and configuration files
 d. Provide a synchronization tool  
 
 ET framework is a powerful and flexible distributed server-side architecture that can fully meet the needs of most large games. Use this framework, the client developer can complete their own dual-ended development, saving a lot of manpower and resources, saving a lot of communication time.  
-
-Usage.  
-[Run Guide](https://github.com/egametang/ET/blob/master/Book/1.1RunGuide.md)  
   
 Related websites :  
 [ET Forum](https://et-framework.cn)