Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.
Zero Tolerance for Disrespect

battle for troy .tbd unpack

Featured Replies

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

Solved by ikskoks

  • Author

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?

  • Supporter
  • Solution
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

  • Author

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

  • Supporter
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.

  • Supporter

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.