24 lines
911 B
Bash
Executable File
24 lines
911 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Local-only multiplayer test runtime. It uses Hytale's normal authenticated
|
|
# mode so the launcher client can join; bind remains loopback-only.
|
|
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 authenticated \
|
|
--bind 127.0.0.1:5521 \
|
|
--disable-sentry
|