Files
ProjectCapture/scripts/start-isolated-dev-server.sh
T

24 lines
913 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Local-only multiplayer test runtime. Insecure authentication is deliberately
# restricted to loopback so two local clients can exercise shared state.
project_root="$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd -P)"
runtime_root="${PROJECT_CAPTURE_DEV_SERVER:-$(CDPATH= cd -- "${project_root}/.." && pwd -P)/ProjectCapture-devserver}"
server_directory="${runtime_root}/Server"
[[ -f "${server_directory}/HytaleServer.jar" && -f "${runtime_root}/Assets.zip" ]] || {
printf 'Isolierte Runtime fehlt; zuerst setup-isolated-dev-server.sh ausführen.\n' >&2
exit 1
}
cd "${server_directory}"
export HYTALE_DISABLE_UPDATES=true
exec java -Xmx4G -jar HytaleServer.jar \
--assets "${runtime_root}/Assets.zip" \
--mods "${runtime_root}/mods" \
--universe "${runtime_root}/universe" \
--auth-mode insecure \
--bind 127.0.0.1:5521 \
--disable-sentry