#!/usr/bin/env python3 """Read-only original collision/pivot evidence checks; executes no original code. Run from GamePort: python3 tools/binary/collision_evidence.py Outputs bounded JSON facts from the original PE, GAM, OMT and standing ASE bytes. """ from pathlib import Path import collections import hashlib import json import math import re import struct import sys HERE = Path(__file__).resolve().parent PROJECT = HERE.parent.parent sys.path.insert(0, str(HERE)) sys.path.insert(0, str(PROJECT / 'tools/levels')) sys.path.insert(0, str(PROJECT / 'tools/extractors')) from pe_inspect import PE from rtti_map import rtti_map from gam import parse from omt import Database, read_shape def f32(value): return struct.unpack('