You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To compile using Go, `go get` the required modules and then `go build` to your desired location. You may also want to tidy the go modules, though this is optional
16
+
17
+
```bash
18
+
$ go get -u
19
+
$ go mod tidy
20
+
$ go build -o build/TFH
21
+
```
22
+
23
+
The server is now built to `build/TFH`
24
+
25
+
When compiling with only Go, the authentication servers build string is not automatically set. This should not cause any issues with gameplay, but it means that the server build will not be visible in any packet dumps or logs a title may produce
26
+
27
+
To compile the servers with the authentication server build string, add `-ldflags "-X 'main.serverBuildString=BUILD_STRING_HERE'"` to the build command, or use `make` to compile the server
28
+
29
+
### Compiling using `make`
30
+
Compiling using `make` will read the local `.git` directory to create a dynamic authentication server build string, based on your repositories remote origin and current commit. It will also use the current folders name as the executables name
31
+
32
+
Install `make` onto your system (this varies by OS), and run `make` while inside the repository
33
+
34
+
```bash
35
+
$ make
36
+
```
37
+
38
+
The server is now built to `build/tri-force-heroes` with the authentication server build string already set
39
+
40
+
## Configuration
41
+
All configuration options are handled via environment variables
0 commit comments