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,910
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,260
Trophies
3
XP
12,014
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,910
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,260
Trophies
3
XP
12,014
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,910
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,260
Trophies
3
XP
12,014
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,910
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: 272
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,910
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,098
Trophies
1
Location
napaJ
XP
2,975
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,098
Trophies
1
Location
napaJ
XP
2,975
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
  • The Real Jdbye @ The Real Jdbye:
    even the nvidia shield tv has AI video upscaling
  • The Real Jdbye @ The Real Jdbye:
    LLMs can be run on cpu anyway but it's quite slow
  • BakerMan @ BakerMan:
    Have you ever been beaten by a wet spaghetti noodle by your girlfriend because she has a twin sister, and you got confused and fucked her dad?
  • Psionic Roshambo @ Psionic Roshambo:
    I had a girlfriend who had a twin sister and they would mess with me constantly.... Until one chipped a tooth then finally I could tell them apart.... Lol
  • Psionic Roshambo @ Psionic Roshambo:
    They would have the same hair style the same clothes everything... Really messed with my head lol
  • Psionic Roshambo @ Psionic Roshambo:
    @The Real Jdbye, I could see AMD trying to pull off the CPU GPU tandem thing, would be a way to maybe close the gap a bit with Nvidia. Plus it would kinda put Nvidia at a future disadvantage since Nvidia can't make X86/64 CPUs? Intel and AMD licensing issues... I wonder how much that has held back innovation.
  • The Real Jdbye @ The Real Jdbye:
    i don't think nvidia wants to get in the x64 cpu market anyways
  • The Real Jdbye @ The Real Jdbye:
    you've seen how much intel is struggling getting into the gpu market
  • The Real Jdbye @ The Real Jdbye:
    and nvidia is already doing ARM
  • The Real Jdbye @ The Real Jdbye:
    i don't think they want to take more focus away from their gpus
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah I think Nvidia s future lays in AI GPU acceleration stuff if they can get that going it's going to be super interesting in the long term
  • Psionic Roshambo @ Psionic Roshambo:
    AI assisted game creation might become a thing
  • Psionic Roshambo @ Psionic Roshambo:
    At least that's something I think would be pretty cool.
  • Psionic Roshambo @ Psionic Roshambo:
    Don some VR glasses and gloves and talk to the computer and paint entire worlds
  • Psionic Roshambo @ Psionic Roshambo:
    "OK Cortana I want that mountain a little taller and more snow on top, and I would like some random ancient pine forest around the bottom"
  • Psionic Roshambo @ Psionic Roshambo:
    "Now we need a spring fed river flowing down the north side and add some wild life appropriate for the biome"
  • Psionic Roshambo @ Psionic Roshambo:
    Many TBs of assets and the programming of something like that is going to be tough but I think it's something we might see in 20 years maybe sooner
  • The Real Jdbye @ The Real Jdbye:
    @Psionic Roshambo AI assisted game creation is kinda already here, there was recently that AI that can turn any 2D image into a fully modeled 3D object, it's not perfect, but it's a starting point, beats starting from zero
    +1
  • The Real Jdbye @ The Real Jdbye:
    before that there was one to generate a fully modeled scene from a 2D image
    +1
  • The Real Jdbye @ The Real Jdbye:
    but most recently, there was one that actually generates a working unity scene with terrain and textures already set up that you can import right into unity, that's a huge time saver right there
    +1
  • The Real Jdbye @ The Real Jdbye:
    and using LLMs to generate NPC dialogue and even dynamically generated quests is something i'm sure is already happening
    +1
  • The Real Jdbye @ The Real Jdbye:
    will just take some time for games made using those things to be completed and released
    +1
  • K3Nv2 @ K3Nv2:
    @The Real Jdbye, it's bed bath and beyond you nitwit
    Psionic Roshambo @ Psionic Roshambo: Lol