Help needed repacking Breath of the Wild's Yaz0/SZS (sblarc)

Discussion in 'Wii U - Hacking & Backup Loaders' started by botwpoking, Mar 18, 2017.

  1. botwpoking
    OP

    Newcomer botwpoking Member

    Joined:
    Mar 14, 2017
    Messages:
    15
    Country:
    Zimbabwe
    I'm new to Wii U modding and I'm looking to replace the game's logo with the original. From what I can tell it's located at "content\Pack\Bootup.pack\Layout\Common.sblarc\timg" as Logo2D_00_JPja^d.bflim and Logo3DGameTitle_00_JPja^d.bflim. Tried unpacking, replacing and repacking everything with Uwizard, but the game crashes at boot. Tested not replacing anything and SARC repacking works, but not Yaz0 (SZS). Uwizard seems to use yaz0enc and I can't find any replacement, any ideas? Here's the Common.sblarc header for reference.

    [​IMG]

    Thanks.
     
  2. botwpoking
    This message by botwpoking has been removed from public view by Issac, Mar 21, 2017.
    Mar 20, 2017
  3. FlappyFalco

    Member FlappyFalco Incomprehensible~

    Joined:
    Oct 11, 2015
    Messages:
    192
    Location:
    The deepest recesses of my mind
    Country:
    Ireland
    Have you tried using this?

    I haven't used it myself now, and it might still be based on Yaz0enc, but it's still worth a try.
     
  4. botwpoking
    OP

    Newcomer botwpoking Member

    Joined:
    Mar 14, 2017
    Messages:
    15
    Country:
    Zimbabwe
    Yeah, it can't open it.
     
  5. mariosonicds

    Member mariosonicds GBAtemp Regular

    Joined:
    Oct 9, 2009
    Messages:
    136
    Country:
    United States
    Check your padding that is used in the sarc portion. I think wiiuzip or my build of uwizzard have adjustable sarc padding.
     
    botwpoking likes this.
  6. botwpoking
    OP

    Newcomer botwpoking Member

    Joined:
    Mar 14, 2017
    Messages:
    15
    Country:
    Zimbabwe
    FlappyFalco suggested Wii U Zip, couldn't open these SZS. I don't think that's it, I've tested unpacking and repacking the files untouched and while SARC works, SZS doesn't. Either way, how would I check for padding?
     
  7. MeAndHax
    This message by MeAndHax has been removed from public view by Issac, Mar 21, 2017, Reason: Neither is posting only memes.
    Mar 21, 2017
  8. botwpoking
    OP

    Newcomer botwpoking Member

    Joined:
    Mar 14, 2017
    Messages:
    15
    Country:
    Zimbabwe
    Okay, to give better context, these are the results with both the original Uwizard and mariosonicds':

    content\Pack\Bootup.pack (SARC)
    Layout\Common.sblarc (Yaz0 SARC)​

    Original Common.sblarc: 3.770 KB
    Untouched Repacked Common.sblarc by mariosonicds': 12.567 KB
    Untouched Repacked Common.sblarc by original Uwizard: 3.724 KB

    Both crash the game once repacked into Bootup.pack. I've tested repacking untouched .pack and it works. I'm going mostly blind here, so expect me to know less than I seem to. I can provide the file for testing if anyone wants to take a better look.
     
  9. CaioCsarPereiraS

    Newcomer CaioCsarPereiraS Angel333119

    Joined:
    Apr 1, 2012
    Messages:
    1
    Location:
    Patos de Minas - Minas Gerais
    Country:
    Brazil
    Use this tool to rebuild .SARC or .PACK files... https://github.com/NWPlayer123/WiiUTools/blob/master/SARCTools/SARCPack.py

    If you want change the padding value... modify the line 96 with the value you want...
    example: line 96: test.pack(sys.argv[1], 0x100), the value of padding is 0x100.

    Zelda Breath of the Wild don't uses padding.

    to switch off padding, modify this lines to:


    line 49 datastart = padSFAT + filesize -1
    line 50 filesize += padSFAT + lenfiles -1
    line 74 #sarc.write("\x00" * padSFAT)
    line 96 test.pack(sys.argv[1], 0x01)

    Sorry for the bad english... I hope you can understand.
     
    Last edited by CaioCsarPereiraS, Mar 27, 2017 at 6:24 PM
    botwpoking likes this.
  10. botwpoking
    OP

    Newcomer botwpoking Member

    Joined:
    Mar 14, 2017
    Messages:
    15
    Country:
    Zimbabwe
    I've managed working SARC repacks with Uwizard, the problem are the Yaz0 compressed SARCs inside them. Game hangs on its initial loading. Thanks though, that script might come in handy.
     
    FlappyFalco likes this.

Share This Page