XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Mon Dec 10, 2018 10:19 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: The First Templar (*.bin files)
PostPosted: Wed May 11, 2011 12:30 pm 
Offline
double-veteran
double-veteran
User avatar

Joined: Thu Oct 22, 2009 10:24 am
Posts: 936
Location: Russia, Siberia
Has thanked: 226 times
Have thanks: 107 times

In searching of meshes i found an interesting mention about granny format in binassets.hpk, but all files are in archives with bin extension and looks like they are not encrypted. Here all files from binassets.hpk except animations.bin.

can someone handle those bins?

You can make the ads go away by registering


_________________
Thank you for all you do here
my blog | my forum


Top
 Profile  
 
 Post subject: Re: The First Templar (*.bin files)
PostPosted: Wed May 11, 2011 4:16 pm 
Offline
veteran
User avatar

Joined: Sat Apr 16, 2011 5:20 am
Posts: 155
Has thanked: 48 times
Have thanks: 12 times
It seems they contain files "GR2".

_________________
Tribo Gamer Brasil


Top
 Profile  
 
 Post subject: Re: The First Templar (*.bin files)
PostPosted: Thu May 12, 2011 1:23 am 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Thu Nov 04, 2010 11:25 pm
Posts: 267
Location: Somewhere, out there... But, not quite here...
Has thanked: 133 times
Have thanks: 165 times
Based on just looking at the files, none of this has yet been fully tested.

"report.csv"

Most important part of this file is the last bit of each line. The number at the end of each line is the byte size of the vertex data block contained in "meshes.vb.bin"
Secondly important is the section prior to that number. This includes the name of the model.

"meshes.gr2.bin"

Contains blocks of granny information for each model. Each block appears to follow this structure:

Code:
Byte    Type         Description
Count
0000 -- Int32     -- Block size
0548 -- Float (6) -- Bounding Box
0572 -- Int32     -- Number of Verts
0576 -- Int32     -- Number of Indices


"meshes.ib.bin"

Contains blocks of face information. Starting from the beginning of each block read a number of UInt16 equal to the Number of Indices from the gr2 file. What is hard for me to explain is the variable amount of 00 byte padding at the end of each block.

"meshes.vb.bin"

Contains blocks of vertex information. Starting from the beginning of each block read a number 24 byte blocks equal to the Number of Verts from the gr2 file. Inside that 24 byte block is the vert position and tvert position for each vertex. Once again there is a variable amount of 00 byte padding at the end of each block. However, because of the "report.csv" file, we know the exact size of each block.

At this time, I can only assume that vert and tvert positions are being stored as Int16s somewhere in that 24 byte block, but I don't have a lot of time right now to do further testing.

HTH,

_________________
Image
MDA

Like TBotR on Facebook
ARchive_neXt v4.03.27.0 Now Available!

"I intend to leave a memory of myself in the minds of others."
Leonardo da Vinci,
disciple of experience


Top
 Profile  
 
 Post subject: Re: The First Templar (*.bin files)
PostPosted: Fri May 13, 2011 11:13 am 
Offline
double-veteran
double-veteran
User avatar

Joined: Thu Oct 22, 2009 10:24 am
Posts: 936
Location: Russia, Siberia
Has thanked: 226 times
Have thanks: 107 times
MichaelDarkAngel wrote:
Based on just looking at the files, none of this has yet been fully tested...

Thanks for your researches.
I check out this files too, very interesting storing of date :? so, any chance you have a time to help me with converting those files?

_________________
Thank you for all you do here
my blog | my forum


Top
 Profile  
 
 Post subject: Re: The First Templar (*.bin files)
PostPosted: Sun May 15, 2011 1:54 am 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Thu Nov 04, 2010 11:25 pm
Posts: 267
Location: Somewhere, out there... But, not quite here...
Has thanked: 133 times
Have thanks: 165 times
I generally don't do anything for games I don't own... So I bought it this morning :D

I'll be looking at it a little more intently over the next few days. Keep a watchful eye for something in the near future.

_________________
Image
MDA

Like TBotR on Facebook
ARchive_neXt v4.03.27.0 Now Available!

"I intend to leave a memory of myself in the minds of others."
Leonardo da Vinci,
disciple of experience


Top
 Profile  
 
 Post subject: Re: The First Templar (*.bin files)
PostPosted: Sat May 21, 2011 11:17 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Thu Nov 04, 2010 11:25 pm
Posts: 267
Location: Somewhere, out there... But, not quite here...
Has thanked: 133 times
Have thanks: 165 times
Think I've finally gotten the file structure under control. And of course the easiest thing to pick out are the image files

Image

Click for larger image

Continuing on...

_________________
Image
MDA

Like TBotR on Facebook
ARchive_neXt v4.03.27.0 Now Available!

"I intend to leave a memory of myself in the minds of others."
Leonardo da Vinci,
disciple of experience


Top
 Profile  
 
 Post subject: Re: The First Templar (*.bin files)
PostPosted: Sun May 22, 2011 6:41 am 
Offline
double-veteran
double-veteran
User avatar

Joined: Thu Oct 22, 2009 10:24 am
Posts: 936
Location: Russia, Siberia
Has thanked: 226 times
Have thanks: 107 times
MichaelDarkAngel wrote:
Think I've finally gotten the file structure under control. And of course the easiest thing to pick out are the image files
Continuing on...

Oh wow :o even with file names :mrgreen:
this game have very quality texture of characters, will be nice to see the models too

