Move debug CSVs to debug/ dir, use INI mod name for PBO prefixes
- Debug CSVs now write to debug/<mod>/ instead of output/<mod>/, so they don't get packed into PBOs and bloat size - PBO filenames use mod name from package_mod.ini (a3rebalancer_*.pbo) - Cleaned old debug CSVs from output folders
This commit is contained in:
@@ -166,6 +166,7 @@ def main():
|
||||
sys.exit(1)
|
||||
|
||||
print(f" Found {len(mod_dirs)} addon folders")
|
||||
prefix_base = mod_name.lower()
|
||||
|
||||
# Find armake2
|
||||
if not args.dry_run:
|
||||
@@ -181,7 +182,7 @@ def main():
|
||||
print(f" [DRY RUN] Would create:")
|
||||
print(f" {target_dir / 'mod.cpp'}")
|
||||
for d in sorted(mod_dirs):
|
||||
pbo_name = f"armadump_{d.name}.pbo"
|
||||
pbo_name = f"{prefix_base}_{d.name}.pbo"
|
||||
print(f" {addons_dir / pbo_name}")
|
||||
print(f"\n Total: {len(mod_dirs)} PBOs")
|
||||
return
|
||||
@@ -198,7 +199,6 @@ def main():
|
||||
print()
|
||||
|
||||
# Pack each addon into a PBO (all to temp first, then copy to final location)
|
||||
prefix_base = mod_name.lower()
|
||||
packed = 0
|
||||
failed = 0
|
||||
temp_dir = OUTPUT_DIR / "_pack_temp"
|
||||
@@ -206,7 +206,7 @@ def main():
|
||||
addons_temp.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
for d in sorted(mod_dirs):
|
||||
pbo_name = f"armadump_{d.name}.pbo"
|
||||
pbo_name = f"{prefix_base}_{d.name}.pbo"
|
||||
temp_pbo = addons_temp / pbo_name
|
||||
prefix = f"{prefix_base}\\{d.name}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user