From 782150c3df797de325846476a7c3338915b798b2 Mon Sep 17 00:00:00 2001 From: Legends11 <235496468+tickwarden@users.noreply.github.com> Date: Thu, 7 May 2026 12:26:09 +0300 Subject: [PATCH] Delete .github/scripts/validate_load_order.py --- .github/scripts/validate_load_order.py | 77 -------------------------- 1 file changed, 77 deletions(-) delete mode 100644 .github/scripts/validate_load_order.py diff --git a/.github/scripts/validate_load_order.py b/.github/scripts/validate_load_order.py deleted file mode 100644 index 621a4279..00000000 --- a/.github/scripts/validate_load_order.py +++ /dev/null @@ -1,77 +0,0 @@ -#!/usr/bin/env python3 -""" -macroEngine-dp Load Order & Basic Validation Script -""" - -import os -import json -import sys -from pathlib import Path - -def main(): - root = Path(".") - errors = [] - warnings = [] - - print("🔍 macroEngine-dp Validation Starting...\n") - - # 1. pack.mcmeta kontrolü - mcmeta = root / "pack.mcmeta" - if not mcmeta.exists(): - errors.append("❌ pack.mcmeta dosyası bulunamadı!") - else: - try: - with open(mcmeta, encoding='utf-8') as f: - data = json.load(f) - version = data.get("pack", {}).get("pack_format") - print(f"✅ pack.mcmeta bulundu (pack_format: {version})") - except Exception as e: - errors.append(f"❌ pack.mcmeta okunamadı: {e}") - - # 2. Kritik load fonksiyonları var mı? - critical_functions = [ - "data/macro/functions/load.mcfunction", - "data/ame_load/functions/_.mcfunction", - "data/load/tags/functions/load.json" - ] - - for func in critical_functions: - if not (root / func).exists(): - warnings.append(f"⚠️ Kritik dosya eksik: {func}") - - # 3. Version consistency kontrolü - version_set = root / "1_20_3/data/ame_load/functions/load/internal/version_set.mcfunction" - if version_set.exists(): - content = version_set.read_text(encoding='utf-8') - if "set #ame.major ame.pre_version 4" in content: - errors.append("❌ version_set.mcfunction içinde major versiyon hâlâ 4 olarak duruyor! (5 olmalı)") - else: - print("✅ Internal version kontrolü geçti") - - # 4. StringLib CharMap uyarısı (performans) - charmap = root / "data/stringlib/function/zprivate/init.mcfunction" - if charmap.exists(): - size = charmap.stat().st_size - if size > 80000: - warnings.append(f"⚠️ StringLib CharMap oldukça büyük ({size//1024} KB). Performansı etkileyebilir.") - - # Sonuç - print("\n" + "="*50) - if errors: - print(f"❌ {len(errors)} hata bulundu:") - for err in errors: - print(err) - sys.exit(1) - else: - print("🎉 Temel validasyon başarıyla tamamlandı!") - - if warnings: - print(f"\n⚠️ {len(warnings)} uyarı:") - for warn in warnings: - print(warn) - - print("\n✅ Validation completed successfully!") - - -if __name__ == "__main__": - main()