NULL

RELEASE Final Fantasy X/X-2 & XII Unpack/Repacker

Discussion in 'Switch - ROM Hacking, Saves, Translations & Tools' started by masagrator, Apr 11, 2019.

  1. masagrator
    OP

    masagrator File digger

    Member
    6
    Oct 14, 2018
    Poland
    This tool has been made by ffgriever. It's made specifically for Switch version.
    It can unpack & repack files:
    Code:
    #Final Fantasy X/X-2:
    data\FFX_Data.vbf
    data\FFX2_Data.vbf
    data\Common_Data.vbf
    data\metamenu.vbf
    
    #Final Fantasy XII:
    FFXII_TZA.vbf
    FFXII_TZA_PATCH.vbf
    Commands:
    Code:
    //Final Fantasy X/X-2
    Unpack:
    ffxsw-vbf.exe -u *name of archive*
    
    Repack:
    ffxsw-vbf.exe -r *unpacked archive folder* *name of archive*
    
    Pack (experimental):
    ffxsw-vbf.exe -c *unpacked archive folder* *name of archive*
    
    //Final Fantasy XII
    Unpack:
    ffxsw-vbf.exe -l -u *name of archive*
    
    Repack:
    ffxsw-vbf.exe -l -r *unpacked archive folder* *name of archive*
    
    Pack (experimental):
    ffxsw-vbf.exe -l -c *unpacked archive folder* *name of archive*
    
    Restrictions:
    Archives are messed up. Some files are inscribed in archive, but there is no data of it, so tool automatically skips this files and writes info when is doing it.
    If file is too big for patching it, it puts file at the end of archive

    Big shoutout to ~ffgriever for taking his time to make this possible.

    Code:
    #28.04: Added new version that resolves some issues with repacking
    #Thx to @eaZy41 for help
    
    #02.05: Added support for Final Fantasy XII
    #Added support for creating vbf archives
     

    Attached Files:

    Last edited by masagrator, May 3, 2019
    tbb043, draggehn, NemRe and 8 others like this.
  2. Mothafuckka

    Mothafuckka Member

    Newcomer
    3
    Nov 29, 2018
    Brazil
    São Paulo
    Also, the file's path can't have any spaces or on the name of the file
     
    tbb043 likes this.
  3. masagrator
    OP

    masagrator File digger

    Member
    6
    Oct 14, 2018
    Poland
    Did you tried with quotes?
     
    Last edited by masagrator, Apr 12, 2019
    tbb043 and phonz like this.
  4. Mothafuckka

    Mothafuckka Member

    Newcomer
    3
    Nov 29, 2018
    Brazil
    São Paulo
    No, I didn't, why?
     
  5. masagrator
    OP

    masagrator File digger

    Member
    6
    Oct 14, 2018
    Poland
    Because spaces are treated in cmd as next argument. This is an issue for every app. Not only this.
     
    tbb043, phonz and Mothafuckka like this.
  6. Mothafuckka

    Mothafuckka Member

    Newcomer
    3
    Nov 29, 2018
    Brazil
    São Paulo
    Thanks for the explanation!!


    Sent from my iPhone using Tapatalk
     
  7. ZeroFX

    ZeroFX GBAtemp Regular

    Member
    3
    Jun 18, 2018
    United Kingdom
    Thanks for sharing the program.

    Worked well...
     
    LukaStargazer and tabzer like this.
  8. PSxed

    PSxed Advanced Member

    Newcomer
    3
    Aug 28, 2014
    Netherlands
    You swapped the audio files i presume? Nice gonna give it a go when i'm done with work.
     
    ZeroFX likes this.
  9. tabzer

    tabzer GBAtemp Regular

    Member
    2
    Feb 15, 2019
    Japan
    Did you do the layeredFS approach or were you able to repack it into the xci/nsp?
     
    ZeroFX likes this.
  10. LukaStargazer

    LukaStargazer Member

    Newcomer
    1
    Aug 5, 2015
    This is huge, please tell us how you did it or share the undub version with the rest of us? Have a thread of a couple different sites talking about this :P
     
    ZeroFX likes this.
  11. masagrator
    OP

    masagrator File digger

    Member
    6
    Oct 14, 2018
    Poland
    Undub can't be shared here because patch will contain whole audio files. This is just a matter of renaming files and repacking.
     
  12. LukaStargazer

    LukaStargazer Member

    Newcomer
    1
    Aug 5, 2015
    Well a little step by step on what to do would be very appreciated :P
     
    ZeroFX, MasterJ360 and tabzer like this.
  13. tabzer

    tabzer GBAtemp Regular

    Member
    2
    Feb 15, 2019
    Japan
    it looks like the voices might be easy to switch by swapping the names of "us" and "jp" folders in ffx_data/gamedata/ps3data/sound_pc/voice directory, is that right?

    If so, is there a way to retroactively apply this change via layeredfs instead of repacking and loading the whole vbf file?
     
    ZeroFX likes this.
  14. masagrator
    OP

    masagrator File digger

    Member
    6
    Oct 14, 2018
    Poland
    Not everything, some files don't need to be changed, because there is one file referencing to some of japanese voices and it's only 9 kB. It just needs to be swapped with us.

    Second question: atm no. I'm still waiting to implement ease_nro_restriction by atmosphere. It will allow to do smaller patch for this game.
     
    tabzer and ZeroFX like this.
  15. tabzer

    tabzer GBAtemp Regular

    Member
    2
    Feb 15, 2019
    Japan
    Thanks for your response. I think you misunderstood my 1st question. I am only suggesting to change the name of two directories, that each contain a voicefevmapper.txt, instead of renaming all the voice files. My theory is that the system refers to the switch region's voicefevmapper, and plays the files according to that. By changing the names of the directories, we can trick the game into loading the Japanese voicefevmapper.txt under the pretense it is for the US region.
     
  16. LukaStargazer

    LukaStargazer Member

    Newcomer
    1
    Aug 5, 2015
    I'm liking the direction these conversations are going :D FFX undub for switch going to happen and make alot of us happy? :)
     
  17. masagrator
    OP

    masagrator File digger

    Member
    6
    Oct 14, 2018
    Poland
    There are voice files in one shared folder
    Code:
    ffx_data\gamedata\ps3data\sound_pc
    and files in voice doesn't contain references to all audio files, so it may not work correctly. You can read it and look that there is something missing.

    or I may be wrong.

    if it's only just a matter of swapping txt file, then patch can be possible to share. Still it needs huge amount of free space and splitting for FAT32 card.
     
    Last edited by masagrator, Apr 19, 2019
    tabzer likes this.
  18. LukaStargazer

    LukaStargazer Member

    Newcomer
    1
    Aug 5, 2015
    That makes sense, it is looking for the region your switch is set to and then uses the appropriate one, you just need to redirect which one it think that is right?
     
  19. tabzer

    tabzer GBAtemp Regular

    Member
    2
    Feb 15, 2019
    Japan
    Exactly. And the directory names seem to be what the game redirects it to. I am going to try testing it out. When I did a repack, I was told that vbf_extra.bin not found, and then it wrote in the files. Is that normal?
     
  20. masagrator
    OP

    masagrator File digger

    Member
    6
    Oct 14, 2018
    Poland
    It's normal. if vbf_extra.bin is not found, it'll create it (you can read it after this line).
     
    tabzer likes this.
Loading...