Skip to content

Instantly share code, notes, and snippets.

View AcidicVoid's full-sized avatar
🍣
中二病に恋して

Alex Ray AcidicVoid

🍣
中二病に恋して
View GitHub Profile
@AcidicVoid
AcidicVoid / dd2_extractor.py
Last active April 1, 2026 05:08
Extracts data from Destruction Derby 2's DIRINFO file. Also contains experimental attempt to decompress LEVEL.DAT files but it doesn't work as intended. Just ignore the decompressed files or remove the decompression call from the code. It's all done relatively quick and dirty.
import os
import sys
import struct
from pathlib import Path
lev_list = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B"]
def lzss_decompress(compressed_data, window_size=0x1000):
"""
Decompresses PSX-style LZSS data, ported from Ghidra-decompiled DD2 code