fix: boot ProjectCapture on Hytale 0.5.9
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
project_root="$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd -P)"
|
||||
runtime_root="${PROJECT_CAPTURE_DEV_SERVER:-$(CDPATH= cd -- "${project_root}/.." && pwd -P)/ProjectCapture-devserver}"
|
||||
mods_directory="${runtime_root}/mods"
|
||||
|
||||
[[ -d "${mods_directory}" && ! -L "${mods_directory}" ]] || {
|
||||
printf 'Isolierte Runtime fehlt; zuerst setup-isolated-dev-server.sh ausführen.\n' >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
"${project_root}/gradlew" -p "${project_root}" :hytale-adapter:installToDevMods \
|
||||
-PprojectCapture.devModsDir="${mods_directory}"
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Creates a disposable, local Hytale 0.5.9 server beside the repository. It
|
||||
# never writes to the launcher installation or the project's tracked files.
|
||||
project_root="$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd -P)"
|
||||
runtime_root="${PROJECT_CAPTURE_DEV_SERVER:-$(CDPATH= cd -- "${project_root}/.." && pwd -P)/ProjectCapture-devserver}"
|
||||
launcher_root="/Users/christianschindler/Library/Application Support/Hytale/install/release/package/game/latest"
|
||||
server_source="${launcher_root}/Server/HytaleServer.jar"
|
||||
assets_source="${launcher_root}/Assets.zip"
|
||||
|
||||
for source_path in "${server_source}" "${assets_source}"; do
|
||||
[[ -f "${source_path}" && ! -L "${source_path}" ]] || {
|
||||
printf 'Fehlende oder unsichere Hytale-Quelldatei: %s\n' "${source_path}" >&2
|
||||
exit 1
|
||||
}
|
||||
done
|
||||
|
||||
[[ ! -e "${runtime_root}" && ! -L "${runtime_root}" ]] || {
|
||||
printf 'Ziel existiert bereits; nichts wurde überschrieben: %s\n' "${runtime_root}" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
mkdir -p "${runtime_root}/Server" "${runtime_root}/mods" "${runtime_root}/universe"
|
||||
cp -- "${server_source}" "${runtime_root}/Server/HytaleServer.jar"
|
||||
cp -- "${assets_source}" "${runtime_root}/Assets.zip"
|
||||
|
||||
printf 'Isolierte Hytale-0.5.9-Runtime angelegt: %s\n' "${runtime_root}"
|
||||
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user