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

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,257
Trophies
3
XP
12,008
Country
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:
For all games: Only files that you want to repack must be in folder with unpacked archive files. Rest of files should be deleted.
Ofc files need to be in correct paths. Don't think that tool will guess where files were. :P

For Final Fantasy XII
Game uses filesize tables that can be found in
Code:
\romfs\filesizetables\nx
So if you change size of files that are in one of filesizetables, then game may crash in one moment.
And this file will be probably the biggest issue to apply translations mod etc. because tables looks like this
Code:
u32 Magic
u32 filesize
u32 filesize
...
So there is no ID for what file is this. PC may has the same order of files as Switch, but different sizes for some files will make swapping impossible to work.

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
 

Attachments

  • ffxsw-vbfv3.zip
    74.7 KB · Views: 753
Last edited by masagrator,

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,257
Trophies
3
XP
12,008
Country
Poland
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
Undub can't be shared here because patch will contain whole audio files. This is just a matter of renaming files and repacking.
 

tabzer

This place is a meme.
Member
Joined
Feb 15, 2019
Messages
5,844
Trophies
1
Age
39
XP
4,910
Country
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?
 
  • Like
Reactions: ZeroFX

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,257
Trophies
3
XP
12,008
Country
Poland
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?
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.
 
  • Like
Reactions: tabzer and ZeroFX

tabzer

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

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.
 

masagrator

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

LukaStargazer

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

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?
 

tabzer

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

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?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: :rofl2: +1