Categorygithub.com/PretendoNetwork/tri-force-heroes
modulepackage
0.0.0-20240727162331-9c8a44e0d9ee
Repository: https://github.com/pretendonetwork/tri-force-heroes.git
Documentation: pkg.go.dev

# README

Tri-Force Heroes (3DS) replacement server

Includes both the authentication and secure servers

Compiling

Setup

Install Go and git, then clone and enter the repository

$ git clone https://github.com/PretendoNetwork/tri-force-heroes
$ cd tri-force-heroes

Compiling using go

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

$ go get -u
$ go mod tidy
$ go build -o build/TFH

The server is now built to build/TFH

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

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

Compiling using make

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

Install make onto your system (this varies by OS), and run make while inside the repository

$ make

The server is now built to build/tri-force-heroes with the authentication server build string already set

Configuration

All configuration options are handled via environment variables

.env files are supported

NameDescriptionRequired
PN_TFH_POSTGRES_URIFully qualified URI to your Postgres server (Example postgres://username:password@localhost/TFH?sslmode=disable)Yes
PN_TFH_KERBEROS_PASSWORDPassword used as part of the internal server data in Kerberos ticketsNo (Default password password will be used)
PN_TFH_AUTHENTICATION_SERVER_PORTPort for the authentication serverYes
PN_TFH_SECURE_SERVER_HOSTHost name for the secure server (should point to the same address as the authentication server)Yes
PN_TFH_SECURE_SERVER_PORTPort for the secure serverYes
PN_TFH_ACCOUNT_GRPC_HOSTHost name for your account server gRPC serviceYes
PN_TFH_ACCOUNT_GRPC_PORTPort for your account server gRPC serviceYes
PN_TFH_ACCOUNT_GRPC_API_KEYAPI key for your account server gRPC serviceNo (Assumed to be an open gRPC API)

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author