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:
@@ -24,6 +24,7 @@ from typing import Optional
|
||||
REPO_ROOT = Path(__file__).resolve().parent.parent
|
||||
DATA_DIR = REPO_ROOT / "data"
|
||||
OUTPUT_DIR = REPO_ROOT / "output"
|
||||
DEBUG_DIR = REPO_ROOT / "debug"
|
||||
|
||||
# ============================================================================
|
||||
# Caliber tier classification
|
||||
@@ -700,10 +701,11 @@ def write_debug_csvs(
|
||||
armor_overrides: list[ArmorOverride],
|
||||
):
|
||||
"""Write per-mod debug CSVs showing old -> new values for each override."""
|
||||
mod_dir = OUTPUT_DIR / mod
|
||||
mod_dir = DEBUG_DIR / mod
|
||||
mod_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
if ammo_overrides:
|
||||
path = mod_dir / "debug_ammo.csv"
|
||||
path = mod_dir / "ammo.csv"
|
||||
with open(path, "w", encoding="utf-8", newline="") as f:
|
||||
writer = csv.writer(f, delimiter=";")
|
||||
writer.writerow(["classname", "source_mod", "field",
|
||||
@@ -716,7 +718,7 @@ def write_debug_csvs(
|
||||
field_name, old_val, new_val])
|
||||
|
||||
if armor_overrides:
|
||||
path = mod_dir / "debug_armor.csv"
|
||||
path = mod_dir / "armor.csv"
|
||||
with open(path, "w", encoding="utf-8", newline="") as f:
|
||||
writer = csv.writer(f, delimiter=";")
|
||||
writer.writerow(["classname", "source_mod", "item_type",
|
||||
|
||||
Reference in New Issue
Block a user