Files
novafarma/scripts/check_generation_status.sh
David Kotnik 117624befc 📝 Nočna Session Setup - Asset Generation Infrastructure
- Created overnight generation system
- Added master character references (Gronk, Kai)
- Implemented auto-commit for all generated assets
- Created comprehensive documentation and changelogs
- Setup FULL generator (850+ assets without NPCs)
- Added progress tracking and status check scripts

Ready for overnight mass generation 🌙
2025-12-29 03:43:44 +01:00

50 lines
2.5 KiB
Bash
Executable File

#!/bin/bash
# 🔍 Preveri status generacije
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "🎮 DOLINA SMRTI - Asset Generation Status"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
# Preveri če proces teče
if [ -f /tmp/dolina_generation.pid ]; then
PID=$(cat /tmp/dolina_generation.pid)
if ps -p $PID > /dev/null 2>&1; then
echo "✅ Generacija TEČE (PID: $PID)"
# Pokaži zadnje loge
LATEST_LOG=$(ls -t /Users/davidkotnik/repos/novafarma/generation_*.log 2>/dev/null | head -1)
if [ -n "$LATEST_LOG" ]; then
echo "📂 Log file: $LATEST_LOG"
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "📊 Zadnjih 15 vrstic:"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
tail -15 "$LATEST_LOG"
fi
else
echo "❌ Proces NE teče več (PID $PID ni aktiven)"
rm /tmp/dolina_generation.pid
fi
else
echo "⭕ Generacija NI zagnana"
fi
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "📁 Trenutno generirane slike:"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
cd /Users/davidkotnik/repos/novafarma/assets/images
for dir in */; do
count=$(find "$dir" -name "*.png" 2>/dev/null | wc -l)
printf " %-20s: %3d slik\n" "${dir%/}" "$count"
done
total=$(find . -name "*.png" 2>/dev/null | wc -l)
echo " ────────────────────────────────"
printf " %-20s: %3d slik\n" "SKUPAJ" "$total"
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"