#!/usr/bin/env python3 """Type-3 (view) flush anatomy: are floats 0..13 a live camera pose? Sample across the whole mission + densely in the death tail; compare the candidate position triplet(s) against the vehicle root per frame.""" import struct, os, sys sys.path.insert(0, r'c:\VWE\TeslaRel410\dpl3-revive\patha') import numpy as np path = os.path.join(os.path.dirname(__file__), '..', 'captures', 'netdeath-20260708.fifodump') data = open(path, 'rb').read() frames = 0 created = {} veh = {} # latest max-translation 0x1f pose per frame flushes = [] # (frame, view_handle, floats24, veh_t) last_t = None o = 0 while o + 8 <= len(data): if data[o:o+4] != b'VPXM': o += 1; continue ln = struct.unpack_from(' len(data): break body = data[o+8:o+8+ln]; o += 8 + ln if len(body) < 4: continue a = struct.unpack_from('= 8: created[struct.unpack_from('= 8: # crude: largest |t| pose in the batch = player vehicle root n = struct.unpack_from(' len(p): break h = struct.unpack_from(' best[0]: best = (m, t) off += 4 + 48 if best: last_t = best[1] elif a == 3 and len(p) >= 100: h = struct.unpack_from('