tools/sync_models.sh: Pack-Referenzordner als Textur-Quelle

Operator-Befund auf dem PC (20.10.): die Original-Texturen liegen NICHT im
Client-Klon, sondern in einem eigenen Pack-Ordner:
  ~/godot-projects/ithappy_pack_ref/ithappy/military_desert/textures/
Deshalb sucht das Skript jetzt zusaetzlich dort (<clone>/../ithappy_pack_ref/...)
und als letzte Instanz per find -maxdepth 6 unter <clone>/.. und <client>/..
(also neben dem Projekt). Belegt mit einem nachgebauten PC-Aufbau: Palette wird
gefunden, landet FLACH in models/textures/, --check danach Exit 0.
This commit is contained in:
scopedvr-operator 2026-10-20 09:58:47 +00:00
parent 8c97d00871
commit e317706df0

View file

@ -103,6 +103,20 @@ if [ -z "$SRC_TEX" ] || [ ! -d "$SRC_TEX" ]; then
PAL="$(find "$CLIENT/assets" -name 'Demonstration_Textures*.png' 2>/dev/null | head -1)"
if [ -n "$PAL" ]; then SRC_TEX="$(dirname "$PAL")"; fi
fi
# Pack-Referenzordner (Operator-Befund 20.10. auf dem PC): die Original-Texturen
# liegen NICHT im Client-Klon, sondern in einem eigenen Pack-Ordner
# (~/godot-projects/ithappy_pack_ref/ithappy/military_desert/textures).
for cand in "$DIR/../ithappy_pack_ref/ithappy/military_desert/textures" \
"$CLIENT/../ithappy_pack_ref/ithappy/military_desert/textures" \
"$DIR/../ithappy_pack_ref"; do
if [ -z "$SRC_TEX" ] || [ ! -d "$SRC_TEX" ]; then
if [ -d "$cand" ]; then SRC_TEX="$cand"; break; fi
fi
done
if [ -z "$SRC_TEX" ] || [ ! -d "$SRC_TEX" ]; then
PAL="$(find "$DIR/.." "$CLIENT/.." -maxdepth 6 -name 'Demonstration_Textures*.png' 2>/dev/null | head -1)"
if [ -n "$PAL" ]; then SRC_TEX="$(dirname "$PAL")"; fi
fi
if [ -z "$SRC_TEX" ] || [ ! -d "$SRC_TEX" ]; then
echo "HINWEIS: Pack-Texturen nicht gefunden — gesucht in SCOPEDVR_TEX_DIR,"
echo " assets/textures/military_desert, assets/textures und nach"