Page 1 of 1
Need Help analyzing [PS2 - Road Trip Adventure] files
Posted: Tue Jan 16, 2018 9:06 pm
by artbarot
Hello, this is my first attempt extracting resources, I have been checking tutorials in here but I'm stuck in my personal project.
I have sucessfully extracted sound files, but regarding textures and models I have not been successfull.
My request is if someone could check the file I put in annex and could confirm my suspitions/ give me tips on further research.
In order to make this more easy, just import the bookmarks.
This is probably my favorite game and I wanted to do it to feel proud
Thanks in advance
Re: Need Help analyzing [PS2 - Road Trip Adventure] files
Posted: Thu Feb 01, 2018 3:16 pm
by artbarot
I'm bumping because I changed the previous question (I made some advancements, sorry if it is viewed as spamming)
Re: Need Help analyzing [PS2 - Road Trip Adventure] files
Posted: Thu Feb 01, 2018 6:51 pm
by Acewell
this bms script will split your bin sample
Code: Select all
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm
get BIN_SIZE asize
get FOLDER basename
math i = 1
for i
get OFFSET long
savepos TMP
if OFFSET == BIN_SIZE
break
endif
get NEXT_OFFSET long
xmath SIZE "NEXT_OFFSET - OFFSET"
string NAME p "%s\%d.dat" FOLDER i
log NAME OFFSET SIZE
goto TMP
next i
i can't help you with the contents of PS2 files but the last one looks like paletted image data.

Re: Need Help analyzing [PS2 - Road Trip Adventure] files
Posted: Thu Feb 01, 2018 7:47 pm
by artbarot
Man so much thanks!! I was viewing this for like 2 weeks, you come here instantly and do this. I have training now, when I finish I will test this right away. A guy said the file contained textures and the last part model/models (in beggining there are 6 pointers (4byte) but the last one points to a different kind(maybe what you mention as paletted image data), but this is not sure.
Re: Need Help analyzing [PS2 - Road Trip Adventure] files
Posted: Thu Feb 01, 2018 9:17 pm
by killercracker
The file you provided does in-fact contain 3d model information.
Re: Need Help analyzing [PS2 - Road Trip Adventure] files
Posted: Fri Feb 02, 2018 12:22 am
by artbarot
Thanks for the script it seems to be working perfectly. How did you manage to open the model, is it in some standard extension? Which .dat file you saw? I will keep researching meanwhile.
Btw the model you opened is Q002 (there is a Q000 in the .bin files hence +1)
http://choroq.wikia.com/wiki/List_of_Bo ... oro-Q_HG_2 . So theoretically this makes sense.
Thanks all for helping
Re: Need Help analyzing [PS2 - Road Trip Adventure] files
Posted: Fri Feb 02, 2018 2:18 am
by killercracker
I wrote a maxscript to open the file. It works on all but the last file which I'm also pretty sure is a texture file. You can have a look at it if you want to.
Re: Need Help analyzing [PS2 - Road Trip Adventure] files
Posted: Mon Feb 05, 2018 8:37 pm
by artbarot
Hey, first of all thanks aceWell and killercracker for your help. I don't quite understand how the script splits the data into 7 .dat since in this example there is only 6 offset? This is slowing me down to understand another .bin with slightly different headers.
Regarding the maxscript it works prefectly with car models (I'm still figuring out how to extract the texture). However when I try to open other type of files it gives very weird models:
w.png
Is it fair to say I need to make adjustments to the maxscript in order to extract the model information?
Thanks
Re: Need Help analyzing [PS2 - Road Trip Adventure] files
Posted: Mon Feb 05, 2018 10:16 pm
by Acewell
artbarot wrote:I don't quite understand how the script splits the data into 7 .dat since in this example there is only 6 offset? This is slowing me down to understand another .bin with slightly different headers.
the sample you posted had 7 offsets, that is why there is 7 dat files extracted.
anyway if you have trouble with other files you must post more samples.
![Satisfied :]](./images/smilies/%5Bcolon%5D%5D.gif)
Re: Need Help analyzing [PS2 - Road Trip Adventure] files
Posted: Tue Feb 06, 2018 1:37 am
by artbarot
I see, I assumed the last 4 byte before the 0 padding was the file size. I put in anex more 4 files, I just want you to check the header, checking if your bms script makes sense , and the problem lies in getting models / textures. I also put a file .GSL which I think is proprietary and is a achieve of several textures, so if it gives you trouble ignore it. The other 3 files are similar to the one in the main question. Have in mind I tested this and gives some results.
https://we.tl/HzpALHrVTm
I would say that assuming each file "type" has the same structure(I think they do), if these ones are understood I have pretty much analized all types of files.
I'm leaving aside some other problematic files that have to be analyzed by IDA in order to decompiling the game "by hand", taking the MIPS or x86 assembly code and write C code that does the same thing.
Thanks
Re: Need Help analyzing [PS2 - Road Trip Adventure] files
Posted: Tue Feb 06, 2018 3:34 am
by Acewell
artbarot wrote:I assumed the last 4 byte before the 0 padding was the file size.
it is, the offsets start at the beginning of the file,
you can look at the bms script to see how it is reading the data.
T00.BIN and STAMP.GSL look like archives with a series of paletted image data, no offset table.
001.BIN and C00.BIN extract okay with the bms script.
