Help us keep the site up! Got some change to spare? Why not donate a few bits and buy us a coffee. Image

[PC] Ghostbusters: The Video Game Remastered - TEX Files?

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
User avatar
Benjamoose
ultra-n00b
Posts: 2
Joined: Wed Aug 31, 2016 7:10 pm
Has thanked: 1 time
Contact:

[PC] Ghostbusters: The Video Game Remastered - TEX Files?

Post by Benjamoose » Thu Jan 13, 2022 3:44 am

Hi there! Long time lurker/downloader, first time poster.
I've done a lot of Google searching and a bunch of forum searches, so forgive me if I've missed an update regarding this.

I'm working on several mod projects, but I'm hitting a roadblock regarding Ghostbusters TVGR's TEX format.
From what I understand (from searching this forum), TEX files are just regular files (DDS/TGA) that have some shenanigans done to the headers?

Anyways, my problem isn't so much getting the textures out (I've found a million and one tools that'll do that job just fine, including some made on this forum specifically for the game), but I've yet to find anything that can do it reliably and also then convert them back?


Summary: I'm trying to convert the game's TEX files to a usable format and back again for repacking/modding.

I've tried the TEX2DDS tool for the game made on this forum, but all it does is output an unusable DDS (and seemingly has no way to convert back to TEX). Same for some Noesis plugins; they can read the file but can't turn it back into a packable TEX.

I've found a few converters that work by dropping TEX files onto an .exe which then converts files back to TEX in the same manner, but literally anything I've found/tried has just ended up with the modified texture not loading in-game (pink and green checkerboard).

Here are some example files (they were obtained via this extracting tool):

- Ray Stantz Head Textures (TEX)

User avatar
ikskoks
Moderator
Posts: 1165
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 555 times
Been thanked: 290 times
Contact:

Re: [PC] Ghostbusters: The Video Game Remastered - TEX Files?

Post by ikskoks » Thu Jan 13, 2022 11:29 pm

You may have some issues with importing because this file format contains one 16-byte HASH field and one 4-byte CRC field (probably).
So if those values are not calculated correctly during import then check function in game fails and you are not able to mod the game.
You can test this theory by changing one random byte in image data in original TEX file - if texture isn't displayed properly after this change, it means that game is protected and CRC/HASH functions need to be reverse engineered to proceed.

By the way, here is file format of TEX file http://wiki.xentax.com/index.php/Ghostb ... stered_TEX

User avatar
Benjamoose
ultra-n00b
Posts: 2
Joined: Wed Aug 31, 2016 7:10 pm
Has thanked: 1 time
Contact:

Re: [PC] Ghostbusters: The Video Game Remastered - TEX Files?

Post by Benjamoose » Fri Jan 14, 2022 12:35 am

ikskoks wrote:
Thu Jan 13, 2022 11:29 pm
You can test this theory by changing one random byte in image data in original TEX file - if texture isn't displayed properly after this change, it means that game is protected and CRC/HASH functions need to be reverse engineered to proceed.
Hey! Thanks for the reply.


I'll give that a shot and report back. At the very least it'll be useful public information, I imagine.

ikskoks wrote:
Thu Jan 13, 2022 11:29 pm
By the way, here is file format of TEX file http://wiki.xentax.com/index.php/Ghostb ... stered_TEX
Thanks for the link/info. I have a friend who is also looking into this with me and I'm sure they'll find this useful!

Post Reply