Jump to content

battle for troy .tbd unpack


Go to solution Solved by ikskoks,

Recommended Posts

Posted

Hello everyone,

I hope you're all doing well. I need help converting these TBD files to TGA, DDS, or PNG formats, or unpacking/extracting the images they contain. They belong to the game mentioned, and unfortunately, I haven't had much success with common tools like Dragon UnPACKer, QuickBMS, Watto Extractor, or Magic Viewer.

I've also tried some utilities for inspecting different image formats, but I don't know how to use them correctly, as I have no programming knowledge. I think the file containt the textures in PCX format

If anyone could guide me or suggest a method or tool that works, I would greatly appreciate it.

I've attached the TBD file.

Thank you very much in advance for your time and help!

tbd unpack-convert.rar

Posted

hi @ikskoks Thank you so much for the program, but I have a few questions I'd like to understand and learn. How did you arrive at the image size without any information? And how did you calculate the offsets? Also, I tried every option that Pixel Format displays, but none of them give me the correct colors when I copy your settings. The closest to the original is RGBA4444, but it has a gray layer that dulls the images. Could you please help me with these questions?

  • Moderators
  • Solution
Posted
3 hours ago, UZ.- said:

How did you arrive at the image size without any information? And how did you calculate the offsets?

By guessing 😄 It gets easier with some experience. You try some settings until image is visible, it may take you few minutes to get it right.


I did more research on this format and it seems to be chunk-based custom archive format used in some games by "Zono Inc".
I put all the details on wiki archive here https://rewiki.miraheze.org/wiki/Zono_Inc_TBD

All the image data seems to be located in TEMP chunk. First you can see 16-bytes image header which holds the information like image width, image height, bpp etc.

For first image, there is a header at offset 17736 and image data starts at 17752.

So correct parameters in ImageHeat should look like this for the first image:
obraz.png.2f518fafaefb7504560471baf28e2686.png


And it should look like this after you open extracted image in GIMP:
obraz.png.1f68399b23252dd696140a73eb5f6a37.png

Posted

hi @ikskoks

Thank you very much for all your help, you are a very knowledgeable person.
It’s a shame that there isn’t a proper tutorial to understand how to use ImageHeat, because it’s a great tool that could really help me with my hobby.

I hope you don’t mind me asking one more question — would it be possible for you to help me use this program to try to figure out the attached UPT file? I made a post about this before but didn’t receive any help. There is a program that can view it, but not extract it.

Wiki: https://rewiki.miraheze.org/wiki/Kingdom_Under_Fire_UPT

upt file.rar

  • Moderators
Posted
21 hours ago, UZ.- said:

would it be possible for you to help me use this program to try to figure out the attached UPT file? I made a post about this before but didn’t receive any help. There is a program that can view it, but not extract it.

Sorry, but animations are not my thing. You should try to bump your topic.

  • Engineers
Posted (edited)

Send more samples. It's hard to tell just from one sample.

Well i got it I think. Can't find the resource index so file is parsed resource by resource. 

First is 4 bytes signature and then resource size and after that are resource data. Resources starts at offset 0x18. Not sure where are file names.

image.thumb.png.452ee7d821f9663367c8484d597c2411.png

Edited by h3x3r

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...