diff --git a/tools/sync_models.sh b/tools/sync_models.sh index 9bed6a6..381f484 100755 --- a/tools/sync_models.sh +++ b/tools/sync_models.sh @@ -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"