ROM Hack .tex format?

  • Thread starter Thread starter CeeDee
  • Start date Start date
  • Views Views 5,426
  • Replies Replies 13

CeeDee

you can do anything
Member
Joined
May 4, 2014
Messages
5,488
Solutions
4
Reaction score
11,100
Trophies
6
XP
11,926
Country
United States
In the Cave Story eShop port's EU version, the files in there are similar to all other releases - .png sprites and the same filenames for stages/etc.

In the USA version, though, everything is a .tex. Stages, graphics, and all. Is there any way to decompile/recompile these??
 
In the Cave Story eShop port's EU version, the files in there are similar to all other releases - .png sprites and the same filenames for stages/etc.

In the USA version, though, everything is a .tex. Stages, graphics, and all. Is there any way to decompile/recompile these??
Any help regarding this at all?
 
Any help regarding this at all?

Give it a little time to get a reply before double posting. And do a little googling on the matter if you haven't already. Even some of the more popular games don't have their file formats worked out, such as Smash or Zelda, so give it a little time. With the release of HANS and R5 I feel like the modding scene will get a lot bigger, and with that some more obscure/underrated games may get simple tools or editors.
 
A tex file is just another form of image file (like TGA). I think Tex files can be opened in photoshop but its been a long time since I have used photoshop so I might be wrong.
 
Actually, I tried opening in Photoshop with no success.
I did some research. Tex files are basically mini files with source code in them. If you want to get a tex file to output a compiled file you need to install LaTeX distribution and compile it with that. If you just want to edit the source code then open the file in a regular text editor. Im pretty sure in your case, your file output will be some kind of image file. https://latex-project.org/ftp.html
 
I did some research. Tex files are basically mini files with source code in them. If you want to get a tex file to output a compiled file you need to install LaTeX distribution and compile it with that. If you just want to edit the source code then open the file in a regular text editor. Im pretty sure in your case, your file output will be some kind of image file. https://latex-project.org/ftp.html
It still refuses to load, even with that.
 
It still refuses to load, even with that.
Thats because that guy don't know shit...

The file format looks simple enough:
1 byte texture format (same as http://www.3dbrew.org/wiki/CGFX#TXOB)
1 byte magic identifier?
2 bytes width
2 bytes height
2 bytes texture width (must be multiple of 2)
2 bytes texture height (must be multiple of 2)
...
real data starts at 0x80 and in the format specified in header
 
  • Like
Reactions: shinyquagsire23
Thats because that guy don't know shit...

The file format looks simple enough:
1 byte texture format (same as http://www.3dbrew.org/wiki/CGFX#TXOB)
1 byte magic identifier?
2 bytes width
2 bytes height
2 bytes texture width (must be multiple of 2)
2 bytes texture height (must be multiple of 2)
...
real data starts at 0x80 and in the format specified in header
Ah, this makes more sense.

Even then, now that it's gotten more complicated, and there's no dumper/converter, I have no idea what to do. I'll look into this more. Thanks!
 
There was a modified png2bclim_tex program which floated around a bit, but you could probably modify that program to read the header differently so that the images can be edited.
 
[Edit]: sorry, I have a similar problem but my reply was about 'Texi' file extensions not 'Tex' so I deleted it.
 
Last edited by Dgrin,

Site & Scene News

Popular threads in this forum