.tex format?

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by CeeDee, Oct 27, 2015.

  1. CeeDee
    OP

    CeeDee hm?~

    Member
    3,825
    5,378
    May 4, 2014
    United States
    somewhere
    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??
     
  2. CeeDee
    OP

    CeeDee hm?~

    Member
    3,825
    5,378
    May 4, 2014
    United States
    somewhere
    Any help regarding this at all?
     
  3. LoganK93

    LoganK93 GBAtemp Advanced Fan

    Member
    607
    348
    Dec 5, 2012
    United States
    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.
     
  4. FM360

    FM360 Kappa

    Member
    266
    152
    Mar 8, 2015
    Afghanistan
    North Korea
    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.
     
  5. CeeDee
    OP

    CeeDee hm?~

    Member
    3,825
    5,378
    May 4, 2014
    United States
    somewhere
    Actually, I tried opening in Photoshop with no success.
     
  6. FM360

    FM360 Kappa

    Member
    266
    152
    Mar 8, 2015
    Afghanistan
    North Korea
    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
     
  7. CeeDee
    OP

    CeeDee hm?~

    Member
    3,825
    5,378
    May 4, 2014
    United States
    somewhere
    It still refuses to load, even with that.
     
  8. Normmatt

    Normmatt Former AKAIO Programmer

    Member
    2,142
    544
    Dec 14, 2004
    New Zealand
    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
     
    shinyquagsire23 likes this.
  9. CeeDee
    OP

    CeeDee hm?~

    Member
    3,825
    5,378
    May 4, 2014
    United States
    somewhere
    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!
     
  10. shinyquagsire23

    shinyquagsire23 SALT/Sm4sh Leak Guy

    Member
    1,964
    3,238
    Nov 18, 2012
    United States
    Las Vegas
    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.
     
  11. CeeDee
    OP

    CeeDee hm?~

    Member
    3,825
    5,378
    May 4, 2014
    United States
    somewhere
    Well, if you can find the modded version, let me know!
     
  12. Dgrin

    Dgrin GBAtemp Regular

    Member
    263
    154
    Apr 17, 2011
    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, Mar 4, 2016
  13. squee666

    squee666 Advanced Tech Pleb

    Member
    1,591
    895
    Sep 17, 2010
    Belfast
    You could always just edit the EU release.
    The use the Exheader and EXEFS from the US release when recompiling it to cia
     
  14. GalladeGuy

    GalladeGuy Freeze Kirby :3

    Member
    2,582
    2,641
    Oct 28, 2015
    United States