Setting Up the Field Module on the Server
Overview
The Field module needs to be set up on HTTP, UDP, and TCP servers.
Managing the Field's memory data is handled by the HTTP server, while built-in commands are exposed and utilized through UDP and TCP servers.
Setup
Add the following to the main function of the HTTP server:
To expose built-in commands to the client, you can use the diarkisexec
package for setup.
Similarly, add the setup to the main function of the UDP and TCP servers. Below is a sample setup for a UDP server. The setup function of diarkisexec
must be executed before calling diarkisexec.StartDiarkis()
.
For more details, refer to the diarkisexec API Reference.
It's recommended to use the server template for a simple and quick server setup. Please refer to Diarkis Server Template.
最終更新