Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds environment variables for LogNet and LogNetTraffic parameters #353

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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