XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sat Feb 24, 2018 12:59 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Need Help analyzing [PS2 - Road Trip Adventure] files
PostPosted: Tue Jan 16, 2018 9:06 pm 
Offline
ultra-n00b

Joined: Mon Jan 15, 2018 4:33 pm
Posts: 7
Has thanked: 5 times
Have thanks: 1 time
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


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: Need Help analyzing [PS2 - Road Trip Adventure] files
PostPosted: Thu Feb 01, 2018 3:16 pm 
Offline
ultra-n00b

Joined: Mon Jan 15, 2018 4:33 pm
Posts: 7
Has thanked: 5 times
Have thanks: 1 time
I'm bumping because I changed the previous question (I made some advancements, sorry if it is viewed as spamming)


Top
 Profile  
 
 Post subject: Re: Need Help analyzing [PS2 - Road Trip Adventure] files
PostPosted: Thu Feb 01, 2018 6:51 pm 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1022
Has thanked: 2029 times
Have thanks: 544 times
this bms script will split your bin sample :D
Code:
# 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. :)

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: Need Help analyzing [PS2 - Road Trip Adventure] files
PostPosted: Thu Feb 01, 2018 7:47 pm 
Offline
ultra-n00b

Joined: Mon Jan 15, 2018 4:33 pm
Posts: 7
Has thanked: 5 times
Have thanks: 1 time
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.


Top
 Profile  
 
 Post subject: Re: Need Help analyzing [PS2 - Road Trip Adventure] files
PostPosted: Thu Feb 01, 2018 9:17 pm 
Offline
advanced
User avatar

Joined: Sun Sep 25, 2011 11:31 pm
Posts: 40
Has thanked: 2 times
Have thanks: 46 times
Image

The file you provided does in-fact contain 3d model information.


Top
 Profile  
 
 Post subject: Re: Need Help analyzing [PS2 - Road Trip Adventure] files
PostPosted: Fri Feb 02, 2018 12:22 am 
Offline
ultra-n00b

Joined: Mon Jan 15, 2018 4:33 pm
Posts: 7
Has thanked: 5 times
Have thanks: 1 time
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


Top
 Profile  
 
 Post subject: Re: Need Help analyzing [PS2 - Road Trip Adventure] files
PostPosted: Fri Feb 02, 2018 2:18 am 
Offline
advanced
User avatar

Joined: Sun Sep 25, 2011 11:31 pm
Posts: 40
Has thanked: 2 times
Have thanks: 46 times
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.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: Need Help analyzing [PS2 - Road Trip Adventure] files
PostPosted: Mon Feb 05, 2018 8:37 pm 
Offline
ultra-n00b

Joined: Mon Jan 15, 2018 4:33 pm
Posts: 7
Has thanked: 5 times
Have thanks: 1 time
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:



Is it fair to say I need to make adjustments to the maxscript in order to extract the model information?
Thanks


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: Need Help analyzing [PS2 - Road Trip Adventure] files
PostPosted: Mon Feb 05, 2018 10:16 pm 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1022
Has thanked: 2029 times
Have thanks: 544 times
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. :D
anyway if you have trouble with other files you must post more samples. :]

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: Need Help analyzing [PS2 - Road Trip Adventure] files
PostPosted: Tue Feb 06, 2018 1:37 am 
Offline
ultra-n00b

Joined: Mon Jan 15, 2018 4:33 pm
Posts: 7
Has thanked: 5 times
Have thanks: 1 time
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


Top
 Profile  
 
 Post subject: Re: Need Help analyzing [PS2 - Road Trip Adventure] files
PostPosted: Tue Feb 06, 2018 3:34 am 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1022
Has thanked: 2029 times
Have thanks: 544 times
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. :D

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. :D

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: ureshiiiiii and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group