Skip to content

Commit 51e4dae

Browse files
committed
Add support for overriding MaxViewRadius in config.json
1 parent c693542 commit 51e4dae

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ The following environment variables can be used to configure the Hytale server:
5656
| `HYTALE_SERVER_PORT` | `5520` | Port the server binds to |
5757
| `HYTALE_PARAMETERS` | _(see below)_ | Override all JVM/server parameters |
5858
| `HYTALE_ADDITIONAL_PARAMETERS` | _(none)_ | Append additional parameters to the default |
59+
| `HYTALE_MAX_VIEW_RADIUS` | _(none)_ | Override `MaxViewRadius` in `config.json` |
5960

6061
### Example with Custom Memory Settings
6162

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,9 @@ else
3838
echo "No Hytale server zip file found to unzip."
3939
fi
4040

41+
if [ -f /app/Hytale/config.json ] && [ -n "$HYTALE_MAX_VIEW_RADIUS" ]; then
42+
sed -i "s/\"MaxViewRadius\"[[:space:]]*:[[:space:]]*[0-9.]\+/\"MaxViewRadius\": $HYTALE_MAX_VIEW_RADIUS/" /app/Hytale/config.json
43+
fi
44+
4145
# Start the Hytale server
4246
exec java $HYTALE_PARAMETERS

0 commit comments

Comments
 (0)