Includes both the authentication and secure servers, and the HPP server for SpotPass
Install Go and git, then clone and enter the repository
$ git clone https://github.com/PretendoNetwork/pokemon-rumble-world
$ cd pokemon-rumble-worldTo 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/pokemon-rumble-worldThe server is now built to build/pokemon-rumble-world
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 will read the local .git directory to create a dynamic authentication server build string, based on your repositories remote origin and current commit
Install make either through your systems package manager or the official download. We provide two different rules; A default rule which compiles using go, and a docker rule which compiles using docker. Please refer to each sections setup instructions before continuing with your preferred rule
To build using go
$ makeThe server is now built to build/pokemon-rumble-world
All configuration options are handled via environment variables
.env files are supported
| Name | Description | Required |
|---|---|---|
PN_PRW_POSTGRES_URI |
Fully qualified URI to your Postgres server (Example postgres://username:password@localhost/prw?sslmode=disable) |
Yes |
PN_PRW_AUTHENTICATION_SERVER_PORT |
Port for the authentication server | Yes |
PN_PRW_SECURE_SERVER_HOST |
Host name for the secure server (should point to the same address as the authentication server) | Yes |
PN_PRW_SECURE_SERVER_PORT |
Port for the secure server | Yes |
PN_PRW_HPP_SERVER_PORT |
Port for the HPP server | Disabled |
PN_PRW_ACCOUNT_GRPC_HOST |
Host name for your account server gRPC service | Yes |
PN_PRW_ACCOUNT_GRPC_PORT |
Port for your account server gRPC service | Yes |
PN_PRW_ACCOUNT_GRPC_API_KEY |
API key for your account server gRPC service | No (Assumed to be an open gRPC API) |
PN_PRW_FRIENDS_GRPC_HOST |
Host name for your friends server gRPC service | Yes |
PN_PRW_FRIENDS_GRPC_PORT |
Port for your friends server gRPC service | Yes |
PN_PRW_FRIENDS_GRPC_API_KEY |
API key for your friends server gRPC service | No (Assumed to be an open gRPC API) |
PN_PRW_S3_ENDPOINT |
Endpoint for your S3 server | Disabled |
PN_PRW_S3_REGION |
Region for your S3 server | Disabled |
PN_PRW_S3_ACCESS_KEY |
Access key for your S3 server | Disabled |
PN_PRW_S3_ACCESS_SECRET |
Access secret for your S3 server | Disabled |
PN_PRW_S3_BUCKET |
Bucket for your S3 server | Disabled |