• Stefy Lanza (nextime / spora )'s avatar
    township: loading a template persists, not just applies · 310ffc79
    Stefy Lanza (nextime / spora ) authored
    Loading applied the template to the live session but never wrote the active config file,
    which made "switch live" only half true:
    
    - the launcher starts the tool with --config <out_dir>/township_config.json, so the
      template silently reverted on the next restart;
    - _ref_gen_res_steps deliberately RE-READS that file from disk for keyframe_size and
      keyframe_steps (so Run-page edits apply without a restart), which meant those two
      options came from the stale file even in the same session — the loaded template
      disagreeing with itself.
    
    The load now writes the active config too, reports the path back as `persisted`, and says
    so in the log if the write fails rather than leaving a switch that looks applied and
    reverts later.
    
    Verified live: save a template with keyframe_size 1024x576, load it, and the active
    config file on disk carries it.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_0182DhR1eFNPQyGmDrpHbedY
    310ffc79
gen_township_fighters.py 632 KB