diff --git a/Dockerfile b/Dockerfile index 4ce7b78..0698ff9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,8 @@ ENV AUTOSAVENUM="5" \ GAMECONFIGDIR="/config/gamefiles/FactoryGame/Saved" \ GAMESAVESDIR="/home/steam/.config/Epic/FactoryGame/Saved/SaveGames" \ LOG="false" \ + LOGNETLEVEL="Error" \ + LOGNETTRAFFICLEVEL="Warning" \ MAXOBJECTS="2162688" \ MAXPLAYERS="4" \ MAXTICKRATE="30" \ diff --git a/README.md b/README.md index 3ccad84..4cc4926 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ services: - STEAMBETA=false restart: unless-stopped healthcheck: - test: ["CMD", "bash", "/healthcheck.sh"] + test: [ "CMD", "bash", "/healthcheck.sh" ] interval: 30s timeout: 10s retries: 3 @@ -176,6 +176,8 @@ helm install satisfactory k8s-at-home/satisfactory -f values.yaml | `DEBUG` | `false` | for debugging the server | | `DISABLESEASONALEVENTS` | `false` | disable the FICSMAS event (you miserable bastard) | | `LOG` | `false` | disable Satisfactory log pruning | +| `LOGNETLEVEL` | `Error` | print network logs at or above this log level | +| `LOGNETTRAFFICLEVEL` | `Warning` | print network traffic logs at or above this log level | | `MAXOBJECTS` | `2162688` | set the object limit for your server | | `MAXPLAYERS` | `4` | set the player limit for your server | | `MAXTICKRATE` | `30` | set the maximum sim tick rate for your server | @@ -190,6 +192,16 @@ helm install satisfactory k8s-at-home/satisfactory -f values.yaml | `TIMEOUT` | `30` | set client timeout (in seconds) | | `VMOVERRIDE` | `false` | skips the CPU model check (should not ordinarily be used) | +For the log level variables, the following values are supported by the game: + +- `Fatal` +- `Error` +- `Warning` +- `Display` +- `Log` +- `Verbose` +- `VeryVerbose` + ## Experimental Branch If you want to run a server for the Experimental version of the game, set the `STEAMBETA` environment variable to diff --git a/docker-compose.yml b/docker-compose.yml index 532c582..72d0f51 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,7 +16,7 @@ services: - STEAMBETA=false restart: unless-stopped healthcheck: - test: ["CMD", "bash", "/healthcheck.sh"] + test: [ "CMD", "bash", "/healthcheck.sh" ] interval: 30s timeout: 10s retries: 3 diff --git a/run.sh b/run.sh index 77df31e..2caffa0 100755 --- a/run.sh +++ b/run.sh @@ -46,8 +46,8 @@ else fi ini_args=( - "-ini:Engine:[Core.Log]:LogNet=Error" - "-ini:Engine:[Core.Log]:LogNetTraffic=Warning" + "-ini:Engine:[Core.Log]:LogNet=$LOGNETLEVEL" + "-ini:Engine:[Core.Log]:LogNetTraffic=$LOGNETTRAFFICLEVEL" "-ini:Engine:[/Script/FactoryGame.FGSaveSession]:mNumRotatingAutosaves=$AUTOSAVENUM" "-ini:Engine:[/Script/Engine.GarbageCollectionSettings]:gc.MaxObjectsInEditor=$MAXOBJECTS" "-ini:Engine:[/Script/OnlineSubsystemUtils.IpNetDriver]:LanServerMaxTickRate=$MAXTICKRATE"