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

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

  1. tabzer

    tabzer GBAtemp Regular

    Member
    2
    Feb 15, 2019
    Japan
    Crap. I'm on fat32. lol
     
  2. masagrator
    OP

    masagrator File digger

    Member
    5
    Oct 14, 2018
    Poland
    You can use this tool for splitting.
    https://github.com/AnalogMan151/splitNSP

    Just rename file extension to .nsp and after splitting change folder name ".nsp" to ".vbf"
    and don't forget about setting archive bit
     
  3. tabzer

    tabzer GBAtemp Regular

    Member
    2
    Feb 15, 2019
    Japan
    Ahh, so you are thinking of rebuilding an NSP. I don't know how to do that. I was aiming to just use a layeredfs approach and put the vbf in the appropriate title dir. Can you help me out?
     
  4. masagrator
    OP

    masagrator File digger

    Member
    5
    Oct 14, 2018
    Poland
    omg... no...
    Rename vbf file to nsp and this script will think that this is nsp and it will split to be compatible with Nintendo Switch.
    It's not about rebuilding NSP.
     
  5. LukaStargazer

    LukaStargazer Member

    Newcomer
    1
    Aug 5, 2015
    Good luck! :D
     
    tabzer likes this.
  6. tabzer

    tabzer GBAtemp Regular

    Member
    2
    Feb 15, 2019
    Japan
    lol, I think you misunderstood me again. I already have FFX installed. I was thinking of using Atmosphere's LayeredFS patching system to load the vbf file I already repackaged. But because I am fat32, I cannot host the file on the switch. So it looks like my other option is to repackage an NSP file with ALL of the FFX data and reinstall the game as a whole. In the end, it saves space, but it's harder to debug.
     
  7. masagrator
    OP

    masagrator File digger

    Member
    5
    Oct 14, 2018
    Poland
    And you still don't understand.

    Tutorial:
    1. repack vbf file
    2. rename FFX_Data.vbf to FFX_Data.nsp or FFX2_Data.vbf to FFX2_Data.nsp
    3. run NSPSplit.py on FFX_Data.nsp or FFX2_Data.nsp
    4. After finishing rename folder FFX_Data.nsp to FFX_Data.vbf or FFX2_Data.nsp to FFX2_Data.vbf
    5. Set archive bit for FFX_Data.vbf or FFX2_Data.vbf folder
    6. Put FFX_Data.vbf or FFX2_Data.vbf folder to (ASIA) titles\0100FE500D0CA000\romfs\data
    7. Profit
     
    crazy_p likes this.
  8. tabzer

    tabzer GBAtemp Regular

    Member
    2
    Feb 15, 2019
    Japan
    I'm sorry. I did misunderstand. I really didn't know how NSP splitter worked, and assumed it was only compatible with NSP packages. So I assumed that you were expecting me to repack an NSP first, which I would install instead of splitting up anyway. I am at step 3. I am unfamiliar with step 5.
     
  9. masagrator
    OP

    masagrator File digger

    Member
    5
    Oct 14, 2018
    Poland
    If you are using Windows, right click on folder -> Properties -> Advanced -> check first tick, OK and set it for all files and folders.
    Now Switch will think that this folder is one file.
     
    tabzer likes this.
  10. tabzer

    tabzer GBAtemp Regular

    Member
    2
    Feb 15, 2019
    Japan
    My suggested method didn't work. So I tried doing the long way and renaming all of the files and repacked the vbf. Now lines are skipped immediately instead of being spoken. I don't know what I did wrong yet. I need to sleep and try again with a new idea of things.

    Anyway, I've included a screenshot of something that I wasn't sure was normal or not.

    Any feedback or ideas would be appreciated. I read this entire thread a few times over and saw how much of an idiot I was, but as of now, I don't think I messed up any instruction.

    Also my discord: tabzer#9308
     

    Attached Files:

    Last edited by tabzer, Apr 19, 2019
  11. LukaStargazer

    LukaStargazer Member

    Newcomer
    1
    Aug 5, 2015
    Good job working on it buddy! ^^ I PMed the guy earlier in this thread who got it running asking him to give us more info so hopefully we get this all figured out soon and never again do we have to listen to the cat screaming that is english Tidus :D
     
  12. Kaijuchan

    Kaijuchan Newbie

    Newcomer
    1
    Jan 17, 2016
    France
    Hi,

    Like you have said, replacing txt mapping files won't be enough. You need to remove all us sound files and duplicate the jp ones (with the us names). After that you can repack the vbf files and use layeredFS.
    The tricky part are for the cinematics. You should find them directly in the romfs in FFX(-2)_Data/GameData/PS3Data/Video.
    Like the voices, swaping txt mapping files won't work. Delete _us.mp4 files, duplicate _jp.mp4 ones with _us names.
    For the _dual.mp4 videos, these have 2 sound streams (1:eng, 2:jpn). You need to remux the mp4 files, replacing the 1st stream with the 2nd one. I'm not sure if it is necessary but when remuxing I set the language metadata of the 1st stream to english.
    Put your new _us.mp4/_dual.mp4 files on your LayeredFS folder and everything should be undubed now.

    Let's hope the game won't crash until the end :).
     
    tabzer likes this.
  13. Kaijuchan

    Kaijuchan Newbie

    Newcomer
    1
    Jan 17, 2016
    France
    Well, that was too good to be true.

    No problem for the cinematics parts but swaping jp/us audio files causes some crashes.
    A few sounds (one of Auron speech, using a potion in battle and certainly many others) can't be found by the game and it stucks itself (forced to close the game).

    I assume there are some inconsistencies between us and jp files, it will probably be a nightmare to find a way to fix that.

    Perhaps a better way to undub the game would be to trick the game's configuration for loading jp voices even with a switch system in english but that is way beyond my little skills.

    I will probably give up there, if someone more skillful could find a solution, that would be greatly appreciated :wub:.
     
    Last edited by Kaijuchan, Apr 20, 2019
    tabzer likes this.
  14. tabzer

    tabzer GBAtemp Regular

    Member
    2
    Feb 15, 2019
    Japan
    When I tried a second time, I tried renaming all of the Japanese audio files, but I didn't go as far as messing with the videos. Trying one step at a time, I decided to see if I could get the voices to work first with the VBF files. My problem is probably caused my one or two things. I am thinking that maybe the nps splitter process didn't work as expected. I decided to try again, this time I have created an exfat card just for this project. I was in the process of extracting new VBF files (deleted old work and started over). Then I read what you said.

    Tricking the game to load JP voices instead of US would be the optimal way of approaching this, if someone has the skill. It would lend itself to being most efficient in saving space, and potentially allowing a legally available patch to the public. I too, lack the skill. I don't know what files to look at, or how to go about decode/recoding them. Thank you for your hard work. I hope someone comes along with some insight.
     
    Last edited by tabzer, Apr 20, 2019
  15. ZeroFX

    ZeroFX Advanced Member

    Newcomer
    3
    Jun 18, 2018
    United Kingdom
    Actually only swapped 2 text files in the data archive, although would be illegal too
    I will, just wait, sorry for the delay i was occupied.
     
    tabzer likes this.
  16. tabzer

    tabzer GBAtemp Regular

    Member
    2
    Feb 15, 2019
    Japan
    Which two? You really want us hanging. =)
     
    ZeroFX likes this.
  17. ZeroFX

    ZeroFX Advanced Member

    Newcomer
    3
    Jun 18, 2018
    United Kingdom
    I had to repack the nsp because fat32, heres how i made it.
    • Extract an NSP or XCI somehow, XCIs can be extracted with XCIExplorer and it's fairly easy, then remove both files .cnmt.nca and .cnmt.xml.
    • Then extract the larger NCA, i used https://gbatemp.net/threads/extract-nsp-nca-xci-update-all-in-one-tool-for-layeredfs.511156/ can be used for NSPs.
    • For the voice you have to edit FFX_Data.vbf and FFX2_Data.vbf, to do that use the program of this thread.
    • After extracted, just swap voicefevmapper.txt from each language;
    The same for FFX2_Data.vbf.​
    • After that run the command ffxsw-vbf.exe -r FFX_Data.vbf_dir FFX_Data.vbf, this makes the program reimport these files, now swapped, back into the data.
    • Swapped the video TXT files too
    The same for FFX2_Data​
    • Then i separated romfs, exefs and logo (you can get it extracting sector 2 from NSP or extracting the files in "logo" of XCIExplorer) in a folder.
    • After doing this I opened hacpackgui and directed the correct folders with their respective camps, exefs, romfs and logo, in order to be able to recreate the greater NCA.
    tsc tsc
    • I created a folder named 'ncas' with the ~300kB, ~100kB and the just created 28GB NCA.
    • Then went on the Meta NCA tab and filled out the options
    tsc tsc part 2
    • Then hacpack, in the NSP tab to do the NSP, and that was done, there was an afternoon and an eternity (until finished and installed on the switch), and it worked!
    tsc tsc part 3

    — Posts automatically merged - Please don't double post! —

    hehe there you have it, i rushed this guide so forgive me. I forgot that i posted the video here.
     
    Last edited by ZeroFX, Apr 20, 2019
  18. tabzer

    tabzer GBAtemp Regular

    Member
    2
    Feb 15, 2019
    Japan
    Wow, thank you for all of that. I am humbled.
     
    ZeroFX likes this.
  19. Borsalino

    Borsalino GBAtemp Regular

    Member
    3
    Mar 9, 2016
    Canada
    Awesome. Just waiting for someone out there to upload the NSP undub version.
     
  20. masagrator
    OP

    masagrator File digger

    Member
    5
    Oct 14, 2018
    Poland
    This site is only against sharing assets, not txt files (if it contains only informations)... :D
     
Loading...