Hi, I need help unpack the PSP MediEvil Resurrection .BIN file and possibly other files that contains game data.
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
PSP MediEvil Resurrection .BIN
- ikskoks
- Moderator
- Posts: 1666
- Joined: Thu Jul 26, 2012 5:06 pm
- Location: Poland, Łódź
- Has thanked: 647 times
- Been thanked: 431 times
- Contact:
Re: PSP MediEvil Resurrection .BIN
Refreshing...
I also upload a small copy of my archive made by WATTOs File Cutter.
I hope maybe someone will be interested in this topic
I also upload a small copy of my archive made by WATTOs File Cutter.
I hope maybe someone will be interested in this topic
You do not have the required permissions to view the files attached to this post.
- aluigi
- VVIP member
- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 664 times
- Contact:
Re: PSP MediEvil Resurrection .BIN
I guess the following script does the job, let me know the result:
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
- ikskoks
- Moderator
- Posts: 1666
- Joined: Thu Jul 26, 2012 5:06 pm
- Location: Poland, Łódź
- Has thanked: 647 times
- Been thanked: 431 times
- Contact:
Re: PSP MediEvil Resurrection .BIN
Thank you aluigi! Your scripts are the best in the world!
Using quickbms and your script i extracted many files with extensions .dat .psm .act .mod .ipm .fli .lng .wav .nfc .pkg .neo .ske .sta .txt .frg
and there is one file .dfont Can it be file with all fonts from game?
.lng - all texts from game
.txt - game scripts
.wav - sounds
I don't know other extensions ;p
After extraction there are 6283 files in my folder
And I received following errors:
What do you think? Is everything good?
Using quickbms and your script i extracted many files with extensions .dat .psm .act .mod .ipm .fli .lng .wav .nfc .pkg .neo .ske .sta .txt .frg
and there is one file .dfont Can it be file with all fonts from game?
.lng - all texts from game
.txt - game scripts
.wav - sounds
I don't know other extensions ;p
After extraction there are 6283 files in my folder
And I received following errors:
What do you think? Is everything good?
- aluigi
- VVIP member
- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 664 times
- Contact:
Re: PSP MediEvil Resurrection .BIN
for the first problem I thought to have fixed some versions ago, are you using quickbms 0.5.15a?
if yes, I will in the next version.
anyway don't worry, just type the name manually removing weird chars like * and it's ok
while for the second problem I guess you can ignore it because you are just at the end of the archive so there is nothing else to extract.
if yes, I will in the next version.
anyway don't worry, just type the name manually removing weird chars like * and it's ok
while for the second problem I guess you can ignore it because you are just at the end of the archive so there is nothing else to extract.
- ikskoks
- Moderator
- Posts: 1666
- Joined: Thu Jul 26, 2012 5:06 pm
- Location: Poland, Łódź
- Has thanked: 647 times
- Been thanked: 431 times
- Contact:
Re: PSP MediEvil Resurrection .BIN
Yes, i am.are you using quickbms 0.5.15a?
Is it possible to get proper file names?
For example if i have 000008d1.lng file can it be english.lng or something like that?
You can get lost in these names
Thanks again for your great work
- aluigi
- VVIP member
- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 664 times
- Contact:
Re: PSP MediEvil Resurrection .BIN
filenames are not stored in the archive as far as I have seen so it's not possible to guess/retrieve them
-
- n00b
- Posts: 15
- Joined: Thu Apr 05, 2012 2:06 pm
- Has thanked: 4 times
- Been thanked: 2 times
Re: PSP MediEvil Resurrection .BIN
I unpacked gamedata.bin with your quickbms, and only the .txt files are usable.
The output is only 223mb as well, and the file itself is 535mb.
The output is only 223mb as well, and the file itself is 535mb.
-
- veteran
- Posts: 114
- Joined: Sun Dec 11, 2011 8:00 am
- Has thanked: 36 times
- Been thanked: 20 times
Re: PSP MediEvil Resurrection .BIN
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
- Xeeynamo
- ultra-n00b
- Posts: 9
- Joined: Fri Jan 07, 2011 11:25 am
- Has thanked: 2 times
- Been thanked: 3 times
Re: PSP MediEvil Resurrection .BIN
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
-
- veteran
- Posts: 114
- Joined: Sun Dec 11, 2011 8:00 am
- Has thanked: 36 times
- Been thanked: 20 times
Re: PSP MediEvil Resurrection .BIN
Your explanation is good enough to understand that it's a ridiculously difficult process obtaining the file names. Thanks, Xeeynamo.
I guess it's a blessing that not all developers are using this hash madness, otherwise nothing would ever get done.
I guess it's a blessing that not all developers are using this hash madness, otherwise nothing would ever get done.
-
- n00b
- Posts: 10
- Joined: Tue Mar 10, 2009 5:38 pm
- Location: Belarus
- Been thanked: 6 times
- Contact:
Re: PSP MediEvil Resurrection .BIN
aluigi, your script is not complete. Archive is more complicated than it seems at first.
My utility for FULL unpack and FULL repack "gamedata.bin" - https://mega.nz/#!Q9cGFJ7I!cO9RX4wzNsZr ... A_w7ulp1w8
Fonts in "01-global.group.toc_ex\00491.psm" - "01-global.group.toc_ex\00501.psm" files (metric in BIN files)
Text in *.LTR files
maybe, this will help to someone
My utility for FULL unpack and FULL repack "gamedata.bin" - https://mega.nz/#!Q9cGFJ7I!cO9RX4wzNsZr ... A_w7ulp1w8
Fonts in "01-global.group.toc_ex\00491.psm" - "01-global.group.toc_ex\00501.psm" files (metric in BIN files)
Text in *.LTR files
maybe, this will help to someone
- ikskoks
- Moderator
- Posts: 1666
- Joined: Thu Jul 26, 2012 5:06 pm
- Location: Poland, Łódź
- Has thanked: 647 times
- Been thanked: 431 times
- Contact:
Re: PSP MediEvil Resurrection .BIN
@ViToTiV, thank you :33
Could you please post full file format? I'm just curious.
Did you manage to edit those fonts? :p
Could you please post full file format? I'm just curious.
Did you manage to edit those fonts? :p
-
- n00b
- Posts: 10
- Joined: Tue Mar 10, 2009 5:38 pm
- Location: Belarus
- Been thanked: 6 times
- Contact:
Re: PSP MediEvil Resurrection .BIN
i wrote this util some time ago, it's hard to remember file format
i can upload Delphi sourcecode, it will be easy to me
i can upload Delphi sourcecode, it will be easy to me
-
- n00b
- Posts: 10
- Joined: Tue Mar 10, 2009 5:38 pm
- Location: Belarus
- Been thanked: 6 times
- Contact:
Re: PSP MediEvil Resurrection .BIN
use TileMolesterikskoks wrote:Did you manage to edit those fonts? :p
codec - 4bit
offset - 0x60
Block size - 4x1
Canvas size - 32x30