# Docs inputs for the game formats sections of the archive / scene / image pages (tools/fixtures.py; # tools/docs_check.py explains the inputs), made with the writers of the format fixtures: a Quake PAK # (tools/fixtures/pak.py), a PWAD with a room map, a flat and a tall patch (wad.py), a Build GRP, a VPK (Python's vpk # package, through vpk.py), an MPQ (StormLib, through mpq.py), an MD2 (md2.py), an .md5mesh + .md5anim (md5.py), an # SMD (smd.py), a Half-Life BSP (bsp.py), a PlayStation TIM (tim.py), a BLP2 (blp.py) and a VTF 7.2. # tests/gen/docs_game.luau { files = { [name] = bytes }, vars = { pakBytes = "pak0.pak", ... } } import importlib.util, json, os, struct, tempfile, shutil INPUTS = ["tools/docs_check.py"] def mod(ctx, name): spec = importlib.util.spec_from_file_location("fx_" + name, os.path.join(ctx.root, "tools", "fixtures", name + ".py")) m = importlib.util.module_from_spec(spec) spec.loader.exec_module(m) return m def vtf72(w, h, rgba): hd = bytearray(80) struct.pack_into("<4sIIIHHIHH", hd, 0, b"VTF\0", 7, 2, 80, w, h, 0, 1, 0) struct.pack_into("