diff --git a/README.md b/README.md index 3ccad84..9842ff6 100644 --- a/README.md +++ b/README.md @@ -170,25 +170,34 @@ helm install satisfactory k8s-at-home/satisfactory -f values.yaml ## Environment Variables -| Parameter | Default | Function | -|-------------------------|:---------:|-----------------------------------------------------------| -| `AUTOSAVENUM` | `5` | number of rotating autosave files | -| `DEBUG` | `false` | for debugging the server | -| `DISABLESEASONALEVENTS` | `false` | disable the FICSMAS event (you miserable bastard) | -| `LOG` | `false` | disable Satisfactory log pruning | -| `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 | -| `PGID` | `1000` | set the group ID of the user the server will run as | -| `PUID` | `1000` | set the user ID of the user the server will run as | -| `ROOTLESS` | `false` | run the container as a non-root user | -| `SERVERGAMEPORT` | `7777` | set the game's port | -| `SERVERIP` | `0.0.0.0` | set the game's ip (usually not needed) | -| `SERVERSTREAMING` | `true` | toggle whether the game utilizes asset streaming | -| `SKIPUPDATE` | `false` | avoid updating the game on container start/restart | -| `STEAMBETA` | `false` | set experimental game version | -| `TIMEOUT` | `30` | set client timeout (in seconds) | -| `VMOVERRIDE` | `false` | skips the CPU model check (should not ordinarily be used) | +| Parameter | Default | Function | +|---------------------------|:---------:|------------------------------------------------------------------| +| `AUTOSAVENUM` | `5` | number of rotating autosave files | +| `DEBUG` | `false` | for debugging the server | +| `DISABLESEASONALEVENTS` | `false` | disable the FICSMAS event (you miserable bastard) | +| `LOG` | `false` | disable Satisfactory log pruning | +| `LOGNETERRORLEVEL` | `Error` | LogNet errors at or above this log level will be printed | +| `LOGNETTRAFFICERRORLEVEL` | `Warning` | LogNetTraffic errors at or above this log level will be printed | +| `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 | +| `PGID` | `1000` | set the group ID of the user the server will run as | +| `PUID` | `1000` | set the user ID of the user the server will run as | +| `ROOTLESS` | `false` | run the container as a non-root user | +| `SERVERGAMEPORT` | `7777` | set the game's port | +| `SERVERIP` | `0.0.0.0` | set the game's ip (usually not needed) | +| `SERVERSTREAMING` | `true` | toggle whether the game utilizes asset streaming | +| `SKIPUPDATE` | `false` | avoid updating the game on container start/restart | +| `STEAMBETA` | `false` | set experimental game version | +| `TIMEOUT` | `30` | set client timeout (in seconds) | +| `VMOVERRIDE` | `false` | skips the CPU model check (should not ordinarily be used) | + +## Network Debugging + +The ini values of `Engine:[Core.Log]:LogNet` and `Engine:[Core.Log]:LogNetTraffic` can be modified via the +`LOGNETERRORLEVEL` and `LOGNETTRAFFICERRORLEVEL` environment variables. + +The following log levels are supported: `Fatal, Error, Warning, Display, Log, Verbose, VeryVerbose` ## Experimental Branch diff --git a/run.sh b/run.sh index 77df31e..6e33145 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=${LOGNETERRORLEVEL:-Error}" + "-ini:Engine:[Core.Log]:LogNetTraffic=${LOGNETTRAFFICERRORLEVEL:-Warning}" "-ini:Engine:[/Script/FactoryGame.FGSaveSession]:mNumRotatingAutosaves=$AUTOSAVENUM" "-ini:Engine:[/Script/Engine.GarbageCollectionSettings]:gc.MaxObjectsInEditor=$MAXOBJECTS" "-ini:Engine:[/Script/OnlineSubsystemUtils.IpNetDriver]:LanServerMaxTickRate=$MAXTICKRATE"