chore: commit untracked UE/scaffold files (repo cleanup triage 20260707)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
157
scripts/setup/verify_project_setup.sh
Executable file
157
scripts/setup/verify_project_setup.sh
Executable file
@@ -0,0 +1,157 @@
|
||||
#!/bin/bash
|
||||
# Verify project setup is complete
|
||||
|
||||
# Colors
|
||||
GREEN='\033[0;32m'
|
||||
RED='\033[0;31m'
|
||||
YELLOW='\033[1;33m'
|
||||
BLUE='\033[0;34m'
|
||||
NC='\033[0m'
|
||||
|
||||
echo "=========================================="
|
||||
echo "Dubai Metaverse Project Setup Verification"
|
||||
echo "=========================================="
|
||||
echo ""
|
||||
|
||||
ERRORS=0
|
||||
WARNINGS=0
|
||||
|
||||
# Check project file
|
||||
if [ -f "DubaiMetaverse.uproject" ]; then
|
||||
echo -e "${GREEN}✓${NC} DubaiMetaverse.uproject exists"
|
||||
else
|
||||
echo -e "${RED}✗${NC} DubaiMetaverse.uproject missing"
|
||||
((ERRORS++))
|
||||
fi
|
||||
|
||||
# Check config files
|
||||
if [ -f "Config/DefaultEngine.ini" ]; then
|
||||
echo -e "${GREEN}✓${NC} DefaultEngine.ini exists"
|
||||
|
||||
# Check Nanite
|
||||
if grep -q "r.Nanite.ProjectEnabled=True" Config/DefaultEngine.ini; then
|
||||
echo -e " ${GREEN}✓${NC} Nanite enabled"
|
||||
else
|
||||
echo -e " ${RED}✗${NC} Nanite not configured"
|
||||
((ERRORS++))
|
||||
fi
|
||||
|
||||
# Check Lumen
|
||||
if grep -q "r.Lumen.ProjectEnabled=True" Config/DefaultEngine.ini; then
|
||||
echo -e " ${GREEN}✓${NC} Lumen enabled"
|
||||
else
|
||||
echo -e " ${RED}✗${NC} Lumen not configured"
|
||||
((ERRORS++))
|
||||
fi
|
||||
|
||||
# Check Lumen GI
|
||||
if grep -q "r.Lumen.DiffuseIndirect.Allow=1" Config/DefaultEngine.ini; then
|
||||
echo -e " ${GREEN}✓${NC} Lumen Global Illumination enabled"
|
||||
else
|
||||
echo -e " ${YELLOW}⚠${NC} Lumen GI not explicitly configured"
|
||||
((WARNINGS++))
|
||||
fi
|
||||
|
||||
# Check Lumen Reflections
|
||||
if grep -q "r.Lumen.Reflections.Allow=1" Config/DefaultEngine.ini; then
|
||||
echo -e " ${GREEN}✓${NC} Lumen Reflections enabled"
|
||||
else
|
||||
echo -e " ${YELLOW}⚠${NC} Lumen Reflections not explicitly configured"
|
||||
((WARNINGS++))
|
||||
fi
|
||||
|
||||
# Check Virtual Shadow Maps
|
||||
if grep -q "r.Shadow.Virtual.Enable=1" Config/DefaultEngine.ini; then
|
||||
echo -e " ${GREEN}✓${NC} Virtual Shadow Maps enabled"
|
||||
else
|
||||
echo -e " ${YELLOW}⚠${NC} Virtual Shadow Maps not configured"
|
||||
((WARNINGS++))
|
||||
fi
|
||||
|
||||
# Check World Partition
|
||||
if grep -q "bEnableWorldPartition=True" Config/DefaultEngine.ini; then
|
||||
echo -e " ${GREEN}✓${NC} World Partition enabled"
|
||||
else
|
||||
echo -e " ${RED}✗${NC} World Partition not configured"
|
||||
((ERRORS++))
|
||||
fi
|
||||
else
|
||||
echo -e "${RED}✗${NC} DefaultEngine.ini missing"
|
||||
((ERRORS++))
|
||||
fi
|
||||
|
||||
# Check DefaultGame.ini
|
||||
if [ -f "Config/DefaultGame.ini" ]; then
|
||||
echo -e "${GREEN}✓${NC} DefaultGame.ini exists"
|
||||
else
|
||||
echo -e "${YELLOW}⚠${NC} DefaultGame.ini missing (optional)"
|
||||
((WARNINGS++))
|
||||
fi
|
||||
|
||||
# Check Source structure
|
||||
if [ -d "Source/DubaiMetaverse" ]; then
|
||||
echo -e "${GREEN}✓${NC} Source structure exists"
|
||||
else
|
||||
echo -e "${BLUE}ℹ${NC} Source structure not found (optional for Blueprint-only project)"
|
||||
fi
|
||||
|
||||
# Check Content structure
|
||||
if [ -d "Content" ]; then
|
||||
echo -e "${GREEN}✓${NC} Content directory exists"
|
||||
else
|
||||
echo -e "${RED}✗${NC} Content directory missing"
|
||||
((ERRORS++))
|
||||
fi
|
||||
|
||||
# Check required plugins
|
||||
echo ""
|
||||
echo "Checking required plugins..."
|
||||
REQUIRED_PLUGINS=(
|
||||
"ProceduralContentGeneration"
|
||||
"VirtualProduction"
|
||||
"MovieRenderQueue"
|
||||
"ModelingTools"
|
||||
"GeometryScript"
|
||||
)
|
||||
|
||||
PLUGINS_OK=0
|
||||
for plugin in "${REQUIRED_PLUGINS[@]}"; do
|
||||
if grep -q "\"Name\": \"$plugin\"" DubaiMetaverse.uproject 2>/dev/null; then
|
||||
if grep -A1 "\"Name\": \"$plugin\"" DubaiMetaverse.uproject | grep -q "\"Enabled\": true"; then
|
||||
echo -e " ${GREEN}✓${NC} $plugin enabled"
|
||||
((PLUGINS_OK++))
|
||||
else
|
||||
echo -e " ${YELLOW}⚠${NC} $plugin found but not enabled"
|
||||
((WARNINGS++))
|
||||
fi
|
||||
else
|
||||
echo -e " ${RED}✗${NC} $plugin missing"
|
||||
((ERRORS++))
|
||||
fi
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "=========================================="
|
||||
echo "Verification Summary"
|
||||
echo "=========================================="
|
||||
echo ""
|
||||
|
||||
if [ $ERRORS -eq 0 ] && [ $PLUGINS_OK -eq ${#REQUIRED_PLUGINS[@]} ]; then
|
||||
echo -e "${GREEN}✅ Project setup verification: PASSED${NC}"
|
||||
if [ $WARNINGS -gt 0 ]; then
|
||||
echo -e "${YELLOW}⚠${NC} $WARNINGS warning(s) found (non-critical)"
|
||||
fi
|
||||
echo ""
|
||||
echo "All required settings and plugins are configured!"
|
||||
exit 0
|
||||
else
|
||||
echo -e "${RED}⚠ Project setup verification: FAILED${NC}"
|
||||
echo -e " ${RED}Errors:${NC} $ERRORS"
|
||||
echo -e " ${YELLOW}Warnings:${NC} $WARNINGS"
|
||||
echo ""
|
||||
if [ $ERRORS -gt 0 ]; then
|
||||
echo "Run configuration script:"
|
||||
echo " ./scripts/setup/configure_project_settings.sh"
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user