|
|
@@ -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.
|