Creating TEX0 file

Discussion in 'Wii - Hacking' started by Gamer4647, Aug 18, 2016.

  1. Gamer4647
    OP

    Gamer4647 GBAtemp Regular

    Member
    237
    79
    Jul 16, 2016
    I'm trying to replace the strap safety message that appears when Mario Kart Wii loads
    I've already got the original standard and widescreen images and edited them, but I'm new to using Wiimms SZS Tools

    Standard
    Widescreen
     
    Last edited by Gamer4647, Aug 18, 2016
  2. Wiimm

    Wiimm Developer

    Member
    2,169
    379
    Aug 11, 2009
    Gambia, The
    Germany
    1. extract the strap: wszst xd strap.szs
    2. cd to strap.szs.d/Textures(NW4R) and edit the png files
    3. go back to the dir where strap.szs resides
    4. wszst create strap.szs.d -od new-strap.szs
     
  3. Gamer4647
    OP

    Gamer4647 GBAtemp Regular

    Member
    237
    79
    Jul 16, 2016
    I replaced the png files in the folder and remade the szs, but whenever I open the new file just made, it has the original Nintendo images in the file
     
  4. Wiimm

    Wiimm Developer

    Member
    2,169
    379
    Aug 11, 2009
    Gambia, The
    Germany
    The new TeX file is only created, if missed or older than the related png file.

    => Touch it the new png, so that it is younger than the file without ".png".
    Or remove the files without ".png", so that they must be re-created from png.

    Then repeat step 4

    You can verify it by looking at the file dates.

    EDIT:
    There is a third way: Option --encode-all
    => wszst create strap.szs.d -od new-strap.szs --encode-all
     
    Last edited by Wiimm, Aug 19, 2016
  5. Gamer4647
    OP

    Gamer4647 GBAtemp Regular

    Member
    237
    79
    Jul 16, 2016
    Removing the other files fixed the problem
    Thanks for the help

    I've opened up a thread here for help with the tool in general
    I'm using it for the first time :P
     
  6. Wiimm

    Wiimm Developer

    Member
    2,169
    379
    Aug 11, 2009
    Gambia, The
    Germany
    I compare the timestamps for optimization, like make and other Unix tools do it:

    Example: You extract a track.szs containing BRRES files and they are also extracted. And the TEX files are converted to PNG. If you change only 1 PNG file now and re-create the SZS, then
    1.) Only this PNG file is converted into TEX.
    2.) Only the related BRRES file is re-created
    3.) The SZS file is re-created.