Skip to content

Commit

Permalink
Adds environment variables for LogNet and LogNetTraffic parameters (#353
Browse files Browse the repository at this point in the history
)

* Adds environment variables for LogNet and LogNetTraffic parameters

---------

Co-authored-by: Robert Thomas <[email protected]>
  • Loading branch information
joshenders and wolveix authored Oct 3, 2024
1 parent 598a037 commit 32a6424
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 |
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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=$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"
Expand Down

0 comments on commit 32a6424

Please sign in to comment.