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

tabzer

This place is a meme.
Member
Joined
Feb 15, 2019
Messages
5,844
Trophies
1
Age
39
XP
4,911
Country
Japan
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

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?
 

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,284
Trophies
3
XP
12,053
Country
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.
 

tabzer

This place is a meme.
Member
Joined
Feb 15, 2019
Messages
5,844
Trophies
1
Age
39
XP
4,911
Country
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.
 

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,284
Trophies
3
XP
12,053
Country
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
 
  • Like
Reactions: crazy_p

tabzer

This place is a meme.
Member
Joined
Feb 15, 2019
Messages
5,844
Trophies
1
Age
39
XP
4,911
Country
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.
 

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,284
Trophies
3
XP
12,053
Country
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.
 
  • Like
Reactions: tabzer

tabzer

This place is a meme.
Member
Joined
Feb 15, 2019
Messages
5,844
Trophies
1
Age
39
XP
4,911
Country
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
 

Attachments

  • ffx2error.png
    ffx2error.png
    48 KB · Views: 273
Last edited by tabzer,

LukaStargazer

Active Member
Newcomer
Joined
Aug 5, 2015
Messages
28
Trophies
0
Age
38
XP
92
Country
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

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
 

Kaijuchan

Member
Newcomer
Joined
Jan 17, 2016
Messages
6
Trophies
0
Age
34
XP
53
Country
France
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

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 :).
 
  • Like
Reactions: tabzer

Kaijuchan

Member
Newcomer
Joined
Jan 17, 2016
Messages
6
Trophies
0
Age
34
XP
53
Country
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,
  • Like
Reactions: tabzer

tabzer

This place is a meme.
Member
Joined
Feb 15, 2019
Messages
5,844
Trophies
1
Age
39
XP
4,911
Country
Japan
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 :).

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.

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:.

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,

ZeroFX

why?
Member
Joined
Jun 18, 2018
Messages
1,107
Trophies
1
Location
napaJ
XP
3,002
Country
Japan
Undub can't be shared here because patch will contain whole audio files. This is just a matter of renaming files and repacking.
Actually only swapped 2 text files in the data archive, although would be illegal too
Well a little step by step on what to do would be very appreciated :P
I will, just wait, sorry for the delay i was occupied.
 
  • Like
Reactions: tabzer

ZeroFX

why?
Member
Joined
Jun 18, 2018
Messages
1,107
Trophies
1
Location
napaJ
XP
3,002
Country
Japan
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;
FFX_Data.vbf_dir/ffx_data/gamedata/ps3data/sound_pc/voice/jp/voicefevmapper.txt
and
FFX_Data.vbf_dir/ffx_data/gamedata/ps3data/sound_pc/voice/us/voicefevmapper.txt
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
romfs\FFX_Data\GameData\PS3Data\Video\JP\FFX_VideoList.txt
and
romfs\FFX_Data\GameData\PS3Data\Video\US\FFX_VideoList.txt
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.
If the program enters hypocrate mode just use this command: hacpack.exe -k keys.dat -o outputfolder --type nca --ncatype program --titleid 0100FE500D0CA000 --exefsdir dragndropexefsfolder --romfsdir dragndropromfsfolder --logodir dragndroplogofolder
  • 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
Program NCA: with the migthy and greater NCA
Control NCA: with the nca 300kb up.
Legal Information NCA: with the smallest ncc, 100kb up.
hypocrate mode: hacpack.exe -k keys.dat -o nca --type nca --ncatype meta --titleid 0100FE500D0CA000 --titletype application --programnca dragndrop28gbnca --controlnca dragndrop300kbnca --legalnca dragndrop100kbnca
  • 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!
I was getting title id errors so i used:
hacpack -k "keys.dat" --ncadir "ncadir" -o "outputfolder" --titleid 0100FE500D0CA000 --type nsp

--------------------- MERGED ---------------------------

Which two? You really want us hanging. =)
hehe there you have it, i rushed this guide so forgive me. I forgot that i posted the video here.
 
Last edited by ZeroFX,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
  • TwoSpikedHands @ TwoSpikedHands:
    @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the mail lol
  • I @ I-need-help-with-wup-wiiu:
    i need help with nusspli failed downloads, can someone respond to my thread? pretty please:wub: