ROM Hack .tex format?

CeeDee

fuckin dork
OP
Member
Joined
May 4, 2014
Messages
5,360
Trophies
2
XP
9,909
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??
 

CeeDee

fuckin dork
OP
Member
Joined
May 4, 2014
Messages
5,360
Trophies
2
XP
9,909
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??
Any help regarding this at all?
 

LoganK93

Well-Known Member
Member
Joined
Dec 5, 2012
Messages
672
Trophies
1
Age
31
XP
1,992
Country
United States
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.
 

FM360

Kappa
Member
Joined
Mar 8, 2015
Messages
267
Trophies
0
XP
299
Country
Iran
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.
 

CeeDee

fuckin dork
OP
Member
Joined
May 4, 2014
Messages
5,360
Trophies
2
XP
9,909
Country
United States
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.
 

FM360

Kappa
Member
Joined
Mar 8, 2015
Messages
267
Trophies
0
XP
299
Country
Iran
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
 

CeeDee

fuckin dork
OP
Member
Joined
May 4, 2014
Messages
5,360
Trophies
2
XP
9,909
Country
United States
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.
 

Normmatt

Former AKAIO Programmer
Member
Joined
Dec 14, 2004
Messages
2,161
Trophies
1
Age
33
Website
normmatt.com
XP
2,188
Country
New Zealand
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

CeeDee

fuckin dork
OP
Member
Joined
May 4, 2014
Messages
5,360
Trophies
2
XP
9,909
Country
United States
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!
 

shinyquagsire23

SALT/Sm4sh Leak Guy
Member
Joined
Nov 18, 2012
Messages
1,977
Trophies
2
Age
26
Location
Las Vegas
XP
3,765
Country
United States
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.
 

Dgrin

Well-Known Member
Member
Joined
Apr 17, 2011
Messages
280
Trophies
1
XP
427
Country
Greece
[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

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=BjK2lPBzGzo