📁 Asset Organization Complete - Hierarchical Structure
✅ Organized assets into logical categories with subfolders: - liki/ (kai, ana, gronk, npcs) - 342 PNG - predmeti/ (orodja, semena, hrana, ostalo) - 226 PNG - orozje/ (hladno, strelno) - 10 PNG - rastline/ (posevki, drevesa) - 71 PNG - efekti/ (voda, dim) - 22 PNG - sovrazniki/ (zombiji, mutanti, bossi) - 68 PNG ✅ Removed incorrect DLC structure (198 empty folders) ✅ Created documentation for new structure ✅ Total: ~811 PNG files organized From 61 top-level folders → 34 (optimized & clean)
This commit is contained in:
141
scripts/create_all_biome_structures.py
Normal file
141
scripts/create_all_biome_structures.py
Normal file
@@ -0,0 +1,141 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
🌍 CREATE BIOME STRUCTURE TEMPLATE
|
||||
Creates hierarchical DLC-pack folder structure for all 18 biomes
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
REPO = Path("/Users/davidkotnik/repos/novafarma")
|
||||
SLIKE = REPO / "assets/slike"
|
||||
|
||||
# All 18 biomes
|
||||
BIOMES = [
|
||||
"dinozavri", # Already done
|
||||
"mythical_highlands",
|
||||
"endless_forest",
|
||||
"loch_ness",
|
||||
"egyptian_desert",
|
||||
"amazonas",
|
||||
"atlantis",
|
||||
"chernobyl",
|
||||
"catacombs",
|
||||
"arctic_zone",
|
||||
"volcanic_zone",
|
||||
"crystal_caves",
|
||||
"floating_islands",
|
||||
"deep_ocean",
|
||||
"shadow_realm",
|
||||
"mushroom_forest",
|
||||
"bamboo_forest",
|
||||
"wasteland"
|
||||
]
|
||||
|
||||
# Standard DLC categories for each biome
|
||||
CATEGORIES = [
|
||||
"fauna",
|
||||
"clothing",
|
||||
"weapons",
|
||||
"food",
|
||||
"materials",
|
||||
"terrain",
|
||||
"vegetation",
|
||||
"props",
|
||||
"buildings"
|
||||
]
|
||||
|
||||
def create_biome_structure(biome_name: str):
|
||||
"""Create standard DLC folder structure for a biome"""
|
||||
biome_dir = SLIKE / biome_name
|
||||
biome_dir.mkdir(exist_ok=True)
|
||||
|
||||
print(f"\n📂 Creating structure for: {biome_name}")
|
||||
|
||||
for category in CATEGORIES:
|
||||
cat_dir = biome_dir / category
|
||||
cat_dir.mkdir(exist_ok=True)
|
||||
|
||||
# Create README
|
||||
readme = cat_dir / "README.md"
|
||||
if not readme.exists():
|
||||
content = f"""# {category.title()} - {biome_name.replace('_', ' ').title()}
|
||||
|
||||
**Status**: ❌ 0% COMPLETE
|
||||
|
||||
This folder will contain all {category} assets for {biome_name}.
|
||||
|
||||
**Categories**:
|
||||
- fauna: Animals, creatures, monsters specific to this biome
|
||||
- clothing: Armor, outfits, accessories themed for this biome
|
||||
- weapons: Tools, weapons using biome materials
|
||||
- food: Plants, crops, consumables from this biome
|
||||
- materials: Crafting resources, drops from biome creatures
|
||||
- terrain: Ground tiles (32x32), water, special terrain
|
||||
- vegetation: Trees, plants, decorative flora
|
||||
- props: Objects, decorations, interactive items
|
||||
- buildings: Structures, shelters, workstations
|
||||
|
||||
**Generate**: See biome-specific manifest when created.
|
||||
"""
|
||||
readme.write_text(content)
|
||||
print(f" ✅ {category}/README.md")
|
||||
else:
|
||||
print(f" ⏭️ {category}/README.md (exists)")
|
||||
|
||||
# Create main biome README
|
||||
main_readme = biome_dir / "README.md"
|
||||
if not main_readme.exists():
|
||||
content = f"""# 🌍 {biome_name.replace('_', ' ').title()} - Complete DLC Pack
|
||||
|
||||
**Status**: 🚧 Structure Created
|
||||
|
||||
---
|
||||
|
||||
## 📂 Folder Structure
|
||||
|
||||
```
|
||||
{biome_name}/
|
||||
├── fauna/ ❌ 0% - Animals and creatures
|
||||
├── clothing/ ❌ 0% - Themed armor and outfits
|
||||
├── weapons/ ❌ 0% - Biome-specific weapons
|
||||
├── food/ ❌ 0% - Plants and consumables
|
||||
├── materials/ ❌ 0% - Crafting resources
|
||||
├── terrain/ ❌ 0% - Ground tiles and terrain
|
||||
├── vegetation/ ❌ 0% - Trees and flora
|
||||
├── props/ ❌ 0% - Objects and decorations
|
||||
└── buildings/ ❌ 0% - Structures and shelters
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 🎯 Next Steps
|
||||
|
||||
1. Define asset manifest for this biome
|
||||
2. Generate style prompts
|
||||
3. Create generation script
|
||||
4. Generate all assets
|
||||
|
||||
---
|
||||
|
||||
**Created**: {Path(__file__).stat().st_mtime}
|
||||
"""
|
||||
main_readme.write_text(content)
|
||||
print(f" ✅ Main README.md")
|
||||
|
||||
def main():
|
||||
print("="*70)
|
||||
print("🌍 CREATE BIOME STRUCTURE TEMPLATE")
|
||||
print("="*70)
|
||||
print(f"\nCreating DLC structure for {len(BIOMES)} biomes...")
|
||||
|
||||
for biome in BIOMES:
|
||||
create_biome_structure(biome)
|
||||
|
||||
print("\n" + "="*70)
|
||||
print("✅ ALL BIOME STRUCTURES CREATED!")
|
||||
print("="*70)
|
||||
print(f"\nTotal: {len(BIOMES)} biomes × {len(CATEGORIES)} categories")
|
||||
print(f"Total folders: {len(BIOMES) * len(CATEGORIES)}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user