Off the ladder at the user's request. Scripts/Authoring/generate_heightmap.py (numpy, installed locally by bootstrap-pylib.sh) writes a 16-bit height PNG and three 8-bit weight PNGs to Content/World/Heightmaps; create_world.py rebuilds /Game/Maps/L_World from them through ULandscapeAuthoringLibrary in the new SaltyEditor module, which wraps ALandscape::Import because the engine exposes no landscape creation to Python. Uses Elite_RockyMeadows' landscape material and layer infos (the pack itself is still uncommitted). 4033 vertices a side at 350 cm a quad; swap the PNGs and rerun to change the terrain. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
9 lines
512 B
Bash
9 lines
512 B
Bash
#!/usr/bin/env bash
|
|
# Installs the Python packages the authoring scripts need (numpy) into Scripts/Authoring/.pylib with the
|
|
# engine's own Python, so nothing is installed into the engine. Run once per machine. UE_ROOT overrides the engine.
|
|
set -eu
|
|
UE_ROOT="${UE_ROOT:-D:/UE_5.8}"
|
|
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
|
|
"$UE_ROOT/Engine/Binaries/ThirdParty/Python3/Win64/python.exe" -m pip install --quiet --target "$ROOT/Scripts/Authoring/.pylib" numpy
|
|
echo "installed into $ROOT/Scripts/Authoring/.pylib"
|