import struct,re data=open("content/VIDEO/GEO/BLX_COP.BGF","rb").read() print("BLX_COP.BGF",len(data),"bytes; magic:",data[:8]) # all ascii strings print("\n=== ascii strings (material/texture/special names) ===") for m in re.finditer(rb'[ -~]{3,}',data): s=m.group().decode() if s not in ("DIV-BIZ2",): print(f" @{m.start():5d} {s!r}") # look for PUNCH / special keywords anywhere print("\n=== keyword hits ===") for kw in (b"PUNCH",b"punch",b"IMMUNE",b"SPECIAL",b"cop",b"canopy",b"glass",b"window"): idxs=[m.start() for m in re.finditer(re.escape(kw),data)] if idxs: print(f" {kw.decode()}: {len(idxs)} at {idxs[:5]}")