#!/usr/bin/env python3 """Generate the SIDE B campaign maps (m04-m06) from one shared builder. Supersedes the copy-pasted gen_missionN.py approach — mission geometry is data, not three near-identical scripts. """ import os, struct from PIL import Image ROOT = os.path.join(os.path.dirname(__file__), '..') MAPS = os.path.join(ROOT, 'mods', 'vinylgod', 'maps') def build(name, title, size, wax, actors, player_faction, enemy_faction, enemy_bot=False, scripts='', briefing=''): W = H = size + 2 d = os.path.join(MAPS, name) os.makedirs(d, exist_ok=True) data = bytearray() data += struct.pack('