Instructions for using the game hall networking template file
The first step is to prepare the development environment
Prepare the Unity Editor with version number Unity 2022.3.53f1c1. Select the Windows Dedicated Server Build Surport module in Unity Hub, which will be used when exporting to the server.
Step 2: Download the project files and dependency packages
Download the source code file, unzip it, and then add the project from the disk in Unityhub. Add the fwhas directory as the engineering project. Then double-click on the project to launch the Unity editor and open the project file.
Download the custom netcode package, open the package manager in the Unity editor, and use "Add tarball from disk" to add the downloaded package named "com. unity. netcode. gameobjects s-1.12.2. tgz", ignoring the prompt for invalid certificates.
In the package manager of the Unity editor, select Unity Registry, search for Localization, and then click Install.
Step 3: Select Export Configuration
There is a configuration file called Init in the Assets/Config directory. Click on this file and in the inspector, you can switch the StartType to Client and Server. When you want to export client files, select Client before exporting. If you want to export server files, select Server before exporting, and then switch the export platform to Dedicated Server.
You should be able to export server and client packages here.
Step 4: Run the server and client
Double click the mouse to run fwhas.exe in the server package, which is a command-line program. After he starts, the message will no longer scroll, and then start fwhas.exe in the client package. The client can open several more tests to test the effectiveness of networked operation.