I was adding stuff to this (
http://wiki.xentax.com/index.php/Psychonauts) wiki and noticed that someone had already added the .pkg specs for Psychonauts. Looking at it I realised that they were correct and that my specs were slightly wrong.
Instead of this:
File Records:
-------------
Each file record is 16 bytes long:
4 bytes: Identifier
4 bytes: Offset of name in Name Directory (relative to start of name dir)
4 bytes: Offset of file data
4 bytes: File data size
The identifier identifies the file type:
256: .asd
1280: .atx
etc..
It should be this:
File Records:
-------------
Each file record is 16 bytes long:
1 byte: Null
2 bytes: File Extension Offset (relative to start of file ext dir)
1 byte: Null
4 bytes: Offset of name in Name Directory (relative to start of name dir)
4 bytes: Offset of file data
4 bytes: File data size
I've changed the code in Psychonauts Explorer, but it doesnt appear to have made much difference. I think the 'identifiers' that I used match up to the correct file extension anyway. :)