Difference between revisions of "User:Eientei/Panic in the Park"

From ScummVM :: Wiki
Jump to navigation Jump to search
(Created page with "Everything in <code>PANIC.ART</code> seems to be compressed. Python script to print out the TOC: <pre> from struct import unpack from sys import argv f = open(argv[1], 'rb')...")
 
(No difference)

Latest revision as of 09:32, 20 July 2022

Everything in PANIC.ART seems to be compressed.

Python script to print out the TOC:

from struct import unpack
from sys import argv

f = open(argv[1], 'rb')
volName, unk1, numEnt, fileSize = unpack('<23ssII', f.read(0x20))
for _ in range(numEnt - 1):
    fileName, unk1, offset, size = unpack('<23ssII', f.read(0x20))
    fileName = fileName.decode("ascii").rstrip('\x00')
    print(f'{fileName:8}\t{unk1.decode("ascii")}\t{offset:08x}\t{size:08x}')

unk1 seems to indicate the type of the entry(?), seen ? for the first entry and then X for the others.