thanks for your work :wink:

_________________
Thank you for all you do here
my blog | my forum


Top
 Profile  
 
 Post subject: Re: The First Templar (*.bin files)
PostPosted: Tue May 24, 2011 6:04 am 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Thu Nov 04, 2010 11:25 pm
Posts: 267
Location: Somewhere, out there... But, not quite here...
Has thanked: 133 times
Have thanks: 165 times
Now that I've gotten into this a little deeper, I've discovered that the model files are a little more complicated than my first glance led me to believe.

The report.csv file references both static meshes and animations. The last column of the csv file is still a block size, however, when referencing a static mesh its a block size in the meshes.vb.bin file, when referencing an animation its a block size in the animations.bin file.

That apparently makes the first column of the csv file more important now. If the text in that column starts with a drive letter as opposed to just a folder name that means we are looking at an animation.

I'm getting there, hopefully only a day or two more.

_________________
Image
MDA

Like TBotR on Facebook
ARchive_neXt v4.03.27.0 Now Available!

"I intend to leave a memory of myself in the minds of others."
Leonardo da Vinci,
disciple of experience


Top
 Profile  
 
 Post subject: Re: The First Templar (*.bin files)
PostPosted: Mon May 30, 2011 2:22 am 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Thu Nov 04, 2010 11:25 pm
Posts: 267
Location: Somewhere, out there... But, not quite here...
Has thanked: 133 times
Have thanks: 165 times
First model files exported from game files and imported into 3DSMax.

Image
Click image for larger view

More images will be in my gallery soon. Still working out some bugs in the export process. Still looking for material information.

_________________
Image
MDA

Like TBotR on Facebook
ARchive_neXt v4.03.27.0 Now Available!

"I intend to leave a memory of myself in the minds of others."
Leonardo da Vinci,
disciple of experience


Top
 Profile  
 
 Post subject: Re: The First Templar (*.bin files)
PostPosted: Mon May 30, 2011 3:09 pm 
Offline
double-veteran
double-veteran
User avatar

Joined: Thu Oct 22, 2009 10:24 am
Posts: 936
Location: Russia, Siberia
Has thanked: 226 times
Have thanks: 107 times
MichaelDarkAngel wrote:
First model files exported from game files and imported into 3DSMax.

Image
Click image for larger view

More images will be in my gallery soon. Still working out some bugs in the export process. Still looking for material information.

Nice work MichaelDarkAngel,
i see you already implemented possibility of model converting and this is great i think. Tell me please, is there a way to convert character models with their bones and weight data?

_________________
Thank you for all you do here
my blog | my forum


Top
 Profile  
 
 Post subject: Re: The First Templar (*.bin files)
PostPosted: Mon May 30, 2011 3:30 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Thu Nov 04, 2010 11:25 pm
Posts: 267
Location: Somewhere, out there... But, not quite here...
Has thanked: 133 times
Have thanks: 165 times
Tosyk wrote:
Nice work MichaelDarkAngel,
i see you already implemented possibility of model converting and this is great i think. Tell me please, is there a way to convert character models with their bones and weight data?


This should be a possibility, all the important information is stored in the gr2 file. I just haven't made it that far yet.

_________________
Image
MDA

Like TBotR on Facebook
ARchive_neXt v4.03.27.0 Now Available!

"I intend to leave a memory of myself in the minds of others."
Leonardo da Vinci,
disciple of experience


Top
 Profile  
 
 Post subject: Re: The First Templar (*.bin files)
PostPosted: Thu Dec 08, 2011 2:15 pm 
Offline
n00b

Joined: Thu Dec 01, 2011 11:50 pm
Posts: 13
Has thanked: 0 time
Have thanks: 0 time
Any news?With explorer for First templar :oops:


Top
 Profile  
 
 Post subject: Re: The First Templar (*.bin files)
PostPosted: Sun Dec 25, 2011 1:19 am 
Offline
veteran
User avatar

Joined: Fri Oct 21, 2011 1:33 pm
Posts: 104
Location: On my Network, unless I'm somewhere else
Has thanked: 9 times
Have thanks: 30 times
@MichaelDarkAngel,
This thread is what brought me to Xentax.
I did extract a few files and took a quick look at them but other projects never gave me the time to follow up.
I'd be interested in any knowledge you may have as I go back to looking at the files again here soon.
Thanks!

_________________
Give a man a fish and he'll eat for a day.
Try to teach a man to fish and he'll gripe at you for not just giving him the Damn Fish!


Top
 Profile  
 
 Post subject: Re: The First Templar (*.bin files)
PostPosted: Sun May 06, 2012 7:22 pm 
Offline
n00b

Joined: Thu Dec 01, 2011 11:50 pm
Posts: 13
Has thanked: 0 time
Have thanks: 0 time
Still waiting extractor from MichaelDarkAngel. :(


Top
 Profile  
 
 Post subject: Re: The First Templar (*.bin files)
PostPosted: Sat Apr 26, 2014 9:25 am 
Offline
ultra-n00b

Joined: Fri Sep 09, 2011 11:49 pm
Posts: 1
Has thanked: 0 time
Have thanks: 0 time
This looks like a dead thread but I wanted to necro it because I am interested in the progress that was made here and if it might be applicable to the Tropico games. I've been looking at Tropico 4 and have been able to extract textures but not any mesh data.

If any tools for working with such exist I would be interested in them.



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

All times are UTC + 1 hour


Who is online

Users browsing this forum: Itachi and 15 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