

Code: Select all
# MediEvil PSP
# script for QuickBMS http://quickbms.aluigi.org
idstring "TOCS"
get ARCHIVES long
for i = 0 < ARCHIVES
get HEAD_SIZE long
get OFFSET long
getdstring NAME 0x20
savepos TMP_OFF
math OFFSET *= 0x800
goto OFFSET
savepos BASE_OFF
idstring "TOC"
get DUMMY byte
get XFILES long
get FILES long
get DUMMY long
for j = 0 < XFILES
get OFFSET long
get DUMMY short
get DUMMY short
putarray 0 j OFFSET
next j
for j = 0 < FILES
get CRC long
get SIZE long
getdstring TYPE 4
get DUMMY short
get DUMMY short
get DUMMY short
get DUMMY short
getarray OFFSET 0 j
math OFFSET -= 1
math OFFSET *= 0x800
math OFFSET += BASE_OFF
if SIZE != 0
log "" OFFSET SIZE
endif
next j
goto TMP_OFF
next i
Yes, i am.are you using quickbms 0.5.15a?
Just curious where else could the file names be then? There are other examples of PSP games that have the same type of .BIN file which contains pretty much the whole game's data.aluigi wrote:filenames are not stored in the archive as far as I have seen so it's not possible to guess/retrieve them
The file names are hashed inside the TOC files, there are no chances to know the original strings. Inside the game there is a function that with a string in input (for example "medievil_00.mdl", it give as output an hash that looks like 0x12345678, this hash is found on TOC that has a file entry structure like HASH, Position, Size, Format and the file is loaded. The only way to retrieve the original file names is to find how this hashing function works (the only way is to find and disassemble it from the EBOOT.BIN of the game) and bruteforce the strings. Kingdom Hearts 1 and 2 uses the same system, I cracked all the hashing system but in two years I didn't cracked all the hashed filenames =\. F(x) produce y where x is the string and y the hash, but it will be never a G(y) that will produce the x. I hope that my explanations are clear.MiLØ wrote:Just curious where else could the file names be then? There are other examples of PSP games that have the same type of .BIN file which contains pretty much the whole game's data.aluigi wrote:filenames are not stored in the archive as far as I have seen so it's not possible to guess/retrieve them
use TileMolesterikskoks wrote:Did you manage to edit those fonts? :p