# McSimps Titanfall Map Exporter Tool # Website: https://will.io/ import struct from enum import Enum import os map_name = 'sp_beacon' map_path = 'C:\\PATHNAME\\Beacon\\maps\\' + map_name + '.bsp' dump_base = 'C:\\PATHNAME\\Exports\\textures\\' def read_null_string(f): chars = [] while True: c = f.read(1).decode('ascii') if c == chr(0): return ''.join(chars) chars.append(c) class LumpElement: @staticmethod def get_size(): raise NotImplementedError() class TextureData(LumpElement): def __init__(self, data): self.string_table_index = struct.unpack_from('