Skip to content

Commit

Permalink
Adds enviornment variables for LogNet and LogNetTraffic parameters
Browse files Browse the repository at this point in the history
- Updates run.sh with parameters and default values
- Updates README.md with LogNet documentation
  • Loading branch information
joshenders committed Oct 3, 2024
1 parent 598a037 commit 4912807
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 21 deletions.
47 changes: 28 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4912807

Please sign in to comment.