Refine ground vehicle silhouettes and publish in-game model checks (#115)

Preserve launcher grids and authored materials; fix the Buk radar intersection and regenerate geometry bounds. Register the separate RM48U game visual for the upcoming carrier path.

Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
2026-11-02 22:22:54 +03:00
parent c4b72da3ff
commit e84a5e9fa7
133 changed files with 151639 additions and 43363 deletions
+2
View File
@@ -1002,6 +1002,8 @@ MODELS = {
"radar_panel": (big_radar_panel, "РЛС обзора"),
"m57e6": (missile_57e6, "57Э6"),
"m48n6": (missile_48n6, "48Н6"),
# Own identity for the coordinate-strike game profile; stylized geometry based on the existing family.
"rm48u": (lambda: missile_48n6() + [el((5.9, 5.9, 2), (10.1, 10.1, 3), "missile_grey")], "RM48U (игровой профиль)"),
"m77n6": (missile_77n6, "77Н6"),
"kalibr": (kalibr, "Калибр"),
"kh22": (kh22, "Х-22"),
+40 -27
View File
@@ -26,19 +26,25 @@ def tire(x0, x1, z, radius=4.5):
def s400_chassis():
parts = [p for p in g.maz_chassis("ru_green") if p["tex"] != "tire"]
# Compact 8x8 TEL: full-width cab, narrow rails and a clear gap between axles.
# The launcher grid and vehicle origin remain untouched.
parts = [g.el((-2, 5, -15), (18, 9, 32), "pilot_olive"),
g.el((-3, 9, -16), (19, 15, -7), "pilot_olive"),
g.el((-2.5, 15, -15), (18.5, 19, -7), "pilot_olive"),
g.el((-2, 15.2, -15.95), (7.5, 18, -15.8), "glass_cab"),
g.el((8.5, 15.2, -15.95), (18, 18, -15.8), "glass_cab"),
g.el((-3.06, 14, -14), (-2.95, 17.5, -8), "glass_cab"),
g.el((18.95, 14, -14), (19.06, 17.5, -8), "glass_cab"),
g.el((-2.5, 19, -15), (18.5, 19.4, -7), "pilot_olive"),
g.el((-2, 9, -6.5), (18, 11, 7), "pilot_olive"),
g.el((0, 9.1, 7), (16, 10, 28), "dark_metal"),
g.el((-3, 9, 28), (19, 12, 32), "pilot_olive"),
g.el((-3.5, 7, -16), (19.5, 8, -15.4), "dark_metal")]
for z in [-10.5, -1.5, 16.5, 25.5]:
parts += tire(-9, -5.5, z)
# Cab roof and inset windscreen separate the cabin from the flat cargo deck.
for x0, x1 in [(-5.7, 2.7), (13.3, 21.7)]:
parts += [g.el((x0, 19, -15), (x1, 19.5, -7), "ru_green"),
g.el((x0 + .5, 15, -15.8), (x1 - .5, 18.5, -15.55), "glass_cab", rot=("x", 22.5))]
parts += g.both(g.B(-14.5, 8.3, -12.5, -14, 8.8, -7, "dark_metal"))
parts += g.both(g.B(-14.4, 13, -10.2, -14.1, 13.4, -8.4, "bare_antenna"))
# Underbody rails and an engine-deck grille read at normal gameplay distance.
parts += [g.el((1, 4.2, -8), (3, 5, 29), "dark_metal"),
g.el((13, 4.2, -8), (15, 5, 29), "dark_metal"),
g.el((-3, 13.1, -3), (19, 13.5, 3), "bare_nozzle")]
parts += tire(-6, -3, z, 4.1)
parts += g.both(g.el((-5, 7, 4), (-2.5, 10, 12), "dark_metal"))
parts += g.both(g.el((-4.5, 10, -14), (-3, 10.8, -12), "bare_lamp"))
parts += g.both(g.el((-4, 12, -8.2), (-3, 12.6, -7.8), "dark_metal"))
return parts
@@ -58,41 +64,47 @@ def s400_tubes():
def gepard_hull():
parts = [g.el((-10, 4, -8), (26, 15, 30), "flecktarn"),
g.el((-10, 4, -15), (26, 9, -8), "flecktarn"),
g.el((-9.5, 9, -14), (25.5, 13, -7), "flecktarn", rot=("x", -22.5)),
g.el((-9, 15, -4), (25, 16.5, 18), "flecktarn"),
g.el((-8, 15, 18), (24, 16, 30), "dark_metal"),
g.el((-6, 16.6, -6), (3, 17.2, -1), "metal")]
parts = [g.el((-9, 4, -8), (25, 13.5, 30), "pilot_nato"),
g.el((-9, 4, -15), (25, 9, -8), "pilot_nato"),
g.el((-8.5, 9, -14), (24.5, 13, -7), "pilot_nato", rot=("x", -22.5)),
g.el((-8, 13.5, -4), (24, 15.2, 18), "pilot_nato"),
g.el((-7, 13.5, 18), (23, 14.5, 30), "dark_metal"),
g.el((-6, 15.3, -6), (3, 15.9, -1), "metal")]
# Side tracks remain a continuous loop; visible road wheels replace a featureless slab.
parts += g.both(g.el((-14, 0, -14), (-10, 8.8, 31), "track"))
for z in [-10, -4, 2, 8, 14, 20, 26]:
for lo, hi, width in [(-1, -.5, .65), (-.5, .5, 1), (.5, 1, .65)]:
parts += g.both(g.el((-14.08, 4.3 + lo * 3.5, z - width * 2.8),
(-14.02, 4.3 + hi * 3.5, z + width * 2.8), "hub"))
parts += g.both(g.el((-14.5, 8.6, -14), (-10, 10, 31), "flecktarn"))
parts += g.both(g.el((-14.5, 8.6, -14), (-10, 10, 31), "pilot_nato"))
for z in [20, 24, 28]:
parts += [g.el((-6, 16.1, z), (22, 16.3, z + 1), "bare_nozzle")]
parts += [g.el((-6, 14.6, z), (22, 14.8, z + 1), "bare_nozzle")]
return parts
def gepard_turret():
# Preserve the aiming origin, gun pack, tracking radar and search-dish attachment.
parts = [g.el((-4, 0, -5), (20, 5, 16), "flecktarn"),
g.el((-2.5, 5, -5), (18.5, 12, 15), "flecktarn"),
g.el((-2, 12, -2), (18, 13, 14), "flecktarn"),
parts = [g.el((-4, 0, -5), (20, 5, 16), "pilot_nato"),
g.el((-2.5, 5, -5), (18.5, 12, 15), "pilot_nato"),
g.el((-2, 12, -2), (18, 13, 14), "pilot_nato"),
g.el((3, 4, -10), (13, 12, -6), "radar_face"),
g.el((7, 13, 10), (9, 18, 12), "metal")]
parts += g.both(g.el((-4.7, 4.8, -4), (-2.5, 10.7, 14), "flecktarn", rot=("z", 22.5)))
parts += g.both(g.el((-4.7, 4.8, -4), (-2.5, 10.7, 14), "pilot_nato", rot=("z", 22.5)))
parts += [g.el((0, 13.05, 2), (5, 13.7, 8), "dark_metal"),
g.el((10, 13.05, 2), (15, 13.7, 8), "dark_metal")]
parts += g.decal("mk_de", 6, 9, -4, 2, 10.5)
return parts
def gepard_guns():
# Preserve both bore/aim origins; match the new turret's painted housings.
return [{**part, "tex": "pilot_nato" if part["tex"] == "flecktarn" else part["tex"]}
for part in g.gepard_guns()]
def shahed():
parts = g.ogive(-16, -9, 2.5, "shahed_nose", 4) + g.oct_z(-9, 22, 2.5, "shahed")
parts += g.delta2("shahed", "kh101_belly", -2, 21, 26, 21, 12, 7.5, 8.3)
parts += g.delta2("shahed", "kh101_belly", -2, 21, 26, 21, 28, 7.5, 8.3)
parts += g.both(g.B(-20.8, 7.6, 18, -20.1, 13.2, 26, "shahed"))
parts += g.oct_z(22, 28, 1.8, "dark_metal")
parts += g.both(g.B(.8, 5.5, 24, 1.5, 6.6, 28, "bare_nozzle"))
@@ -104,7 +116,8 @@ def export(name, parts, burnt=False):
model = g.model(parts, burnt=burnt)
# The authoring tool reuses existing textures; it never creates untracked palette variants.
for key, value in model["textures"].items():
if not (ROOT / "assets/airdef/textures" / (value.split(":", 1)[1] + ".png")).exists():
if not any((root / (value.split(":", 1)[1] + ".png")).exists() for root in
(ROOT / "assets/airdef/textures", ROOT / "source-assets/assets/airdef/textures")):
base = g.VARIANTS[key][0]
candidate = base + "_b" if burnt else base
if not (ROOT / "assets/airdef/textures/block" / (candidate + ".png")).exists():
@@ -116,7 +129,7 @@ def export(name, parts, burnt=False):
if __name__ == "__main__":
for name, make in [("s400_chassis", s400_chassis), ("s400_tubes", s400_tubes),
("gepard_hull", gepard_hull), ("gepard_turret", gepard_turret), ("shahed", shahed)]:
("gepard_hull", gepard_hull), ("gepard_turret", gepard_turret), ("gepard_guns", gepard_guns), ("shahed", shahed)]:
parts = make()
export(name, parts)
if name != "shahed":
+151
View File
@@ -0,0 +1,151 @@
#!/usr/bin/env python3
"""Optional authored support and tracked-vehicle pass; no runtime IDs changed.
Buk-M2E/Tor-M2E are stylized tracked versions. Radar/EW/TZM are generic
support vehicles; depot and light are game props, not specific prototypes.
"""
import json
from pathlib import Path
import zlib
import gen_models as g
ROOT = Path(g.ROOT)
SOURCE = ROOT / 'source-assets/assets/airdef/models/block'
def tracked(tex, tor=False):
p = [g.el((-9, 4, -13), (25, 13, 30), tex),
g.el((-9, 4, -16), (25, 9, -13), tex),
g.el((-8, 9, -14), (24, 13, -9), tex, rot=('x', -22.5)),
g.el((-8, 13, -7), (24, 15, 20), tex),
g.el((-7, 13, 21), (23, 14, 30), 'dark_metal'),
*g.both(g.el((-13, 0, -15), (-9, 8.5, 31), 'track')),
*g.both(g.el((-13.3, 8.5, -14), (-9, 9.5, 31), tex))]
for z in (-11, -5, 1, 7, 13, 19, 25):
# Three broad strips for a readable round wheel over each continuous track.
for a, b, w in [(-1, -.5, .7), (-.5, .5, 1), (.5, 1, .7)]:
p += g.both(g.el((-13.08, 4.2 + a * 3.1, z - w * 2.5),
(-13.02, 4.2 + b * 3.1, z + w * 2.5), 'hub'))
# Different deck fittings distinguish the two tracked vehicles.
if tor:
p += [g.el((-7, 15, -10), (2, 15.7, -5), 'dark_metal'),
g.el((15, 14, 21), (22, 15, 28), 'metal')]
else:
p += [g.el((-7, 15, -10), (2, 15.7, -5), 'metal'),
g.el((3, 14, 23), (20, 14.5, 28), 'bare_nozzle')]
return p
def buk_turret():
# Phased-array face and two shoulders, while the rail pack keeps its pivot.
return [g.el((-4, 0, -4), (20, 7, 20), 'pilot_olive'),
g.el((-2, 7, 2), (18, 10, 18), 'pilot_olive'),
g.el((1, 2, -10), (11, 14, -4), 'radar_face'),
g.el((0, 1, -5), (16, 3, -3), 'dark_metal'),
*g.both(g.el((-4, 7, 4), (-2, 9, 16), 'metal'))]
def buk_rails():
# Keep four rails and their exact centres and forward endpoints.
return [{**p, 'tex': 'pilot_olive' if p['tex'] == 'ru_green' else p['tex']} for p in g.buk_rails()]
def tor_turret():
# Eight existing cells; the engine's launch grid is intentionally unchanged.
p = [g.el((-4, 0, -6), (20, 12, 22), 'pilot_olive'),
g.el((-3, 12, -3), (19, 16, 21), 'pilot_olive'),
g.el((-2, 2, -11), (18, 15, -6), 'radar_face'),
g.el((-3, 16, 2), (19, 17, 20), 'dark_metal')]
for i in range(4):
for j in range(2):
x, z = -1 + i * 5, 4 + j * 8
p.append(g.el((x, 16.5, z), (x + 4, 17.5, z + 6), 'tube_cap'))
return p
def truck(kind):
# Generic four-axle service truck, based on the project's existing dimensions.
p = [g.el((-5, 5, -15), (21, 9, 32), 'pilot_olive'),
g.el((-5, 9, -16), (21, 16, -6), 'pilot_olive'),
g.el((-4.5, 16, -15.5), (20.5, 20, -6), 'pilot_olive'),
g.el((-4, 16, -15.99), (7.5, 19.3, -15.8), 'glass_cab'),
g.el((8.5, 16, -15.99), (20, 19.3, -15.8), 'glass_cab'),
*g.both(g.el((-5.08, 16, -14), (-4.99, 19, -8), 'glass_cab')),
g.el((-5.5, 7, -16), (21.5, 8, -15.3), 'dark_metal'),
*g.both(g.el((-4, 9, -16), (-1, 10.3, -15.8), 'bare_lamp'))]
for z in (-11, -2, 17, 26):
for a, b, w in [(-1, -.6, .6), (-.6, -.2, .92), (-.2, .2, 1), (.2, .6, .92), (.6, 1, .6)]:
p += g.both(g.el((-8.5, 4 + a * 4, z - w * 4), (-5.5, 4 + b * 4, z + w * 4), 'tire'))
p += g.both(g.el((-8.56, 2.2, z - 1.8), (-8.5, 5.8, z + 1.8), 'hub'))
if kind == 'radar':
p += [g.el((-4, 9, -5), (20, 12, 30), 'pilot_olive'),
g.el((-3, 12, 4), (19, 14, 28), 'dark_metal'),
*g.both(g.el((-7, 0, 23), (-5, 6, 25), 'metal'))]
elif kind == 'tzm':
p += [g.el((-4, 9, -3), (20, 12, 30), 'dark_metal'),
g.el((18, 12, -4), (21, 26, -1), 'metal'),
g.el((6, 24, -4), (21, 26, -1), 'metal'),
g.el((6, 20, -4), (7, 24, -3), 'dark_metal')]
for x in (-3, 5, 13):
p += [g.el((x, 12, -1), (x + 6, 18, 29), 'tube', {'north':'tube_cap', 'south':'tube_cap'})]
else:
p += [g.el((-5, 9, -4), (21, 22, 30), 'pilot_olive'),
g.el((-4, 12, 30), (20, 20, 30.3), 'dark_metal'),
g.el((7, 22, 10), (9, 32, 12), 'bare_antenna')]
for y in (24, 28):
p += [g.el((-4, y, 9), (20, y + 1, 13), 'bare_antenna')]
return p
def depot():
p = [g.el((-14, 0, -14), (30, 2, 30), 'concrete'),
g.el((-13, 2, -13), (1, 12, 1), 'crate'),
g.el((-13, 2, 3), (1, 10, 17), 'crate'),
g.el((3, 2, -13), (17, 10, 1), 'crate'),
g.el((-14, 2, 27), (30, 5, 29), 'dark_metal'),
g.el((-14, 2, -14), (-12, 5, 28), 'dark_metal')]
for k in range(3):
p.append(g.el((6, 2 + k * 5, 6), (28, 7 + k * 5, 10), 'tube', {'north':'tube_cap','south':'tube_cap'}))
return p
def searchlight():
return [g.el((1, 0, 1), (15, 2, 15), 'dark_metal'),
g.el((3, 2, 3), (13, 4, 13), 'metal'),
g.el((6, 4, 6), (10, 12, 10), 'dark_metal'),
*g.both(g.el((2, 8, 7), (3, 14, 9), 'metal'))]
def searchlight_head():
return [g.el((3, 3, -2), (13, 13, 14), 'dark_metal'),
g.el((4, 2, 0), (12, 14, 12), 'dark_metal'),
g.el((3.5, 3.5, -2.5), (12.5, 12.5, -2), 'lamp'),
g.el((5, 5, 14), (11, 11, 15), 'metal')]
def export(name, parts, burnt=False):
model = g.model(parts, burnt=burnt)
for key, value in model['textures'].items():
rel = value.split(':', 1)[1] + '.png'
if not any((root / rel).exists() for root in
(ROOT / 'assets/airdef/textures', ROOT / 'source-assets/assets/airdef/textures')):
base = g.VARIANTS[key][0]
candidate = base + '_b' if burnt else base
if not (ROOT / 'assets/airdef/textures/block' / (candidate + '.png')).exists():
candidate = base
model['textures'][key] = 'airdef:block/' + candidate
SOURCE.mkdir(parents=True, exist_ok=True)
(SOURCE / (name + '.json')).write_text(json.dumps(model, indent=1) + '\n', encoding='utf-8')
if __name__ == '__main__':
for name, make in [('buk_chassis', lambda: tracked('pilot_olive')),
('buk_turret', buk_turret), ('buk_rails', buk_rails),
('tor_chassis', lambda: tracked('pilot_olive', True)), ('tor_turret', tor_turret),
('radar_truck', lambda: truck('radar')), ('tzm_truck', lambda: truck('tzm')),
('ew_truck', lambda: truck('ew')), ('depot', depot),
('searchlight', searchlight), ('searchlight_head', searchlight_head)]:
parts = make()
export(name, parts)
export(name + '_burnt', g.burnt_parts(parts, zlib.crc32(name.encode())), True)
print(name, len(parts))
+146
View File
@@ -0,0 +1,146 @@
#!/usr/bin/env python3
"""Optional authored vehicle pass. Does not run during normal regeneration.
Stylistic references: KAMAZ-based Pantsir-S1, HEMTT M983/M901 Patriot,
truck-mounted IRIS-T SLM, and NASAMS multi-missile launcher. Existing part
origins and launch grids are intentionally retained; these are not scale replicas.
"""
import json
from pathlib import Path
import zlib
import gen_models as g
ROOT = Path(g.ROOT)
SOURCE = ROOT / 'source-assets/assets/airdef/models/block'
def wheels(zs, x=-8.5, radius=4):
out = []
for z in zs:
for a, b, w in [(-1, -.6, .6), (-.6, -.2, .92), (-.2, .2, 1), (.2, .6, .92), (.6, 1, .6)]:
out += g.both(g.el((x, radius + a * radius, z - radius * w),
(x + 3, radius + b * radius, z + radius * w), 'tire'))
out += g.both(g.el((x - .06, radius - 1.8, z - 1.8), (x, radius + 1.8, z + 1.8), 'hub'))
return out
def cab(tex, top=20):
# Split windscreen and side windows on a full-width forward-control cab.
return [g.el((-5, 8, -16), (21, top - 4, -6), tex),
g.el((-4.5, top - 4, -15.5), (20.5, top, -6), tex),
g.el((-4, top - 4, -15.99), (7.5, top - .7, -15.82), 'glass_cab'),
g.el((8.5, top - 4, -15.99), (20, top - .7, -15.82), 'glass_cab'),
*g.both(g.el((-5.08, top - 4, -14.5), (-4.99, top - 1, -8), 'glass_cab')),
g.el((-5.5, 7, -16), (21.5, 8, -15.3), 'dark_metal'),
*g.both(g.el((-4.5, 9, -16), (-1.5, 10.2, -15.8), 'bare_lamp'))]
def pantsir_truck():
# KAMAZ 8x8 family: four axles, short front cab, equipment volume under turret.
p = [g.el((-5, 5, -15), (21, 9, 32), 'pilot_olive'),
*cab('pilot_olive', 20),
g.el((-4, 9, -5), (20, 16.5, 5), 'pilot_olive'),
g.el((-3, 9, 5), (19, 12, 28), 'dark_metal'),
g.el((-5, 8, 28), (21, 11, 32), 'pilot_olive'),
*g.both(g.el((-7, 8, 6), (-5, 11, 14), 'dark_metal'))]
return p + wheels([-11, -1.5, 17, 26])
def pantsir_turret():
# Maintain the radar/mast and gun-pack attachment volumes.
return [g.el((-2, 0, -5), (18, 7, 16), 'pilot_olive'),
g.el((0, 7, -4), (16, 10, 14), 'pilot_olive'),
g.el((1, 1, -11), (15, 11, -6), 'radar_face'),
g.el((2, 1, -6), (14, 11, -5), 'dark_metal'),
g.el((7, 10, 4), (9, 17, 6), 'metal'),
g.el((1, 10, 8), (15, 12, 16), 'pilot_olive'),
g.el((5, 10, -4), (11, 13, 0), 'dark_metal'),
g.el((6, 10.5, -4.4), (10, 12.5, -4), 'bare_lamp')]
def pantsir_pack():
# Keep every barrel and canister position; match the turret's material.
return [{**part, 'tex': 'pilot_olive' if part['tex'] == 'ru_green' else part['tex']}
for part in g.pantsir_pack()]
def patriot_truck():
# HEMTT M983 family; existing generator had only three axles.
p = [g.el((-5, 5, -15), (21, 9, 32), 'pilot_nato'),
*cab('pilot_nato', 22),
g.el((-4, 9, -5), (20, 15, 7), 'pilot_nato'),
g.el((-3, 9, 8), (19, 11, 28), 'dark_metal'),
g.el((2, 11, 18), (14, 12, 26), 'metal'),
*g.both(g.el((-7, 9, 1), (-5, 12, 9), 'dark_metal'))]
return p + wheels([-11, -2, 17, 26])
def patriot_trailer():
p = [g.el((-6, 6, -16), (22, 9, 32), 'pilot_nato'),
g.el((-4, 9, -12), (20, 11, 24), 'dark_metal'),
g.el((-1, 11, 14), (17, 16, 30), 'metal'),
g.el((-7, 3, -16), (23, 7, -12), 'dark_metal'),
*g.both(g.el((-8, 0, -6), (-6, 6, -4), 'metal'))]
return p + wheels([19, 27], -9, 3.7)
def irist_chassis():
# Four-axle truck with ISO-frame equipment deck, preserving launcher origin.
p = [g.el((-5, 5, -15), (21, 9, 32), 'pilot_nato'), *cab('pilot_nato', 20),
g.el((-4, 9, -5), (20, 11, 29), 'pilot_nato'),
g.el((-3, 11, -4), (19, 13, 28), 'dark_metal'),
*g.both(g.el((-7, 6, 4), (-5, 9, 14), 'dark_metal')),
*g.both(g.el((-7, 0, 25), (-5, 6, 27), 'metal'))]
return p + wheels([-11, -2, 17, 26])
def nasams_trailer():
# Towable, low frame, two axles and separate rear mounting base.
p = [g.el((-5, 5, -10), (21, 8, 26), 'pilot_nato'),
g.el((-4, 8, -8), (20, 9, 23), 'dark_metal'),
g.el((-4, 9, 10), (20, 13, 24), 'pilot_nato'),
g.el((6, 3, -16), (10, 6, -10), 'metal'),
*g.both(g.el((-7, 0, -6), (-5, 5, -4), 'metal')),
*g.both(g.el((-7, 0, 23), (-5, 5, 25), 'metal'))]
return p + wheels([8, 18], -8.5, 3.7)
def package(nx):
# Exactly the existing Grid spacing and tube end positions.
p = g.tubes(nx, 2, 4, 'canister')
for z in (-2, 22):
p.append(g.el((8 - (nx * 5 - 1) / 2 - .4, 0, z),
(8 + (nx * 5 - 1) / 2 + .4, 9, z + .5), 'dark_metal'))
return p
def export(name, parts, burnt=False):
model = g.model(parts, burnt=burnt)
for key, value in model['textures'].items():
rel = value.split(':', 1)[1] + '.png'
if not any((root / rel).exists() for root in
(ROOT / 'assets/airdef/textures', ROOT / 'source-assets/assets/airdef/textures')):
base = g.VARIANTS[key][0]
candidate = base + '_b' if burnt else base
if not (ROOT / 'assets/airdef/textures/block' / (candidate + '.png')).exists():
candidate = base
model['textures'][key] = 'airdef:block/' + candidate
SOURCE.mkdir(parents=True, exist_ok=True)
(SOURCE / (name + '.json')).write_text(json.dumps(model, indent=1) + '\n', encoding='utf-8')
if __name__ == '__main__':
for name, make, wreck in [('pantsir_truck', pantsir_truck, True),
('pantsir_turret', pantsir_turret, True),
('pantsir_pack', pantsir_pack, True),
('patriot_truck', patriot_truck, False),
('patriot_trailer', patriot_trailer, True),
('irist_chassis', irist_chassis, True),
('irist_tubes', lambda: package(4), True),
('nasams_trailer', nasams_trailer, True),
('nasams_launcher', lambda: package(3), True)]:
parts = make()
export(name, parts)
if wreck:
export(name + '_burnt', g.burnt_parts(parts, zlib.crc32(name.encode())), True)
print(name, len(parts))