2026-08-10 13:56:40 -04:00
|
|
|
# NETfishing Dedicated Server
|
|
|
|
|
|
|
|
|
|
This repository packages the headless NETfishing server produced by the main
|
|
|
|
|
game project. Gameplay and networking code remain in the `netfishing`
|
|
|
|
|
repository so clients and servers use the same protocol implementation.
|
|
|
|
|
|
2026-08-11 20:31:02 -04:00
|
|
|
Production tags follow the coordinated NETfishing release train. Package a
|
|
|
|
|
game release with the same `vX.Y.Z-alpha` tag checked out in this repository.
|
|
|
|
|
The package manifest records both the exact game commit and the exact dedicated
|
|
|
|
|
packaging commit; packaging refuses to run when its matching release tag does
|
|
|
|
|
not point to the current commit.
|
|
|
|
|
|
2026-08-10 13:56:40 -04:00
|
|
|
## Stage a build
|
|
|
|
|
|
|
|
|
|
Export the `Linux Dedicated Server` preset from the game project, then stage
|
2026-08-11 10:37:03 -04:00
|
|
|
its executable and PCK with the exact game version and source commit:
|
2026-08-10 13:56:40 -04:00
|
|
|
|
|
|
|
|
```sh
|
2026-08-11 10:37:03 -04:00
|
|
|
game_commit="$(git -C ../netfishing rev-parse HEAD)"
|
|
|
|
|
./scripts/stage-build.sh \
|
|
|
|
|
../netfishing/builds/vX.Y.Z-alpha/server-linux-x86_64 \
|
|
|
|
|
X.Y.Z-alpha \
|
2026-08-12 22:12:16 -04:00
|
|
|
"${game_commit}" \
|
|
|
|
|
../netfishing
|
2026-08-10 13:56:40 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
The staged binaries under `dist/` are release inputs and are intentionally not
|
2026-08-11 20:31:02 -04:00
|
|
|
tracked by Git. `dist/BUILD_INFO` records the version, full game and packaging
|
2026-08-12 22:12:16 -04:00
|
|
|
commits, export preset, platform, and binary hashes. Manifest version 3 also
|
|
|
|
|
records the consolidated notice layout. Packaging refuses a
|
2026-08-11 20:31:02 -04:00
|
|
|
version mismatch, packaging-tag mismatch, or failed internal checksum.
|
2026-08-12 22:12:16 -04:00
|
|
|
Staging also requires the clean main game checkout at that exact commit and
|
|
|
|
|
copies its authoritative licenses, attribution/provenance record, and font
|
|
|
|
|
notices into the package. This repository does not maintain duplicate copies.
|
2026-08-10 13:56:40 -04:00
|
|
|
|
|
|
|
|
Create a deterministic native archive after staging:
|
|
|
|
|
|
|
|
|
|
```sh
|
2026-08-10 23:23:32 -04:00
|
|
|
./scripts/package-native.sh X.Y.Z-alpha
|
2026-08-10 13:56:40 -04:00
|
|
|
```
|
|
|
|
|
|
2026-08-11 10:37:03 -04:00
|
|
|
## Install or update natively
|
2026-08-10 13:56:40 -04:00
|
|
|
|
2026-08-11 10:37:03 -04:00
|
|
|
The native archive contains its `BUILD_INFO` and internal checksums. Transfer
|
|
|
|
|
both the archive and its adjacent `.sha256` file, then install it:
|
2026-08-10 13:56:40 -04:00
|
|
|
|
|
|
|
|
```sh
|
2026-08-11 10:37:03 -04:00
|
|
|
sudo ./scripts/install-native-release.sh \
|
|
|
|
|
packages/netfishing-dedicated-server-X.Y.Z-alpha-linux-x86_64.tar.gz \
|
|
|
|
|
packages/netfishing-dedicated-server-X.Y.Z-alpha-linux-x86_64.tar.gz.sha256
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Releases are immutable directories under `/opt/netfishing-server/releases`.
|
|
|
|
|
The installer verifies the outer archive hash, internal hashes, manifest, and
|
|
|
|
|
platform before atomically changing `/opt/netfishing-server/current`. When the
|
|
|
|
|
sample systemd unit is already active, a failed start automatically restores
|
|
|
|
|
the prior release. Manually return to the recorded previous release with:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
sudo ./scripts/rollback-native.sh
|
2026-08-10 13:56:40 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Copy `config/server.cfg.example` to `/etc/netfishing-server.cfg` and adjust the
|
|
|
|
|
room name, UDP port, player limit, and public-listing preference. Forward the
|
|
|
|
|
configured UDP port through the host firewall and router when accepting
|
|
|
|
|
Internet players.
|
|
|
|
|
|
|
|
|
|
The data directory contains the server identity and moderation state. Keep it
|
|
|
|
|
persistent and back it up; replacing it changes the server fingerprint shown
|
|
|
|
|
to returning players.
|
|
|
|
|
|
|
|
|
|
Configuration is applied in this order: config file, environment variables,
|
|
|
|
|
then command-line overrides. Supported command-line options are `--name`,
|
|
|
|
|
`--bind`, `--port`, `--max-players`, `--data-dir`, `--discovery-url`,
|
2026-08-11 22:58:53 -04:00
|
|
|
`--operators`, `--public`, and `--private`. Value options use `--option=value`.
|
|
|
|
|
Keep the first standalone `--` shown above; it separates Godot engine flags
|
|
|
|
|
from server flags.
|
|
|
|
|
|
|
|
|
|
### Headless operators
|
|
|
|
|
|
|
|
|
|
Headless moderation is granted by authenticated player identity, never by a
|
|
|
|
|
display name or shared password. A player can copy their complete 64-character
|
|
|
|
|
fingerprint from **Settings → Data & Identity → Copy Player Fingerprint**.
|
|
|
|
|
|
|
|
|
|
Add trusted fingerprints to `/etc/netfishing-server.cfg`:
|
|
|
|
|
|
|
|
|
|
```ini
|
|
|
|
|
[moderation]
|
|
|
|
|
operators=PackedStringArray("0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef")
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Alternatively, provide a comma-separated list through
|
|
|
|
|
`NETFISHING_SERVER_OPERATORS` or `--operators=fingerprint1,fingerprint2`.
|
|
|
|
|
Configuration file values are overridden by the environment, then by the
|
|
|
|
|
command line. Restart the server after changing the allowlist.
|
|
|
|
|
|
|
|
|
|
The server grants operator status only after the connecting player proves
|
|
|
|
|
ownership of that exact identity key. Operators can kick, ban, unban, and clear
|
|
|
|
|
shared session artwork through the in-game Players page. They cannot grant
|
|
|
|
|
operator access, revoke another operator, or moderate another operator. Keep
|
|
|
|
|
the server data directory persistent because it owns the server identity and
|
|
|
|
|
stored bans.
|
2026-08-10 13:56:40 -04:00
|
|
|
|
|
|
|
|
Public listing requires the discovery URL and a publicly reachable ENet UDP
|
|
|
|
|
port. Discovery makes a server findable but does not relay gameplay traffic.
|
|
|
|
|
|
2026-08-11 10:37:03 -04:00
|
|
|
For a systemd installation, create a dedicated `netfishing` system user,
|
|
|
|
|
install the sample configuration and environment files under `/etc`, and copy
|
|
|
|
|
`systemd/netfishing-server.service` to the system unit directory. The unit runs
|
|
|
|
|
the atomic `current` release link and expects `/var/lib/netfishing-server` to be
|
|
|
|
|
writable by that user. When migrating an older direct-path installation, stop
|
|
|
|
|
the service, run the installer once, replace/reload the unit, and then start it.
|
|
|
|
|
After that one-time migration, future upgrades can be applied while the unit
|
|
|
|
|
is running.
|
|
|
|
|
|
|
|
|
|
For a direct foreground run from staged build inputs:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
./dist/NETfishingServer.x86_64 \
|
|
|
|
|
-- \
|
|
|
|
|
--config=/etc/netfishing-server.cfg \
|
|
|
|
|
--data-dir=/var/lib/netfishing-server
|
|
|
|
|
```
|
2026-08-10 13:56:40 -04:00
|
|
|
|
|
|
|
|
## Run with Docker Compose
|
|
|
|
|
|
|
|
|
|
```sh
|
2026-08-11 10:37:03 -04:00
|
|
|
./scripts/stage-build.sh \
|
|
|
|
|
../netfishing/builds/vX.Y.Z-alpha/server-linux-x86_64 \
|
|
|
|
|
X.Y.Z-alpha \
|
2026-08-12 22:12:16 -04:00
|
|
|
"$(git -C ../netfishing rev-parse HEAD)" \
|
|
|
|
|
../netfishing
|
2026-08-10 13:56:40 -04:00
|
|
|
docker compose build
|
|
|
|
|
docker compose up -d
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Set values such as `NETFISHING_SERVER_NAME`, `NETFISHING_SERVER_PORT`,
|
2026-08-11 22:58:53 -04:00
|
|
|
`NETFISHING_SERVER_MAX_PLAYERS`, `NETFISHING_SERVER_PUBLIC`, and the optional
|
|
|
|
|
comma-separated `NETFISHING_SERVER_OPERATORS` in a local `.env` file. The
|
|
|
|
|
Compose service runs without Linux capabilities, uses a read-only root
|
|
|
|
|
filesystem, and stores persistent state in a named volume.
|
2026-08-10 13:56:40 -04:00
|
|
|
|
|
|
|
|
## Steam distribution
|
|
|
|
|
|
|
|
|
|
Publish the server as a separate Steam Tool AppID/depot linked to the base
|
|
|
|
|
game. Replace the placeholders in copies of the files under `steam/`, then use
|
|
|
|
|
SteamCMD to upload the staged `dist/` directory. Keep the example files free of
|
|
|
|
|
private Steam credentials.
|
2026-08-12 10:11:20 -04:00
|
|
|
|
|
|
|
|
## Licensing
|
|
|
|
|
|
|
|
|
|
Project-owned source code in this packaging repository and the packaged game
|
|
|
|
|
server code are licensed under
|
|
|
|
|
[GPL-3.0-or-later](LICENSE). Every binary package includes the license and a
|
|
|
|
|
corresponding-source record for its exact game commit.
|
|
|
|
|
|
2026-08-12 22:12:16 -04:00
|
|
|
The server PCK contains NETfishing creative assets and third-party material.
|
|
|
|
|
Their governing terms, credits, and provenance are maintained once in the
|
|
|
|
|
main game's
|
|
|
|
|
[`docs/ATTRIBUTION.md`](https://forge.makearmy.io/woofmeow/netfishing/src/branch/main/docs/ATTRIBUTION.md),
|
|
|
|
|
with the asset license and trademark terms beside that record. Every staged
|
|
|
|
|
server package copies those files from its exact game source commit.
|
2026-08-12 10:11:20 -04:00
|
|
|
|
|
|
|
|
Contributions are accepted under [`CONTRIBUTING.md`](CONTRIBUTING.md) and
|
|
|
|
|
[`CONTRIBUTOR-TERMS.md`](CONTRIBUTOR-TERMS.md).
|
|
|
|
|
|
2026-08-12 22:12:16 -04:00
|
|
|
Copyright © 2026 Woofmeow.
|